This library allows text to be added to the map at a particular location.
Note that the users browser must support Canvas for the label to be displayed.
Creates a map label with the options specified. If a map is
specified, the label is added to the map upon construction. Note
that both text and position must be set for the label to display.
MapLabelOptions object specification
Properties
Type
Description
align
string
The horizontal text alignment. Options are left,
right or center. Default is "center".
fontFamily
string
The font family. Default is "sans-serif".
fontSize
number
The font size in pixels. Default is 12.
fontColor
string
The stroke color. All CSS3 colors are supported.
Default is "#000000".