Expand description
TileSource — the adapter trait every map data source implements.
The framework only ever asks a source for a single tile by
(x, y, z); it doesn’t care whether the source reads PNG files
from disk, decodes vector MVT, or hits a remote HTTP endpoint with
a cache. Implementations are responsible for their own internal
threading / caching; the call here is synchronous and is expected
to return quickly (None is a perfectly fine answer for “not
ready yet” — the controller will ask again on the next refresh).
Structs§
- TileKey
- One tile request. Coordinates are tile-space integers at zoom
level
z; seecrate::projectionfor the math.
Traits§
- Tile
Source - An on-disk or in-memory tile source. Adapters implement this.