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
messager ↔ _PolylineAnnotationMessager
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.
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 trim-off percentage range based on the whole line gradinet range 0.0, 1.0. The line part between trim-start, trim-end will be marked as transparent to make a route vanishing effect. If either 'trim-start' or 'trim-end' offset is out of valid range, the default range will be set.
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.
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 trim-off percentage range based on the whole line gradinet range 0.0, 1.0. The line part between trim-start, trim-end will be marked as transparent to make a route vanishing effect. If either 'trim-start' or 'trim-end' offset is out of valid range, the default range will be set.
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