StyleImageOptions class final

Options for a style image, as the [sprite](https://maplibre.org/maplibre-style-spec/sprite/) spec describes them.

See mln_style_image_options in the C API reference.

Constructors

StyleImageOptions({List<ImageStretch>? stretchX, List<ImageStretch>? stretchY, ImageContent? content, StyleImageTextFit? textFitWidth, StyleImageTextFit? textFitHeight, double? pixelRatio, bool? sdf, bool? keepUnused})

Properties

content → ImageContent?
final
hashCode → int
The hash code for this object.
no setterinherited
keepUnused → bool?
Keeps the image after no layer uses it. Without this, the map can remove an image that it asked for through RuntimeEventType.mapStyleImageMissing.
final
pixelRatio → double?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sdf → bool?
final
stretchX → List<ImageStretch>?
The ranges of columns that stretch, in increasing order without overlap.
final
stretchY → List<ImageStretch>?
The ranges of rows that stretch, in increasing order without overlap.
final
textFitHeight → StyleImageTextFit?
final
textFitWidth → StyleImageTextFit?
final

Methods

copyWith({List<ImageStretch>? stretchX, List<ImageStretch>? stretchY, ImageContent? content, StyleImageTextFit? textFitWidth, StyleImageTextFit? textFitHeight, double? pixelRatio, bool? sdf, bool? keepUnused}) → StyleImageOptions
A copy of this value with the given members replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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