StyleImageOptions class final
How the map draws an image of the style, for icon-text-fit and SDF
icons. Positions are in pixels of the image, except for the images that
StyleController.addImageFromCanvas, StyleController.addImageFromIconData
and StyleController.addImageFromWidget draw, where they are logical
pixels like their size.
https://maplibre.org/maplibre-gl-js/docs/API/type-aliases/StyleImageMetadata/
- Annotations
Constructors
-
StyleImageOptions({bool sdf = false, List<
(double, double)> stretchX = const [], List<(double, double)> stretchY = const [], Rect? content, ImageTextFit? textFitWidth, ImageTextFit? textFitHeight}) -
Creates the options of an image.
const
Properties
- content → Rect?
-
The part of the image that the text of a symbol fits into.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sdf → bool
-
Whether the image is a signed distance field, whose color
icon-colorandicon-halo-colorset.final -
stretchX
→ List<
(double, double)> -
The ranges of x positions, from left to right, that stretch when the
icon fits the text of a symbol.
final
-
stretchY
→ List<
(double, double)> -
The ranges of y positions, from top to bottom, that stretch when the
icon fits the text of a symbol.
final
- textFitHeight → ImageTextFit?
-
How the image fits the height of the text.
final
- textFitWidth → ImageTextFit?
-
How the image fits the width of the text.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scaled(
double factor) → StyleImageOptions -
These options with every position multiplied by
factor. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override