Expand description
MapController — wires a Slint MapView instance to a
TileSource.
The controller:
- Owns the active tile source (boxed, so it’s swappable at runtime).
- Holds the canonical camera state (
centre_lon,centre_lat,zoom) — the Slint properties of the same name are mirrors, updated byMapController::refresh. - Translates the
panandzoom-bycallbacks the SlintMapViewfires (during user gestures) back into camera moves. - Pushes the visible-tile model into the
MapViewafter every refresh.
Structs§
- MapController
- Owns the source + camera; refreshes the
MapView’s tile model.