Expand description
Tile data: the layers and features of vector tiles, and the geometry functions that work on them.
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.
This crate is below the renderer, so the buckets can use the geometry functions. The tiles themselves, and their workers, depend on the renderer and live in a higher crate.
Re-exports§
pub use geometry_tile_data::convert_feature;pub use geometry_tile_data::is_boundary_edge;pub use geometry_tile_data::is_entirely_outside;pub use geometry_tile_data::limit_holes;pub use geometry_tile_data::round_polygon_corners;
Modules§
- cut
- Tiles deeper than their tileset’s last zoom, cut from its tiles there.
- geometry_
tile_ data
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.
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
Error - An error reading tile data: a layer, a feature or a feature’s geometry that can’t be decoded.
- Tile
Layer - A layer of a
TileData.
Type Aliases§
- GeoJson
Feature - A feature in tile coordinates, as GeoJSON and custom geometry sources cut them.