new Label(text, coordOpts)
impl/ol/Label.js, line 24
Main constructor of the class. Creates a Label control
Name | Type | Description |
---|---|---|
text |
string |
Text to show |
coordOpts |
array |
Coordinate to display popup |
Methods
-
getCoordinate()
impl/ol/Label.js, line 118 -
TODO
-
getPopup(){M.Popup}
impl/ol/Label.js, line 108 -
This function return popup created
Returns:
popup created
-
hide()
impl/ol/Label.js, line 96 -
This function hidden the popup with information
-
setCoordinate()
impl/ol/Label.js, line 132 -
TODO
-
show(map)
impl/ol/Label.js, line 70 -
This function displays the popup with information
Name Type Description map
M.Map Map where show popup