PolygonAnnotationManager class
The PolygonAnnotationManager to add/update/delete PolygonAnnotationAnnotations on the map.
- Inheritance
-
- Object
- BaseAnnotationManager
- PolygonAnnotationManager
Constructors
- PolygonAnnotationManager({required String id, required BinaryMessenger messenger})
Properties
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.
-
getFillTranslate(
) → Future< List< double?> ?> -
The geometry's offset. Values are
x, y
where negatives indicate left and up, respectively. -
getFillTranslateAnchor(
) → Future< FillTranslateAnchor?> -
Controls the frame of reference for
fill-translate
. -
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.
-
setFillTranslate(
List< double?> fillTranslate) → Future<void> -
The geometry's offset. Values are
x, y
where negatives indicate left and up, respectively. -
setFillTranslateAnchor(
FillTranslateAnchor fillTranslateAnchor) → Future< void> -
Controls the frame of reference for
fill-translate
. -
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