Skip to content

PolylineLayer

Inherits: MapLayer

A layer to display PolylineMarkers.

Properties

Properties#

culling_margin #

culling_margin: Number = 10.0

Acceptable extent outside of viewport before culling polyline segments.

min_hittable_radius #

min_hittable_radius: Number = 10.0

The minimum radius of the hittable area around each polyline in logical pixels.

The entire visible area is always hittable, but if the visible area is smaller than this, then this will be the hittable area.

polylines #

polylines: list[PolylineMarker]

List of PolylineMarkers to be drawn.

simplification_tolerance #

simplification_tolerance: Number = 0.3

The tolerance (in map units) used to simplify polylines for rendering.

Higher values result in more aggressive simplification, which can improve performance but may reduce the accuracy of the displayed polyline.