PolygonAnnotationManager class

The PolygonAnnotationManager to add/update/delete PolygonAnnotationAnnotations on the map.

Inheritance

Constructors

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

Properties

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

Methods

addOnPolygonAnnotationClickListener(OnPolygonAnnotationClickListener listener) → void
Add a listener to receive the callback when an annotation is clicked.
create(PolygonAnnotationOptions annotation) Future<PolygonAnnotation>
Create a new annotation with the option.
createMulti(List<PolygonAnnotationOptions> annotations) Future<List<PolygonAnnotation?>>
Create multi annotations with the options.
delete(PolygonAnnotation annotation) Future<void>
Delete an added annotation.
deleteAll() Future<void>
Delete all the annotation added by this manager.
getFillAntialias() Future<bool?>
Whether or not the fill should be antialiased. Default value: true.
getFillEmissiveStrength() Future<double?>
Controls the intensity of light emitted on the source features. Default value: 0. Minimum value: 0.
getFillTranslate() Future<List<double?>?>
The geometry's offset. Values are x, y where negatives indicate left and up, respectively. Default value: 0,0.
getFillTranslateAnchor() Future<FillTranslateAnchor?>
Controls the frame of reference for fill-translate. Default value: "map".
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setFillAntialias(bool fillAntialias) Future<void>
Whether or not the fill should be antialiased. Default value: true.
setFillEmissiveStrength(double fillEmissiveStrength) Future<void>
Controls the intensity of light emitted on the source features. Default value: 0. Minimum value: 0.
setFillTranslate(List<double?> fillTranslate) Future<void>
The geometry's offset. Values are x, y where negatives indicate left and up, respectively. Default value: 0,0.
setFillTranslateAnchor(FillTranslateAnchor fillTranslateAnchor) Future<void>
Controls the frame of reference for fill-translate. Default value: "map".
toString() String
A string representation of this object.
inherited
update(PolygonAnnotation annotation) Future<void>
Update an added annotation with new properties.

Operators

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