Skip to main content

PolylineLayer

A layer to display PolylineMarkers.

Inherits: MapLayer

Properties

Properties

culling_marginclass-attributeinstance-attribute

culling_margin: Number = 10.0

Acceptable extent outside of viewport before culling polyline segments.

min_hittable_radiusclass-attributeinstance-attribute

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.

polylinesinstance-attribute

polylines: list[PolylineMarker]

List of PolylineMarkers to be drawn.

simplification_toleranceclass-attributeinstance-attribute

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.