PointAnnotationOptions class

Constructors

PointAnnotationOptions({Map<String?, Object?>? geometry, Uint8List? image, IconAnchor? iconAnchor, String? iconImage, List<double?>? iconOffset, double? iconRotate, double? iconSize, double? symbolSortKey, TextAnchor? textAnchor, String? textField, TextJustify? textJustify, double? textLetterSpacing, double? textMaxWidth, List<double?>? textOffset, double? textRadialOffset, double? textRotate, double? textSize, TextTransform? textTransform, int? iconColor, double? iconHaloBlur, int? iconHaloColor, double? iconHaloWidth, double? iconOpacity, int? textColor, double? textHaloBlur, int? textHaloColor, double? textHaloWidth, double? textOpacity})

Properties

geometry Map<String?, Object?>?
The geometry that determines the location/shape of this annotation
read / write
hashCode int
The hash code for this object.
read-onlyinherited
iconAnchor IconAnchor?
Part of the icon placed closest to the anchor.
read / write
iconColor int?
The color of the icon. This can only be used with sdf icons.
read / write
iconHaloBlur double?
Fade out the halo towards the outside.
read / write
iconHaloColor int?
The color of the icon's halo. Icon halos can only be used with SDF icons.
read / write
iconHaloWidth double?
Distance of halo to the icon outline.
read / write
iconImage String?
Name of image in sprite to use for drawing an image background.
read / write
iconOffset List<double?>?
Offset distance of icon from its anchor. Positive values indicate right and down, while negative values indicate left and up. Each component is multiplied by the value of icon-size to obtain the final offset in pixels. When combined with icon-rotate the offset will be as if the rotated direction was up.
read / write
iconOpacity double?
The opacity at which the icon will be drawn.
read / write
iconRotate double?
Rotates the icon clockwise.
read / write
iconSize double?
Scales the original size of the icon by the provided factor. The new pixel size of the image will be the original pixel size multiplied by icon-size. 1 is the original size; 3 triples the size of the image.
read / write
image Uint8List?
The bitmap image for this Annotation Will not take effect if iconImage has been set.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
symbolSortKey double?
Sorts features in ascending order based on this value. Features with lower sort keys are drawn and placed first. When icon-allow-overlap or text-allow-overlap is false, features with a lower sort key will have priority during placement. When icon-allow-overlap or text-allow-overlap is set to true, features with a higher sort key will overlap over features with a lower sort key.
read / write
textAnchor TextAnchor?
Part of the text placed closest to the anchor.
read / write
textColor int?
The color with which the text will be drawn.
read / write
textField String?
Value to use for a text label. If a plain string is provided, it will be treated as a formatted with default/inherited formatting options.
read / write
textHaloBlur double?
The halo's fadeout distance towards the outside.
read / write
textHaloColor int?
The color of the text's halo, which helps it stand out from backgrounds.
read / write
textHaloWidth double?
Distance of halo to the font outline. Max text halo width is 1/4 of the font-size.
read / write
textJustify TextJustify?
Text justification options.
read / write
textLetterSpacing double?
Text tracking amount.
read / write
textMaxWidth double?
The maximum line width for text wrapping.
read / write
textOffset List<double?>?
Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up. If used with text-variable-anchor, input values will be taken as absolute values. Offsets along the x- and y-axis will be applied automatically based on the anchor position.
read / write
textOpacity double?
The opacity at which the text will be drawn.
read / write
textRadialOffset double?
Radial offset of text, in the direction of the symbol's anchor. Useful in combination with text-variable-anchor, which defaults to using the two-dimensional text-offset if present.
read / write
textRotate double?
Rotates the text clockwise.
read / write
textSize double?
Font size.
read / write
textTransform TextTransform?
Specifies how to capitalize text, similar to the CSS text-transform property.
read / write

Methods

encode() Object
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

decode(Object result) PointAnnotationOptions