PolylineAnnotationOptions
Builder class from which a polylineAnnotation is created.
Constructors
Types
Functions
Build an annotation
Returns whether this polylineAnnotation is draggable, meaning it can be dragged across the screen when touched and moved.
Get the geometry of the polylineAnnotation, which represents the location of the polylineAnnotation on the map
Set the arbitrary json data of the annotation.
Set whether this polylineAnnotation should be draggable, meaning it can be dragged across the screen when touched and moved.
Set the geometry of the polylineAnnotation, which represents the location of the polylineAnnotation on the map
Set line-blur to initialise the polylineAnnotation with.
Set line-border-color to initialise the polylineAnnotation with.
Set line-border-width to initialise the polylineAnnotation with.
Set line-color to initialise the polylineAnnotation with.
Set line-gap-width to initialise the polylineAnnotation with.
Set line-join to initialise the polylineAnnotation with.
Set line-offset to initialise the polylineAnnotation with.
Set line-opacity to initialise the polylineAnnotation with.
Set line-pattern to initialise the polylineAnnotation with.
Set line-sort-key to initialise the polylineAnnotation with.
Set line-width to initialise the polylineAnnotation with.
Set line-z-offset to initialise the polylineAnnotation with.
Set a list of Point for the line, which represents the locations of the line on the map
Properties
The line's offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset. Default value: 0. The unit of lineOffset is in pixels.
Vertical offset from ground, in meters. Defaults to 0. This is an experimental property with some known issues: - Not supported for globe projection at the moment - Elevated line discontinuity is possible on tile borders with terrain enabled - Rendering artifacts can happen near line joins and line caps depending on the line styling - Rendering artifacts relating to line-opacity
and line-blur
- Elevated line visibility is determined by layer order - Z-fighting issues can happen with intersecting elevated lines - Elevated lines don't cast shadows Default value: 0.
Extensions
Set line-border-color to initialise the polylineAnnotation with.
Set line-color to initialise the polylineAnnotation with.