PolylineAnnotationManager class

The PolylineAnnotationManager to add/update/delete PolylineAnnotationAnnotations on the map.

Inheritance

Constructors

PolylineAnnotationManager({required String id, required BinaryMessenger messenger})

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
finalinherited
messenger ↔ _PolylineAnnotationMessenger
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addOnPolylineAnnotationClickListener(OnPolylineAnnotationClickListener listener) → void
Add a listener to receive the callback when an annotation is clicked.
create(PolylineAnnotationOptions annotation) Future<PolylineAnnotation>
Create a new annotation with the option.
createMulti(List<PolylineAnnotationOptions> annotations) Future<List<PolylineAnnotation?>>
Create multi annotations with the options.
delete(PolylineAnnotation annotation) Future<void>
Delete an added annotation.
deleteAll() Future<void>
Delete all the annotation added by this manager.
getLineCap() Future<LineCap?>
The display of line endings.
getLineDasharray() Future<List<double?>?>
Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to pixels, multiply the length by the current line width. Note that GeoJSON sources with lineMetrics: true specified won't render dashed lines to the expected scale. Also note that zoom-dependent expressions will be evaluated only at integer zoom levels.
getLineDepthOcclusionFactor() Future<double?>
Decrease line layer opacity based on occlusion from 3D objects. Value 0 disables occlusion, value 1 means fully occluded.
getLineEmissiveStrength() Future<double?>
Controls the intensity of light emitted on the source features.
getLineMiterLimit() Future<double?>
Used to automatically convert miter joins to bevel joins for sharp angles.
getLineRoundLimit() Future<double?>
Used to automatically convert round joins to miter joins for shallow angles.
getLineTranslate() Future<List<double?>?>
The geometry's offset. Values are x, y where negatives indicate left and up, respectively.
getLineTranslateAnchor() Future<LineTranslateAnchor?>
Controls the frame of reference for line-translate.
getLineTrimOffset() Future<List<double?>?>
The line part between trim-start, trim-end will be marked as transparent to make a route vanishing effect. The line trim-off offset is based on the whole line range 0.0, 1.0.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setLineCap(LineCap lineCap) Future<void>
The display of line endings.
setLineDasharray(List<double?> lineDasharray) Future<void>
Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to pixels, multiply the length by the current line width. Note that GeoJSON sources with lineMetrics: true specified won't render dashed lines to the expected scale. Also note that zoom-dependent expressions will be evaluated only at integer zoom levels.
setLineDepthOcclusionFactor(double lineDepthOcclusionFactor) Future<void>
Decrease line layer opacity based on occlusion from 3D objects. Value 0 disables occlusion, value 1 means fully occluded.
setLineEmissiveStrength(double lineEmissiveStrength) Future<void>
Controls the intensity of light emitted on the source features.
setLineMiterLimit(double lineMiterLimit) Future<void>
Used to automatically convert miter joins to bevel joins for sharp angles.
setLineRoundLimit(double lineRoundLimit) Future<void>
Used to automatically convert round joins to miter joins for shallow angles.
setLineTranslate(List<double?> lineTranslate) Future<void>
The geometry's offset. Values are x, y where negatives indicate left and up, respectively.
setLineTranslateAnchor(LineTranslateAnchor lineTranslateAnchor) Future<void>
Controls the frame of reference for line-translate.
setLineTrimOffset(List<double?> lineTrimOffset) Future<void>
The line part between trim-start, trim-end will be marked as transparent to make a route vanishing effect. The line trim-off offset is based on the whole line range 0.0, 1.0.
toString() String
A string representation of this object.
inherited
update(PolylineAnnotation annotation) Future<void>
Update an added annotation with new properties.

Operators

operator ==(Object other) bool
The equality operator.
inherited