OverscaledTileID class

Represents a tile coordinate at the zoom level it was requested at, which can differ from the canonical zoom level when the tile is overscaled.

tileCover returns OverscaledTileID instead of CanonicalTileID so callers can tell overscaled tiles apart from tiles at their native zoom level, and tell tiles that repeat across the antimeridian apart through wrap. Overscaling happens only when TileCoverOptions.maxZoom is set and the camera zoom exceeds it: the tile is clamped to maxZoom, and canonical holds the coordinate at that clamped zoom level.

Constructors

OverscaledTileID({required int overscaledZ, required int wrap, required CanonicalTileID canonical})

Properties

canonical CanonicalTileID
The canonical tile coordinate backing this overscaled tile.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
overscaledZ int
The zoom level this tile was requested at.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
wrap int
The horizontal wrap offset, for tiles that repeat across the antimeridian.
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.
override

Static Methods

decode(Object result) OverscaledTileID