font

Specifies font options for marker labels.

Type:

Object

Show Example:
jQuery

In this example, several font options of marker labels are changed.


                                    

                                    

color

Specifies a font color for marker labels.

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 of marker labels is set to 'green' using the color option.


                                    

                                    

family

Specifies a font family for marker labels.

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 of marker labels is changed using the family option.


                                    

                                    

opacity

Specifies a font opacity for marker labels.

Type:

Number

Default Value: undefined

Show Example:
jQuery

In this example, the font opacity of marker labels is specified using the opacity option.


                                    

                                    

size

Specifies a font size for marker labels.

Type:

Number

|

String

Default Value: 12

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

Show Example:
jQuery

In this example, the font size of marker labels is set to 9 using the size option.


                                    

                                    

weight

Specifies a font weight for marker labels.

Type:

Number

Default Value: 400

Show Example:
jQuery

In this example, the font weight of marker labels is set to 700 using the weight option.