PolygonMarker
Inherits: Control
A marker for the PolygonLayer
.
Properties
-
border_color
(ColorValue
) –The color of the border outline.
-
border_stroke_width
(Number
) –The width of the border outline.
-
color
(ColorValue
) –The color of the polygon.
-
coordinates
(list[MapLatitudeLongitude]
) –The points for the outline of this polygon.
-
disable_holes_border
(bool
) –Whether holes should have borders.
-
label
(str | None
) –An optional label for this polygon.
-
label_text_style
(TextStyle | None
) –The text style for the label.
-
rotate_label
(bool
) –Whether to rotate the label counter to the camera's rotation,
-
stroke_cap
(StrokeCap
) –Style to use for line endings.
-
stroke_join
(StrokeJoin
) –Style to use for line segment joins.
Properties#
border_stroke_width
#
border_stroke_width: Number = 0.0
The width of the border outline.
Note
Must be non-negative.
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
.