new cercalia.Label(options)
Name | Type | Description | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Label options
|
Extends
Methods
-
destroy()
src/cercalia/label.js, line 359 -
Remove the label.
-
Returns:
Get Class name of object
-
getElement(){Element|null|undefined}
src/cercalia/label.js, line 147 -
Returns:
HTML Element
-
getIcon(){string|null}
src/cercalia/label.js, line 173 -
Returns:
src image icon
-
getIconHeight(){number}
src/cercalia/label.js, line 219 -
Returns:
get height icon. Default15
.
-
getIconWidth(){number}
src/cercalia/label.js, line 227 -
Returns:
get width icon. Default15
.
-
Returns:
Unique Id.
-
Returns:
Marker.
-
Returns:
OpenLayers3ol.Overlay
Objet.
-
getText(){string}
src/cercalia/label.js, line 165 -
Returns:
Label text
-
getZIndex(){number}
src/cercalia/label.js, line 300 -
Returns:
CSS label zIndex
-
hide()
src/cercalia/label.js, line 275 -
Hide the label
-
isVisible(){boolean}
src/cercalia/label.js, line 308 -
Returns:
if popup is opened or not. Values:true
orfalse
.
-
removeIcon()
src/cercalia/label.js, line 205 -
remove Icon if exist
-
setIcon(icon)
src/cercalia/label.js, line 181 -
Name Type Description icon
string Image icon source
-
setIconHeight(height)
src/cercalia/label.js, line 235 -
Name Type Description height
number Height in pixels.
-
setIconWidth(width)
src/cercalia/label.js, line 249 -
Name Type Description width
number Width in pixels.
-
setPosition(position, opt_projectionCode)
src/cercalia/label.js, line 341 -
Change label position.
Name Type Description position
cercalia.LonLat Position
projectionCode
string Optional projection code
-
setText(text)
src/cercalia/label.js, line 156 -
Change label text
Name Type Description text
string Text to display on label.
-
setZIndex(zIndex)
src/cercalia/label.js, line 288 -
Change the zIndex value
Name Type Description zIndex
number Z-Index of label.
-
show()
src/cercalia/label.js, line 263 -
Show the label