Interface: TextProperties
Represents the properties for customizing the text of a marker. Provides comprehensive styling options for marker text labels.
Example
const textProperties: TextProperties = {
fontSize: "14px",
color: "#333333",
fontWeight: "bold",
textShadow: "1px 1px 2px rgba(0,0,0,0.5)",
}Properties
color?
optional color?: string;Text color in any valid CSS color format
fontFamily?
optional fontFamily?: string;Font family for the text (e.g., “Arial”, “Helvetica, sans-serif”)
fontSize?
optional fontSize?: string;Font size for the text (e.g., “14px”, “1.2em”)
fontWeight?
optional fontWeight?: string;Font weight for the text (e.g., “normal”, “bold”, “600”)
margin?
optional margin?: string;Margin around the text (e.g., “5px”, “10px 5px”)
padding?
optional padding?: string;Padding around the text (e.g., “5px”, “10px 5px”)
textShadow?
optional textShadow?: string;Text shadow effect (e.g., “1px 1px 2px rgba(0,0,0,0.5)”)
Last updated on