Expand description
Experimental vector maps for dfui: the app projects its geometry (e.g.
from OpenStreetMap) with a MapBuilder, which packs it into tiled
Shapes at a few levels of detail, and map pans and zooms them.
Shapes are stored on the GPU as they come into view, so moving the map
mostly moves the rects they’re drawn into.
Structs§
- Layer
- One of a
MapBuilder’s layers. - Map
- See
map. - MapBuilder
- Collects areas and lines in metres around an origin and packs them into
MapData. Layers draw in the order they were added. - MapData
- Geometry ready to draw, from
MapBuilder::buildorMapData::from_bytes. Make it once and share it, e.g. in theApp.
Functions§
- map
- A pannable, zoomable map of
data: drag to pan; wheel, ctrl+wheel or pinch to zoom. Fills its parent’s space by default.