new cercalia.Label(options)
Name | Type | Description | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Label options
|
Extends
Methods
-
destroy()
src/cercalia/label.js, line 331 -
Remove the label.
-
Returns:
Get Class name of object
-
getElement(){Element|null|undefined}
src/cercalia/label.js, line 140 -
Returns:
HTML Element
-
getIcon(){string|null}
src/cercalia/label.js, line 166 -
Returns:
src image icon
-
getIconHeight(){number}
src/cercalia/label.js, line 212 -
Returns:
get height icon. Default15
.
-
getIconWidth(){number}
src/cercalia/label.js, line 220 -
Returns:
get width icon. Default15
.
-
Returns:
Unique Id.
-
Returns:
Marker.
-
Returns:
OpenLayers3ol.Overlay
Objet.
-
getText(){string}
src/cercalia/label.js, line 158 -
Returns:
Label text
-
hide()
src/cercalia/label.js, line 268 -
Hide the label
-
isVisible(){boolean}
src/cercalia/label.js, line 280 -
Returns:
if popup is opened or not. Values:true
orfalse
.
-
removeIcon()
src/cercalia/label.js, line 198 -
remove Icon if exist
-
setIcon(icon)
src/cercalia/label.js, line 174 -
Name Type Description icon
string Image icon source
-
setIconHeight(height)
src/cercalia/label.js, line 228 -
Name Type Description height
number Height in pixels.
-
setIconWidth(width)
src/cercalia/label.js, line 242 -
Name Type Description width
number Width in pixels.
-
setPosition(position, opt_projectionCode)
src/cercalia/label.js, line 313 -
Change label position.
Name Type Description position
cercalia.LonLat Position
projectionCode
string Optional projection code
-
setText(text)
src/cercalia/label.js, line 149 -
Change label text
Name Type Description text
string Text to display on label.
-
show()
src/cercalia/label.js, line 256 -
Show the label