Expand description
Tiles’ ids and data: unwrapped and overscaled tile ids around
mln_style::tile_id’s canonical one, and tile ranges (tile_id,
tile_range); the layers and features of vector tiles, and the
geometry functions that work on them; and DEM data (dem_data).
TileData: a tile’s data, which is an MVT tile read lazily with fast-mvt, an MLT tile decoded with mlt-core, or features already in tile coordinates (GeoJSON and custom geometry sources). Its layers (TileLayer) and features (Feature) are views that borrow it.geometry_tile_data: hole limits, polygon fixup oni_overlay, feature conversion and corner rounding. The feature interface that the tiles implement, ring classification and coordinate conversion are inmln_style::feature.
Modules§
- cut
- Tiles deeper than their tileset’s last zoom, cut from its tiles there.
- dem
- The height rule of raster-dem sources: how a DEM texel decodes to meters,
and how terrain reads a height between texels. The shaders follow it in
the same
f32operations, in the same order: hillshade’s and color relief’s decode texels asDemUnpack::decodedoes, and terrain’s read heights assampledoes at its mesh’s vertices. So the CPU reads the heights the GPU draws at the vertices, bit for bit; between them the surface is linear across each quad, which spans a DEM tile’s size / 256 pixels or fewer, 2 for 512 px tiles.mln_engine’s conformance caseterrain_heightschecks each backend againstsample. - feature
- geometry_
tile_ data - tile_
range
Structs§
- Feature
Groups TileLayer::group_features.- MltFeature
- A feature of an
MltLayer. - MltLayer
- A layer of an
MltTile. - MltTile
- MapLibre Tile data. Cloning shares the bytes and the decoded layers.
- MvtFeature
- A feature of an
MvtLayer, whose tags are known to be well formed. - MvtLayer
- A layer of an
MvtTile, decoded. - MvtTile
- Mapbox Vector Tile data. Cloning shares the bytes and the layers found in them.
- Overscaled
TileID - Has integer z/x/y coordinates.
overscaled_zdescribes the zoom level this tile is intended to represent, e.g. when parsing data. z is never larger than the source’s maxzoom. - Unwrapped
TileID - Has integer z/x/y coordinates.
wrapdescribes tiles that are left/right of the main tile pyramid, e.g. when wrapping the world. Used for describing what position tiles are getting rendered at (= calc the matrix). z is never larger than the source’s maxzoom.
Enums§
- Feature
- A feature of a
TileLayer. Expressions and buckets read it as aGeometryTileFeature. - Tile
Data - The data of a vector tile. Cloning is cheap: each kind shares what it is made from, and what has been decoded of it.
- Tile
Layer - A layer of a
TileData.
Type Aliases§
- GeoJson
Feature - A feature in tile coordinates, as GeoJSON and custom geometry sources cut them.