TilesetDescriptorOptions class

Describes the tileset descriptor option values.

Constructors

TilesetDescriptorOptions({required String styleURI, required int minZoom, required int maxZoom, double? pixelRatio, List<String?>? tilesets, StylePackLoadOptions? stylePackOptions, Map<String?, Object?>? extraOptions})

Properties

extraOptions Map<String?, Object?>?
Extra tileset descriptor options.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
maxZoom int
Maximum zoom level for the tile package. maxZoom value cannot exceed the maximum allowed tile batch zoom value.
getter/setter pair
minZoom int
Minimum zoom level for the tile package. Note: the implementation loads and stores the loaded tiles in batches, each batch has a pre-defined zoom range and it contains all child tiles within the range. The zoom leveling scheme for the tile batches can be defined in Tile JSON, otherwise the default scheme is used:
getter/setter pair
pixelRatio double?
Pixel ratio to be accounted for when downloading raster tiles. The pixelRatio must be ≥ 0 and should typically be 1.0 or 2.0.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stylePackOptions StylePackLoadOptions?
Style package load options, associated with the tileset descriptor. If provided, offline manager will create a style package while resolving the corresponding tileset descriptor and load all the resources as defined in the provided style package options, i.e. resolving of corresponding the tileset descriptor will be equivalent to calling the loadStylePack method of offline manager. If not provided, resolving of the corresponding tileset descriptor will not cause creating of a new style package but the loaded resources will be stored in the disk cache.
getter/setter pair
styleURI String
The style associated with the tileset descriptor.
getter/setter pair
tilesets List<String?>?
The tilesets associated with the tileset descriptor. Contains an array, each element of which must be either a URI to a TileJSON resource or a JSON string representing the inline tileset. This property can be used to resolve extra tilesets that are not part of the original style represented by styleURL, it can be used also with the empty styleURL. The provided URIs must have "mapbox://" scheme, e.g. "mapbox://mapbox.mapbox-streets-v8".
getter/setter pair

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) TilesetDescriptorOptions