PolylineAnnotationManager class
The PolylineAnnotationManager to add/update/delete PolylineAnnotationAnnotations on the map.
- Inheritance
-
- Object
- BaseAnnotationManager
- PolylineAnnotationManager
Constructors
- PolylineAnnotationManager({required String id, required BinaryMessenger messenger})
Properties
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. Default value: "butt".
-
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: truespecified won't render dashed lines to the expected scale. Also note that zoom-dependent expressions will be evaluated only at integer zoom levels. Minimum value: 0. -
getLineDepthOcclusionFactor(
) → Future< double?> -
Decrease line layer opacity based on occlusion from 3D objects. Value 0 disables occlusion, value 1 means fully occluded. Default value: 1. Value range:
0, 1 -
getLineEmissiveStrength(
) → Future< double?> - Controls the intensity of light emitted on the source features. Default value: 0. Minimum value: 0.
-
getLineMiterLimit(
) → Future< double?> - Used to automatically convert miter joins to bevel joins for sharp angles. Default value: 2.
-
getLineOcclusionOpacity(
) → Future< double?> -
Opacity multiplier (multiplies line-opacity value) of the line part that is occluded by 3D objects. Value 0 hides occluded part, value 1 means the same opacity as non-occluded part. The property is not supported when
line-opacityhas data-driven styling. Default value: 0. Value range:0, 1 -
getLineRoundLimit(
) → Future< double?> - Used to automatically convert round joins to miter joins for shallow angles. Default value: 1.05.
-
getLineTranslate(
) → Future< List< double?> ?> -
The geometry's offset. Values are
x, ywhere negatives indicate left and up, respectively. Default value:0,0. -
getLineTranslateAnchor(
) → Future< LineTranslateAnchor?> -
Controls the frame of reference for
line-translate. Default value: "map". -
getLineTrimOffset(
) → Future< List< double?> ?> -
The line part between
trim-start, trim-endwill be marked as transparent to make a route vanishing effect. The line trim-off offset is based on the whole line range0.0, 1.0. Default value:0,0. Minimum value:0,0. Maximum value:1,1. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setLineCap(
LineCap lineCap) → Future< void> - The display of line endings. Default value: "butt".
-
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: truespecified won't render dashed lines to the expected scale. Also note that zoom-dependent expressions will be evaluated only at integer zoom levels. Minimum value: 0. -
setLineDepthOcclusionFactor(
double lineDepthOcclusionFactor) → Future< void> -
Decrease line layer opacity based on occlusion from 3D objects. Value 0 disables occlusion, value 1 means fully occluded. Default value: 1. Value range:
0, 1 -
setLineEmissiveStrength(
double lineEmissiveStrength) → Future< void> - Controls the intensity of light emitted on the source features. Default value: 0. Minimum value: 0.
-
setLineMiterLimit(
double lineMiterLimit) → Future< void> - Used to automatically convert miter joins to bevel joins for sharp angles. Default value: 2.
-
setLineOcclusionOpacity(
double lineOcclusionOpacity) → Future< void> -
Opacity multiplier (multiplies line-opacity value) of the line part that is occluded by 3D objects. Value 0 hides occluded part, value 1 means the same opacity as non-occluded part. The property is not supported when
line-opacityhas data-driven styling. Default value: 0. Value range:0, 1 -
setLineRoundLimit(
double lineRoundLimit) → Future< void> - Used to automatically convert round joins to miter joins for shallow angles. Default value: 1.05.
-
setLineTranslate(
List< double?> lineTranslate) → Future<void> -
The geometry's offset. Values are
x, ywhere negatives indicate left and up, respectively. Default value:0,0. -
setLineTranslateAnchor(
LineTranslateAnchor lineTranslateAnchor) → Future< void> -
Controls the frame of reference for
line-translate. Default value: "map". -
setLineTrimOffset(
List< double?> lineTrimOffset) → Future<void> -
The line part between
trim-start, trim-endwill be marked as transparent to make a route vanishing effect. The line trim-off offset is based on the whole line range0.0, 1.0. Default value:0,0. Minimum value:0,0. Maximum value:1,1. -
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