Expand description
Provides utilities related to coordinates.
Structsยง
- Aligned
World Tile Coords - An aligned world tile coordinate aligns a world coordinate at a 4x4 tile raster within the world. The aligned coordinates is defined by the coordinates of the upper left tile in the 4x4 tile raster divided by 2 and rounding to the ceiling.
- Inner
Coords - Within each tile there is a separate coordinate system. Usually this coordinate system is
within
EXTENT. Therefore,xandymust be within the bounds ofEXTENT. - LatLon
- Quadkey
- Represents the position of a node within a quad tree. The first u8 defines the
ZoomLevelof the node. The remaining bytes define which part (north west, south west, south east, north east) of each subdivision of the quadtree is concerned. - Tile
Coords - Every tile has tile coordinates. These tile coordinates are also called Slippy map tile names.
- View
Region - Defines a bounding box on a tiled map with a
ZoomLeveland a padding. - World
Coords - Actual coordinates within the 3D world. The
zvalue of the [WorldCoors] is not related to thezvalue of the [WorldTileCoors]. In the 3D world all tiles are rendered atzvalues which are determined only by the render engine and not by the zoom level. - World
Tile Coords - Every tile has tile coordinates. Every tile coordinate can be mapped to a coordinate within the world. This provides the freedom to map from TMS to Slippy map tile names.
- Zoom
Zoomis an exponential scale that defines the zoom of the camera on the map. We can derive theZoomLevelfromZoomby using the[crate::coords::ZOOM_BOUNDS].- Zoom
Level
Constantsยง
- BOTTOM_
RIGHT_ ๐EXTENT - EXTENT
- EXTENT_
SINT - EXTENT_
UINT - MAX_
ZOOM - TILE_
SIZE - TOP_
LEFT_ ๐EXTENT - ZOOM_
BOUNDS
Functionsยง
- create_
zoom_ ๐bounds