font

Specifies font options for the text that accompanies a marker.

Type: String
Default Value: '#ba4d51'

Show Example:
jQuery

In this example, several font options for markers are changed.


                                    

                                    

color

Specifies a font color for the text that accompanies a marker.

Type: String
Default Value: '#2b2b2b'

This option supports the following colors.

  • hexadecimal colors
  • RGB colors
  • RGBA colors (not supported in Internet Explorer 8)
  • predefined/cross-browser color names
  • predefined SVG colors (not supported in Internet Explorer 8)
Show Example:
jQuery

In this example, the font color for markers is set to 'green' using the color option.


                                    

                                    

family

Specifies a font family for the text that accompanies a marker.

Type: String
Default Value: "'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana"

For details on acceptable values, refer to the Font family article.

Show Example:
jQuery

In this example, the font family for markers is changed using the family option.


                                    

                                    

opacity

Specifies a font opacity for the text that accompanies a marker.

Type: Number
Default Value: undefined

Show Example:
jQuery

In this example, the font opacity for markers is specified using the opacity option.


                                    

                                    

size

Specifies a font size for the text that accompanies a marker.

Type: Number
Default Value: 12

For details on acceptable values, refer to the Font size article.

Show Example:
jQuery

In this example, the font size for markers is set to 9 using the size option.


                                    

                                    

weight

Specifies a font weight for the text that accompanies a marker.

Type: Number
Default Value: 400

Show Example:
jQuery

In this example, the font weight for markers is set to 700 using the size option.