Add in constructor for label

This commit is contained in:
Wim Looman
2015-02-16 16:48:02 +13:00
parent 45246054b2
commit 7eb96af793
2 changed files with 8 additions and 0 deletions

View File

@@ -67,6 +67,8 @@ path = path.unbindLabel();
// Label
label = new L.Label();
label.setOpacity(0.7);
label.updateZIndex(5);
label.setLatLng(new L.LatLng(3, 3));

View File

@@ -58,6 +58,12 @@ declare module L {
zoomAnimation?: boolean;
}
export interface LabelStatic extends ClassStatic {
new(options?: LabelOptions): Label;
}
export var Label: LabelStatic;
export interface Label extends IEventPowered<Label> {
onAdd(map: Map): void;
onRemove(map: Map): void;