OfflineRegionGeometryDefinition class Null safety
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
read / write
- glyphsRasterizationMode ↔ GlyphsRasterizationMode
-
Specifies glyphs rasterization mode. It defines which glyphs will be loaded from the server
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- maxZoom ↔ double
-
Maximum zoom level for the offline region
read / write
- minZoom ↔ double
-
Minimum zoom level for the offline region
read / write
- pixelRatio ↔ double
-
Pixel ratio to be accounted for when downloading assets
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- styleURL ↔ String
-
The style associated with the offline region
read / write
Methods
-
encode(
) → Object -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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 message) → OfflineRegionGeometryDefinition