PolygonSetting
12 Sep 20251 minute to read
Defines the properties for a single polygon shape to render over the Maps, such as coordinates, fill, border, and opacity.
Properties
borderColor string
Gets or sets the color to be used in the border of the polygon shape.
Defaults to ‘black’
borderOpacity number
Gets or sets the opacity of the border of the polygon shape.
Defaults to 1
borderWidth number
Gets or sets the width of the border of the polygon shape.
Defaults to 1
fill string
Gets or sets the color to be filled in the polygon shape.
Defaults to ‘black’
opacity number
Gets or sets the opacity of the polygon shape.
Defaults to 1
points Coordinate[]
Gets or sets the points that define the polygon shape.
This property holds a collection of coordinates that define the polygon shape.
Defaults to []
tooltipTemplate string|Function
Specifies any HTML content as a tooltip on the polygon shape. If it is not set, the tooltip will not be displayed.
Defaults to ’’
tooltipText string
Specifies the tooltip text to be displayed for the polygon shape. If it is not set, the tooltip will not be displayed.
Defaults to ’’