Skip to main content

PolylineMarker

A marker for the PolylineLayer.

Inherits: Control

Properties

Properties

border_colorclass-attributeinstance-attribute

border_color: ColorValue = Colors.YELLOW

The border's color.

border_stroke_widthclass-attributeinstance-attribute

border_stroke_width: Number = 0.0

The width of the stroke with of the line border.

Raises:

  • ValueError - If it is less than 0.0.

colorclass-attributeinstance-attribute

The color of the line stroke.

colors_stopclass-attributeinstance-attribute

colors_stop: Optional[list[Number]] = None

The stops for the gradient_colors.

coordinatesinstance-attribute

coordinates: list[MapLatitudeLongitude]

The list of coordinates for the polyline.

gradient_colorsclass-attributeinstance-attribute

gradient_colors: Optional[list[ColorValue]] = None

The List of colors in case a gradient should get used.

stroke_capclass-attributeinstance-attribute

stroke_cap: StrokeCap = StrokeCap.ROUND

Style to use for line endings.

stroke_joinclass-attributeinstance-attribute

stroke_join: StrokeJoin = StrokeJoin.ROUND

Style to use for line segment joins.

stroke_patternclass-attributeinstance-attribute

stroke_pattern: StrokePattern = field(default_factory=(lambda: SolidStrokePattern()))

Determines whether the line should be solid, dotted, or dashed, and the exact characteristics of each.

stroke_widthclass-attributeinstance-attribute

stroke_width: Number = 1.0

The width of the stroke.

Raises:

  • ValueError - If it is less than 0.0.

use_stroke_width_in_meterclass-attributeinstance-attribute

use_stroke_width_in_meter: bool = False

Whether the stroke's width should have meters as unit.