Skip to content

PolygonMarker

Inherits: Control

A marker for the PolygonLayer.

Properties

Properties#

border_color #

border_color: ColorValue = GREEN

The color of the border outline.

border_stroke_width #

border_stroke_width: Number = 0.0

The width of the border outline.

Note

Must be non-negative.

color #

color: ColorValue = GREEN

The color of the polygon.

coordinates #

coordinates: list[MapLatitudeLongitude]

The points for the outline of this polygon.

disable_holes_border #

disable_holes_border: bool = False

Whether holes should have borders.

label #

label: str | None = None

An optional label for this polygon.

Note: specifying a label will reduce performance, as the internal canvas must be drawn to and 'saved' more frequently to ensure the proper stacking order is maintained. This can be avoided, potentially at the expense of appearance, by setting PolygonLayer.draw_labels_last.

label_text_style #

label_text_style: TextStyle | None = None

The text style for the label.

rotate_label #

rotate_label: bool = False

Whether to rotate the label counter to the camera's rotation, to ensure it remains upright.

stroke_cap #

stroke_cap: StrokeCap = ROUND

Style to use for line endings.

stroke_join #

stroke_join: StrokeJoin = ROUND

Style to use for line segment joins.