new cercalia.Label(options)
| Name | Type | Description |
|---|---|---|
options |
cercaliax.LabelOptions |
Label options |
Methods
-
destroy()
-
Remove the label.
-
getClass(){string}
-
Returns:
ClassName.
-
getIcon(){string}
-
Returns:
src image icon
-
getIconHeight(){number}
-
Returns:
get height icon, defould 15
-
getIconWidth(){number}
-
Returns:
get width icon, defould 15
-
getOverlay(){ol.Overlay}
-
Returns:
OpenLayers3ol.OverlayObjet.
-
getText(){string}
-
Returns:
Label text
-
hide()
-
Hide the label
-
isOpen(){boolean}
-
Returns:
if popup is opened or not. Values:trueorfalse.
-
removeIcon()
-
remove Icon if exist
-
setIcon(src)
-
Name Type Description srcstring image icon
-
setIconHeight(height)
-
Name Type Description heightnumber -
setIconWidth(width)
-
Name Type Description widthnumber -
setMarker(marker)
-
Name Type Description markercercalia.Marker -
setPosition(position, projectionCode)
-
Change label position.
Name Type Description positioncercalia.LonLat projectionCodestring -
setText(text)
-
Change label text
Name Type Description textstring -
show()
-
Show the label