OfflineRegionGeometryDefinition class

An offline region definition is a geographic region defined by a style URL, a geometry, zoom range, and device pixel ratio. Both minZoom and maxZoom must be ≥ 0, and maxZoom must be ≥ minZoom. The maxZoom may be ∞, in which case for each tile source, the region will include tiles from minZoom up to the maximum zoom level provided by that source. The pixelRatio must be ≥ 0 and should typically be 1.0 or 2.0.

Constructors

OfflineRegionGeometryDefinition({required String styleURL, required Map<String?, Object?> geometry, required double minZoom, required double maxZoom, required double pixelRatio, required GlyphsRasterizationMode glyphsRasterizationMode})

Properties

geometry Map<String?, Object?>
The geometry that defines the boundary of the offline region
getter/setter pair
glyphsRasterizationMode GlyphsRasterizationMode
Specifies glyphs rasterization mode. It defines which glyphs will be loaded from the server
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
maxZoom double
Maximum zoom level for the offline region
getter/setter pair
minZoom double
Minimum zoom level for the offline region
getter/setter pair
pixelRatio double
Pixel ratio to be accounted for when downloading assets
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
styleURL String
The style associated with the offline region
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) OfflineRegionGeometryDefinition