Class: Label

cercalia.Label

Marker label. You can personalize the color, text type, position, etc...

new cercalia.Label(options)

Name Type Description
options cercaliax.LabelOptions

Label options

Methods

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:
OpenLayers3 ol.Overlay Objet.

getText(){string}

Returns:
Label text

Hide the label

isOpen(){boolean}

Returns:
if popup is opened or not. Values: true or false.

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 the label