OfflineRegionTilePyramidDefinition class
An offline region definition is a geographic region defined by a style URL,
geographic bounding box, 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
- OfflineRegionTilePyramidDefinition({required String styleURL, required CoordinateBounds bounds, required double minZoom, required double maxZoom, required double pixelRatio, required GlyphsRasterizationMode glyphsRasterizationMode})
Properties
- bounds ↔ CoordinateBounds
-
The bounds covering the region.
getter/setter pair
- glyphsRasterizationMode ↔ GlyphsRasterizationMode
-
Specifies glyphs download mode.
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) → OfflineRegionTilePyramidDefinition