TileOffset class
Describes a tile size and zoom offset so that loaded tiles can be used to render a larger or smaller area.
Constructors
- TileOffset({required int zoomOffset})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- zoomOffset → int
-
zoomOffset the zoom offset, usually 0. A negative offset will cause tiles
to be loaded at a lower zoom level than normal. E.g. a zoomOffset of -1 will
cause the map to load tiles at zoom level 13 when the map is at zoom level 14.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
offsetBy(
{required int zoom}) → TileOffset - provides an offset relative to this one.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- mapbox → TileOffset
-
A tile offset corresponding to that recommended by Mapbox
https://docs.mapbox.com/help/glossary/zoom-level/#tile-size
final
Constants
- DEFAULT → const TileOffset
- The default tile offset with size 256.0 and zoomOffset 0