Namespace MapLibreNative.Maui
Classes
- MlnCache
Provides the default path of MapLibre's cache database. The map views and MlnOfflineManager both default to this path, so offline regions downloaded by the manager are served to the map automatically.
- MlnFrontend
Wraps
mln_frontend_t*.Ownership note: once passed to MlnMap, the map takes ownership of the underlying native pointer and will destroy it via
mln_map_destroy. Dispose() becomes a no-op after MapLibreNative.Maui.MlnFrontend.TransferOwnership() is called. Do not call Dispose() after Dispose().
- MlnLayer
Non-owning handle to a layer inside a loaded style.
- MlnMap
Wraps
mln_map_t*. Dispose on the render thread.
- MlnNetwork
Controls MapLibre's process-global network state. When offline, all network requests are suspended and only cached / offline resources are served; switching back online resumes queued requests.
- MlnOfflineManager
Manages offline region downloads and the ambient cache. Wraps
mln_offline_manager_t. Dispose when done; in-flight operations complete safely after disposal.
- MlnOfflineRegion
An offline region stored in the cache database.
- MlnOfflineRegionStatus
Download status of an offline region.
- MlnRunLoop
Wraps
mln_runloop_t*. Must be created and disposed on the map thread.
- MlnSource
Non-owning handle to a source inside a loaded style.
- MlnStyle
Provides access to sources and layers. This is a non-owning handle — do not dispose it; it is invalidated when the parent MlnMap is disposed.
- NativeMethods
Raw P/Invoke bindings — prefer the typed wrappers in MlnMap etc.
- TerrainIcon
Vector geometry for the on-map 3D-terrain control's icon, ported from maplibre-gl-js's
src/css/svg/maplibregl-ctrl-terrain.svgso the control reads the same as the web map's.
Structs
- BoundOptions
Camera bounds returned by GetBounds().
- CameraResult
Camera result from a fit-to-points operation.
- MlnOfflineError
Error payload for RegionError.
- MlnOfflineProgress
Progress payload for RegionProgress.
Enums
- GpsFollowZoomMode
How the GPS control chooses the camera zoom when Follow mode engages (via the on-map GPS button, or the first fix that arrives while following). Later fixes never change the zoom, so a manual pinch/scroll zoom sticks until Follow is re-entered.
- MapControlCorner
The corner of the map that an on-map overlay control (navigation, GPS or attribution) is anchored to.
- MlnDebugOptions
Bitmask of debug visualisation overlays. OR together the flags you want.
- MlnLogLevel
Log severity levels emitted by MapLibre Native.
- MlnRenderBackend
The renderer the loaded native library was built against.
- MlnStatus
Return status from every mutating C ABI function. Non-zero means failure; call GetLastError() for a diagnostic message.
- TerrainLoadMode
How much work 3D terrain is allowed to do per frame while it loads.
Delegates
- NativeMethods.LogFn
Log intercept callback. Return non-zero to consume the record (suppress default output).
- NativeMethods.OfflineDoneFn
One-shot completion callback for offline operations with no payload.
- NativeMethods.OfflineProgressFn
Recurring download-progress callback for an observed region.
- NativeMethods.OfflineRegionErrorFn
Recurring download-error callback for an observed region.
reasonmatches mbgl's Response::Error::Reason values (2=NotFound 3=Server 4=Connection 5=RateLimit 6=Other), or 100 when the Mapbox tile count limit was exceeded.
- NativeMethods.OfflineRegionsFn
One-shot callback delivering a JSON array of offline regions.
- NativeMethods.OfflineStatusFn
One-shot callback delivering a region status JSON object.