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.Overlay
Objet.
-
getText(){string}
-
Returns:
Label text
-
hide()
-
Hide the label
-
isOpen(){boolean}
-
Returns:
if popup is opened or not. Values:true
orfalse
.
-
removeIcon()
-
remove Icon if exist
-
setIcon(src)
-
Name Type Description src
string image icon
-
setIconHeight(height)
-
Name Type Description height
number -
setIconWidth(width)
-
Name Type Description width
number -
setMarker(marker)
-
Name Type Description marker
cercalia.Marker -
setPosition(position, projectionCode)
-
Change label position.
Name Type Description position
cercalia.LonLat projectionCode
string -
setText(text)
-
Change label text
Name Type Description text
string -
show()
-
Show the label