OfflineRegionTilePyramidDefinition class Null safety

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.
read / write
glyphsRasterizationMode GlyphsRasterizationMode
Specifies glyphs download mode.
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 result) OfflineRegionTilePyramidDefinition