Skip to Content
APIMarkersInterface: TextProperties

Interface: TextProperties

Represents the properties for customizing the text of a marker. Provides comprehensive styling options for marker text labels.

Example

Properties

color?

Text color in any valid CSS color format


fontFamily?

Font family for the text (e.g., “Arial”, “Helvetica, sans-serif”)


fontSize?

Font size for the text (e.g., “14px”, “1.2em”)


fontWeight?

Font weight for the text (e.g., “normal”, “bold”, “600”)


margin?

Margin around the text (e.g., “5px”, “10px 5px”)


padding?

Padding around the text (e.g., “5px”, “10px 5px”)


textShadow?

Text shadow effect (e.g., “1px 1px 2px rgba(0,0,0,0.5)”)

Last updated on