TileKey class

Identifies a slippy-map tile by zoom and grid position.

x is always normalized to 0 <= x < 2^z (the world wraps in longitude); y is expected to be within 0 <= y < 2^z.

Annotations

Constructors

TileKey(int z, int x, int y)
const
TileKey.wrapped(int z, int x, int y)
Creates a key with x wrapped into the valid range for z.
factory

Properties

hashCode → int
The hash code for this object.
no setteroverride
isValid → bool
Whether y lies inside the world grid at this zoom.
no setter
parent → TileKey
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
x → int
final
y → int
final
z → int
final

Methods

ancestorAt(int ancestorZoom) → TileKey
The ancestor of this tile at ancestorZoom, which must be <= z.
fractionOf(TileKey ancestor) → ({double dx, double dy, double scale})
This tile's position within its ancestor at ancestorZoom, in fractional tile units of the ancestor (0..1 origin, size 2^-shift).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override