-
Name Type Description options
Options
Name Type Description className
string Class name for CSS styling. Default empty.
color
string Label color. Default value '#000000'
background
string Label backgroud. The string format is the same than css tag. Default value 'none repeat scroll 0% 0% #ffffff'
fontWeight
boolean Bold text. Default: false
offset
Array.<number> Label offset, in pixels, from the bottom position of icon. Default value for default label is
[-3, -18]
.show
boolean Show text. Default value
1
.text
string Simple Label text (with no background).
Methods
-
Return DOM Element.
-
Obtain marker.
Returns:
Marker.
-
Obtain text
Returns:
Label text
-
Hide element on map
-
Returns:
if popup is opened or not. Values:true
orfalse
.
-
Change label position.
Name Type Description position
module:cercaliagl/LonLat~LonLat Position
-
Change label text content. It can be HTML string. For example
<b>Bold</b> text label
Name Type Description text
string Text to display on label.
-
Show element on map