PolygonAnnotationManager class
The PolygonAnnotationManager to add/update/delete PolygonAnnotationAnnotations on the map.
- Inheritance
-
- Object
- BaseAnnotationManager
- PolygonAnnotationManager
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. Default value: true.
-
getFillColor(
) → Future< int?> -
The color of the filled part of this layer. This color can be specified as
rgbawith an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used. Default value: "#000000". -
getFillEmissiveStrength(
) → Future< double?> - Controls the intensity of light emitted on the source features. Default value: 0. Minimum value: 0.
-
getFillOpacity(
) → Future< double?> -
The opacity of the entire fill layer. In contrast to the
fill-color, this value will also affect the 1px stroke around the fill, if the stroke is used. Default value: 1. Value range:0, 1 -
getFillOutlineColor(
) → Future< int?> -
The outline color of the fill. Matches the value of
fill-colorif unspecified. -
getFillPattern(
) → Future< String?> - Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.
-
getFillSortKey(
) → Future< double?> - Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.
-
getFillTranslate(
) → Future< List< double?> ?> -
The geometry's offset. Values are
x, ywhere 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.
-
setFillColor(
int fillColor) → Future< void> -
The color of the filled part of this layer. This color can be specified as
rgbawith an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used. Default value: "#000000". -
setFillEmissiveStrength(
double fillEmissiveStrength) → Future< void> - Controls the intensity of light emitted on the source features. Default value: 0. Minimum value: 0.
-
setFillOpacity(
double fillOpacity) → Future< void> -
The opacity of the entire fill layer. In contrast to the
fill-color, this value will also affect the 1px stroke around the fill, if the stroke is used. Default value: 1. Value range:0, 1 -
setFillOutlineColor(
int fillOutlineColor) → Future< void> -
The outline color of the fill. Matches the value of
fill-colorif unspecified. -
setFillPattern(
String fillPattern) → Future< void> - Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.
-
setFillSortKey(
double fillSortKey) → Future< void> - Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.
-
setFillTranslate(
List< double?> fillTranslate) → Future<void> -
The geometry's offset. Values are
x, ywhere 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