TileCoordinatesResolver class

Resolves coordinates in the context of world replications.

On maps with world replications, different tile coordinates may actually refer to the same "resolved" tile coordinate - the coordinate that starts from 0. For instance, on zoom level 0, all tile coordinates can be simplified to (0,0), which is the only tile. On zoom level 1, (0, 1) and (2, 1) can be simplified to (0, 1), as they both mean the bottom left tile. And when we're not in the context of world replications, we don't have to simplify the tile coordinates: we just return the same value.

Constructors

TileCoordinatesResolver(bool replicatesWorldLongitude, {int zoomOffset = 0})
Resolves coordinates in the context of world replications.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
replicatesWorldLongitude bool
True if we simplify the coordinates according to the world replications.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
zoomOffset int
The zoom number used for modulus will be offset with this value.
final

Methods

get(TileCoordinates positionCoordinates) TileCoordinates
Returns the simplification of the coordinates.
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