TileMatrixSet class abstract

A tiling scheme represented as a set of tile matrices (grids).

Implementers

Constructors

TileMatrixSet()
Default const constructor to allow extending this abstract class.
const

Properties

converter ScaledConverter
A map converter between geospatial positions and map coordinates.
no setter
hashCode int
The hash code for this object.
no setterinherited
maxZoom int
The maximum (suggested) zoom level for this tile matrix set.
no setter
origin CanvasOrigin
The position of the origin in a tile matrix and map pixel "canvas".
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tileSize int
The number of pixels for one tile in one axis (normally 256 or 512).
no setter

Methods

mapBounds() Box
Returns a bounding box with min and max positions for the whole map.
mapHeight(int zoom) int
The number of pixels ("map height") at zoom in the Y axis.
mapWidth(int zoom) int
The number of pixels ("map width") at zoom in the X axis.
matrixHeight(int zoom) int
The number of tiles ("matrix height") at zoom in the Y axis.
matrixWidth(int zoom) int
The number of tiles ("matrix width") at zoom in the X axis.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pixelGroundResolution(int zoom) double
The groud resolution (in meters) of a pixel at zoom.
pixelToPosition(Scalable2i pixel) Position
Transforms pixel coordinates to a position.
pixelToTile(Scalable2i pixel) Scalable2i
Returns a tile covering a region in pixel coordinates.
pixelToWorld(Scalable2i pixel) Projected
Transforms pixel coordinates to world coordinates.
positionToPixel(covariant Position position, {int zoom = 0}) Scalable2i
Transforms position to pixel coordinates at zoom.
positionToTile(covariant Position position, {int zoom = 0}) Scalable2i
Returns a tile at zoom covering a region in position.
positionToWorld(covariant Position position) Projected
Transforms position to world coordinates.
scaleDenominator(int zoom, {double screenPPI = screenPPIbyOGC}) double
The map scale denominator at zoom and screenPPI.
tileGroundResolution(int zoom) double
The groud resolution (in meters) of a tile at zoom.
tileToBounds(Scalable2i tile) Box
Returns a bounding box with min and max positions for tile.
tileToPixel(Scalable2i tile, {Aligned align = Aligned.center, bool requireInside = false}) Scalable2i
Transforms a fractional point defined by align inside tile to pixel coordinates.
tileToPosition(Scalable2i tile, {Aligned align = Aligned.center}) Position
Transforms a fractional point defined by align inside tile to a position.
tileToWorld(Scalable2i tile, {Aligned align = Aligned.center}) Projected
Transforms a fractional point defined by align inside tile to world coordinates.
toString() String
A string representation of this object.
inherited
worldToPixel(Projected world, {int zoom = 0}) Scalable2i
Transforms world coordinates to pixel coordinates at zoom.
worldToPosition(Projected world) Position
Transforms world coordinates to a position.
worldToTile(Projected world, {int zoom = 0}) Scalable2i
Returns a tile at zoom covering a region in world coordinates.
zoomFromPixelGroundResolution(double resolution) double
The zoom from pixel ground resolution in meters.
zoomFromScaleDenominator(double denominator, {double screenPPI = screenPPIbyOGC}) double
The zoom from map scale denominator at given screenPPI.

Operators

operator ==(Object other) bool
The equality operator.
inherited