mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add in constructor for label
This commit is contained in:
@@ -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));
|
||||
|
||||
Vendored
+6
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user