Class NativeMethods
- Namespace
- MapLibreNative.Maui
Raw P/Invoke bindings — prefer the typed wrappers in MlnMap etc.
public static class NativeMethods
- Inheritance
-
NativeMethods
- Inherited Members
Methods
FreeString(IntPtr)
public static void FreeString(IntPtr str)
Parameters
strIntPtr
FrontendCreate(IntPtr, IntPtr, int, int, float, RenderFn, IntPtr)
Backend-agnostic frontend factory (surface_handle meaning depends on backend).
public static IntPtr FrontendCreate(IntPtr surfaceHandle, IntPtr glContext, int widthPx, int heightPx, float pixelRatio, NativeMethods.RenderFn renderCallback, IntPtr renderUserdata)
Parameters
surfaceHandleIntPtrglContextIntPtrwidthPxintheightPxintpixelRatiofloatrenderCallbackNativeMethods.RenderFnrenderUserdataIntPtr
Returns
- IntPtr
FrontendCreateGl(IntPtr, IntPtr, int, int, float, RenderFn, IntPtr)
Deprecated alias for FrontendCreate(IntPtr, IntPtr, int, int, float, RenderFn, IntPtr).
public static IntPtr FrontendCreateGl(IntPtr surfaceHandle, IntPtr glContext, int widthPx, int heightPx, float pixelRatio, NativeMethods.RenderFn renderCallback, IntPtr renderUserdata)
Parameters
surfaceHandleIntPtrglContextIntPtrwidthPxintheightPxintpixelRatiofloatrenderCallbackNativeMethods.RenderFnrenderUserdataIntPtr
Returns
- IntPtr
FrontendDestroy(IntPtr)
public static MlnStatus FrontendDestroy(IntPtr fe)
Parameters
feIntPtr
Returns
FrontendGetNativeView(IntPtr)
public static IntPtr FrontendGetNativeView(IntPtr fe)
Parameters
feIntPtr
Returns
- IntPtr
FrontendReadPixels(IntPtr, IntPtr, nuint)
Copies the last rendered frame as premultiplied RGBA into outBuf (offscreen/Vulkan).
public static MlnStatus FrontendReadPixels(IntPtr fe, IntPtr outBuf, nuint bufLen)
Parameters
feIntPtroutBufIntPtrbufLennuint
Returns
FrontendRender(IntPtr)
public static MlnStatus FrontendRender(IntPtr fe)
Parameters
feIntPtr
Returns
FrontendSetSize(IntPtr, int, int)
public static MlnStatus FrontendSetSize(IntPtr fe, int widthPx, int heightPx)
Parameters
Returns
GeoJsonSourceSetData(IntPtr, string)
public static MlnStatus GeoJsonSourceSetData(IntPtr source, string geojson)
Parameters
sourceIntPtrgeojsonstring
Returns
GeoJsonSourceSetUrl(IntPtr, string)
public static MlnStatus GeoJsonSourceSetUrl(IntPtr source, string url)
Parameters
sourceIntPtrurlstring
Returns
GetLastError()
Returns a thread-local string describing the most recent non-OK status.
public static string GetLastError()
Returns
GetRenderBackend()
Returns the renderer this native build uses: "opengl", "vulkan", or "metal".
public static string GetRenderBackend()
Returns
InstallLogCallback(LogFn?, IntPtr)
Install a process-global log callback. Pass null to restore default logging.
public static MlnStatus InstallLogCallback(NativeMethods.LogFn? fn, IntPtr userdata)
Parameters
fnNativeMethods.LogFnuserdataIntPtr
Returns
LayerGetLayoutProperty(IntPtr, string)
public static IntPtr LayerGetLayoutProperty(IntPtr layer, string name)
Parameters
layerIntPtrnamestring
Returns
- IntPtr
LayerGetPaintProperty(IntPtr, string)
public static IntPtr LayerGetPaintProperty(IntPtr layer, string name)
Parameters
layerIntPtrnamestring
Returns
- IntPtr
LayerGetVisibility(IntPtr)
public static int LayerGetVisibility(IntPtr layer)
Parameters
layerIntPtr
Returns
LayerSetFilter(IntPtr, string)
public static MlnStatus LayerSetFilter(IntPtr layer, string filterJson)
Parameters
layerIntPtrfilterJsonstring
Returns
LayerSetLayoutProperty(IntPtr, string, string)
public static MlnStatus LayerSetLayoutProperty(IntPtr layer, string name, string valueJson)
Parameters
Returns
LayerSetMaxZoom(IntPtr, float)
public static MlnStatus LayerSetMaxZoom(IntPtr layer, float zoom)
Parameters
layerIntPtrzoomfloat
Returns
LayerSetMinZoom(IntPtr, float)
public static MlnStatus LayerSetMinZoom(IntPtr layer, float zoom)
Parameters
layerIntPtrzoomfloat
Returns
LayerSetPaintProperty(IntPtr, string, string)
public static MlnStatus LayerSetPaintProperty(IntPtr layer, string name, string valueJson)
Parameters
Returns
LayerSetSourceLayer(IntPtr, string)
public static MlnStatus LayerSetSourceLayer(IntPtr layer, string sourceLayer)
Parameters
layerIntPtrsourceLayerstring
Returns
LayerSetVisibility(IntPtr, int)
public static MlnStatus LayerSetVisibility(IntPtr layer, int visible)
Parameters
layerIntPtrvisibleint
Returns
MapCameraForBounds(IntPtr, double, double, double, double, double, double, double, double, out double, out double, out double, out double, out double)
public static MlnStatus MapCameraForBounds(IntPtr map, double latSw, double lonSw, double latNe, double lonNe, double padTop, double padLeft, double padBottom, double padRight, out double outLat, out double outLon, out double outZoom, out double outBearing, out double outPitch)
Parameters
mapIntPtrlatSwdoublelonSwdoublelatNedoublelonNedoublepadTopdoublepadLeftdoublepadBottomdoublepadRightdoubleoutLatdoubleoutLondoubleoutZoomdoubleoutBearingdoubleoutPitchdouble
Returns
MapCameraForLatLngs(IntPtr, double*, int, double, double, double, double, out double, out double, out double, out double, out double)
public static MlnStatus MapCameraForLatLngs(IntPtr map, double* latLngs, int count, double padTop, double padLeft, double padBottom, double padRight, out double outLat, out double outLon, out double outZoom, out double outBearing, out double outPitch)
Parameters
mapIntPtrlatLngsdouble*countintpadTopdoublepadLeftdoublepadBottomdoublepadRightdoubleoutLatdoubleoutLondoubleoutZoomdoubleoutBearingdoubleoutPitchdouble
Returns
MapCancelTransitions(IntPtr)
public static MlnStatus MapCancelTransitions(IntPtr map)
Parameters
mapIntPtr
Returns
MapCreate(IntPtr, IntPtr, string?, string?, float, MapObserverFn?, IntPtr)
public static IntPtr MapCreate(IntPtr fe, IntPtr rl, string? cachePath, string? assetPath, float pixelRatio, NativeMethods.MapObserverFn? observer, IntPtr observerUserdata)
Parameters
feIntPtrrlIntPtrcachePathstringassetPathstringpixelRatiofloatobserverNativeMethods.MapObserverFnobserverUserdataIntPtr
Returns
- IntPtr
MapCreate2(IntPtr, IntPtr, string?, string?, string?, ulong, float, MapObserverFn?, IntPtr)
Extended map factory: adds an API key and a maximum disk-cache size (bytes; 0 = MapLibre default) on top of MapCreate(IntPtr, IntPtr, string?, string?, float, MapObserverFn?, IntPtr).
public static IntPtr MapCreate2(IntPtr fe, IntPtr rl, string? cachePath, string? assetPath, string? apiKey, ulong maxCacheSizeBytes, float pixelRatio, NativeMethods.MapObserverFn? observer, IntPtr observerUserdata)
Parameters
feIntPtrrlIntPtrcachePathstringassetPathstringapiKeystringmaxCacheSizeBytesulongpixelRatiofloatobserverNativeMethods.MapObserverFnobserverUserdataIntPtr
Returns
- IntPtr
MapDestroy(IntPtr)
public static MlnStatus MapDestroy(IntPtr map)
Parameters
mapIntPtr
Returns
MapDumpDebugLogs(IntPtr)
public static MlnStatus MapDumpDebugLogs(IntPtr map)
Parameters
mapIntPtr
Returns
MapEaseTo(IntPtr, double, double, double, double, double, long)
public static MlnStatus MapEaseTo(IntPtr map, double lat, double lon, double zoom, double bearing, double pitch, long durationMs)
Parameters
Returns
MapEaseToPadded(IntPtr, double, double, double, double, double, double, double, double, double, long)
public static MlnStatus MapEaseToPadded(IntPtr map, double lat, double lon, double zoom, double bearing, double pitch, double padTop, double padLeft, double padBottom, double padRight, long durationMs)
Parameters
mapIntPtrlatdoublelondoublezoomdoublebearingdoublepitchdoublepadTopdoublepadLeftdoublepadBottomdoublepadRightdoubledurationMslong
Returns
MapFlyTo(IntPtr, double, double, double, double, double, long)
public static MlnStatus MapFlyTo(IntPtr map, double lat, double lon, double zoom, double bearing, double pitch, long durationMs)
Parameters
Returns
MapFlyToPadded(IntPtr, double, double, double, double, double, double, double, double, double, long)
public static MlnStatus MapFlyToPadded(IntPtr map, double lat, double lon, double zoom, double bearing, double pitch, double padTop, double padLeft, double padBottom, double padRight, long durationMs)
Parameters
mapIntPtrlatdoublelondoublezoomdoublebearingdoublepitchdoublepadTopdoublepadLeftdoublepadBottomdoublepadRightdoubledurationMslong
Returns
MapGetBearing(IntPtr)
public static double MapGetBearing(IntPtr map)
Parameters
mapIntPtr
Returns
MapGetBounds(IntPtr, out double, out double, out double, out double, out double, out double, out double, out double)
public static void MapGetBounds(IntPtr map, out double latSw, out double lonSw, out double latNe, out double lonNe, out double minZoom, out double maxZoom, out double minPitch, out double maxPitch)
Parameters
mapIntPtrlatSwdoublelonSwdoublelatNedoublelonNedoubleminZoomdoublemaxZoomdoubleminPitchdoublemaxPitchdouble
MapGetCamera(IntPtr, double, double, double, double, out double, out double, out double, out double, out double)
public static MlnStatus MapGetCamera(IntPtr map, double padTop, double padLeft, double padBottom, double padRight, out double outLat, out double outLon, out double outZoom, out double outBearing, out double outPitch)
Parameters
mapIntPtrpadTopdoublepadLeftdoublepadBottomdoublepadRightdoubleoutLatdoubleoutLondoubleoutZoomdoubleoutBearingdoubleoutPitchdouble
Returns
MapGetCenter(IntPtr, out double, out double)
public static void MapGetCenter(IntPtr map, out double lat, out double lon)
Parameters
MapGetDebugOptions(IntPtr)
public static int MapGetDebugOptions(IntPtr map)
Parameters
mapIntPtr
Returns
MapGetFeatureState(IntPtr, string, string?, string)
public static IntPtr MapGetFeatureState(IntPtr map, string sourceId, string? sourceLayerId, string featureId)
Parameters
Returns
- IntPtr
MapGetPitch(IntPtr)
public static double MapGetPitch(IntPtr map)
Parameters
mapIntPtr
Returns
MapGetPrefetchZoomDelta(IntPtr)
public static int MapGetPrefetchZoomDelta(IntPtr map)
Parameters
mapIntPtr
Returns
MapGetStyle(IntPtr)
public static IntPtr MapGetStyle(IntPtr map)
Parameters
mapIntPtr
Returns
- IntPtr
MapGetTerrainLoadMode(IntPtr)
public static int MapGetTerrainLoadMode(IntPtr map)
Parameters
mapIntPtr
Returns
MapGetZoom(IntPtr)
public static double MapGetZoom(IntPtr map)
Parameters
mapIntPtr
Returns
MapIsFullyLoaded(IntPtr)
public static int MapIsFullyLoaded(IntPtr map)
Parameters
mapIntPtr
Returns
MapIsGestureInProgress(IntPtr)
public static int MapIsGestureInProgress(IntPtr map)
Parameters
mapIntPtr
Returns
MapIsPanning(IntPtr)
public static int MapIsPanning(IntPtr map)
Parameters
mapIntPtr
Returns
MapIsRotating(IntPtr)
public static int MapIsRotating(IntPtr map)
Parameters
mapIntPtr
Returns
MapIsScaling(IntPtr)
public static int MapIsScaling(IntPtr map)
Parameters
mapIntPtr
Returns
MapJumpTo(IntPtr, double, double, double, double, double)
public static MlnStatus MapJumpTo(IntPtr map, double lat, double lon, double zoom, double bearing, double pitch)
Parameters
Returns
MapJumpToPadded(IntPtr, double, double, double, double, double, double, double, double, double)
public static MlnStatus MapJumpToPadded(IntPtr map, double lat, double lon, double zoom, double bearing, double pitch, double padTop, double padLeft, double padBottom, double padRight)
Parameters
mapIntPtrlatdoublelondoublezoomdoublebearingdoublepitchdoublepadTopdoublepadLeftdoublepadBottomdoublepadRightdouble
Returns
MapLatLngBoundsForCamera(IntPtr, double*, double*, double*, double*)
public static MlnStatus MapLatLngBoundsForCamera(IntPtr map, double* outLatSw, double* outLonSw, double* outLatNe, double* outLonNe)
Parameters
Returns
MapLatLngForPixel(IntPtr, double, double, out double, out double)
public static void MapLatLngForPixel(IntPtr map, double x, double y, out double outLat, out double outLon)
Parameters
MapLatLngsForPixels(IntPtr, double*, int, double*)
public static MlnStatus MapLatLngsForPixels(IntPtr map, double* xy, int count, double* outLatLngs)
Parameters
Returns
MapMoveBy(IntPtr, double, double, long)
public static MlnStatus MapMoveBy(IntPtr map, double dx, double dy, long durationMs)
Parameters
Returns
MapOnDoubleTap(IntPtr, double, double)
public static MlnStatus MapOnDoubleTap(IntPtr map, double x, double y)
Parameters
Returns
MapOnPanEnd(IntPtr)
public static MlnStatus MapOnPanEnd(IntPtr map)
Parameters
mapIntPtr
Returns
MapOnPanMove(IntPtr, double, double)
public static MlnStatus MapOnPanMove(IntPtr map, double dx, double dy)
Parameters
Returns
MapOnPanStart(IntPtr, double, double)
public static MlnStatus MapOnPanStart(IntPtr map, double x, double y)
Parameters
Returns
MapOnPinch(IntPtr, double, double, double)
public static MlnStatus MapOnPinch(IntPtr map, double scaleFactor, double cx, double cy)
Parameters
Returns
MapOnScroll(IntPtr, double, double, double)
public static MlnStatus MapOnScroll(IntPtr map, double delta, double cx, double cy)
Parameters
Returns
MapPitchBy(IntPtr, double, long)
public static MlnStatus MapPitchBy(IntPtr map, double deltaDegrees, long durationMs)
Parameters
Returns
MapPixelForLatLng(IntPtr, double, double, out double, out double)
public static void MapPixelForLatLng(IntPtr map, double lat, double lon, out double outX, out double outY)
Parameters
MapPixelsForLatLngs(IntPtr, double*, int, double*)
public static MlnStatus MapPixelsForLatLngs(IntPtr map, double* latLngs, int count, double* outXy)
Parameters
Returns
MapQueryFeatureExtensions(IntPtr, string, string, string, string, string?)
public static IntPtr MapQueryFeatureExtensions(IntPtr map, string sourceId, string featureJson, string extension, string extensionField, string? argsJson)
Parameters
mapIntPtrsourceIdstringfeatureJsonstringextensionstringextensionFieldstringargsJsonstring
Returns
- IntPtr
MapQueryRenderedFeaturesAtPoint(IntPtr, double, double, string?)
public static IntPtr MapQueryRenderedFeaturesAtPoint(IntPtr map, double x, double y, string? layerIds)
Parameters
Returns
- IntPtr
MapQueryRenderedFeaturesInBox(IntPtr, double, double, double, double, string?)
public static IntPtr MapQueryRenderedFeaturesInBox(IntPtr map, double x1, double y1, double x2, double y2, string? layerIds)
Parameters
Returns
- IntPtr
MapQuerySourceFeatures(IntPtr, string, string?, string?)
public static IntPtr MapQuerySourceFeatures(IntPtr map, string sourceId, string? sourceLayerIds, string? filterJson)
Parameters
Returns
- IntPtr
MapReduceMemoryUse(IntPtr)
public static MlnStatus MapReduceMemoryUse(IntPtr map)
Parameters
mapIntPtr
Returns
MapRemoveFeatureState(IntPtr, string, string?, string?, string?)
public static MlnStatus MapRemoveFeatureState(IntPtr map, string sourceId, string? sourceLayerId, string? featureId, string? stateKey)
Parameters
Returns
MapRotateBy(IntPtr, double, double, double, double)
public static MlnStatus MapRotateBy(IntPtr map, double x0, double y0, double x1, double y1)
Parameters
Returns
MapScaleBy(IntPtr, double, double, double, long)
public static MlnStatus MapScaleBy(IntPtr map, double scale, double anchorX, double anchorY, long durationMs)
Parameters
Returns
MapSetBounds(IntPtr, double, double, double, double, double, double, double, double)
public static MlnStatus MapSetBounds(IntPtr map, double latSw, double lonSw, double latNe, double lonNe, double minZoom, double maxZoom, double minPitch, double maxPitch)
Parameters
mapIntPtrlatSwdoublelonSwdoublelatNedoublelonNedoubleminZoomdoublemaxZoomdoubleminPitchdoublemaxPitchdouble
Returns
MapSetConstrainMode(IntPtr, int)
public static MlnStatus MapSetConstrainMode(IntPtr map, int mode)
Parameters
mapIntPtrmodeint
Returns
MapSetDebugOptions(IntPtr, int)
public static MlnStatus MapSetDebugOptions(IntPtr map, int options)
Parameters
mapIntPtroptionsint
Returns
MapSetFeatureState(IntPtr, string, string?, string, string)
public static MlnStatus MapSetFeatureState(IntPtr map, string sourceId, string? sourceLayerId, string featureId, string stateJson)
Parameters
Returns
MapSetGestureInProgress(IntPtr, int)
public static MlnStatus MapSetGestureInProgress(IntPtr map, int inProgress)
Parameters
mapIntPtrinProgressint
Returns
MapSetMaxZoom(IntPtr, double)
public static MlnStatus MapSetMaxZoom(IntPtr map, double zoom)
Parameters
mapIntPtrzoomdouble
Returns
MapSetMinZoom(IntPtr, double)
public static MlnStatus MapSetMinZoom(IntPtr map, double zoom)
Parameters
mapIntPtrzoomdouble
Returns
MapSetNorthOrientation(IntPtr, int)
public static MlnStatus MapSetNorthOrientation(IntPtr map, int orientation)
Parameters
mapIntPtrorientationint
Returns
MapSetPrefetchZoomDelta(IntPtr, int)
public static MlnStatus MapSetPrefetchZoomDelta(IntPtr map, int delta)
Parameters
mapIntPtrdeltaint
Returns
MapSetProjectionMode(IntPtr, int, double, double)
public static MlnStatus MapSetProjectionMode(IntPtr map, int axonometric, double xSkew, double ySkew)
Parameters
Returns
MapSetSize(IntPtr, int, int)
public static MlnStatus MapSetSize(IntPtr map, int widthPx, int heightPx)
Parameters
Returns
MapSetStyleJson(IntPtr, string)
public static MlnStatus MapSetStyleJson(IntPtr map, string json)
Parameters
mapIntPtrjsonstring
Returns
MapSetStyleUrl(IntPtr, string)
public static MlnStatus MapSetStyleUrl(IntPtr map, string url)
Parameters
mapIntPtrurlstring
Returns
MapSetTerrainLoadMode(IntPtr, int)
public static MlnStatus MapSetTerrainLoadMode(IntPtr map, int mode)
Parameters
mapIntPtrmodeint
Returns
MapSetTileLodMinRadius(IntPtr, double)
public static MlnStatus MapSetTileLodMinRadius(IntPtr map, double radius)
Parameters
mapIntPtrradiusdouble
Returns
MapSetTileLodMode(IntPtr, int)
public static MlnStatus MapSetTileLodMode(IntPtr map, int mode)
Parameters
mapIntPtrmodeint
Returns
MapSetTileLodPitchThreshold(IntPtr, double)
public static MlnStatus MapSetTileLodPitchThreshold(IntPtr map, double thresholdRad)
Parameters
mapIntPtrthresholdRaddouble
Returns
MapSetTileLodScale(IntPtr, double)
public static MlnStatus MapSetTileLodScale(IntPtr map, double scale)
Parameters
mapIntPtrscaledouble
Returns
MapSetTileLodZoomShift(IntPtr, double)
public static MlnStatus MapSetTileLodZoomShift(IntPtr map, double shift)
Parameters
mapIntPtrshiftdouble
Returns
MapSetViewportMode(IntPtr, int)
public static MlnStatus MapSetViewportMode(IntPtr map, int mode)
Parameters
mapIntPtrmodeint
Returns
MapTriggerRepaint(IntPtr)
public static MlnStatus MapTriggerRepaint(IntPtr map)
Parameters
mapIntPtr
Returns
NetworkStatusGet()
Returns 1 if the network is in online mode, 0 if offline.
public static int NetworkStatusGet()
Returns
NetworkStatusSet(int)
Toggle the process-global network state. Pass 0 to force offline mode (serve only cached resources), 1 to restore online mode.
public static MlnStatus NetworkStatusSet(int online)
Parameters
onlineint
Returns
OfflineClearAmbientCache(IntPtr, OfflineDoneFn, IntPtr)
public static MlnStatus OfflineClearAmbientCache(IntPtr m, NativeMethods.OfflineDoneFn cb, IntPtr userdata)
Parameters
mIntPtrcbNativeMethods.OfflineDoneFnuserdataIntPtr
Returns
OfflineCreateRegion(IntPtr, string, double, double, double, double, double, double, float, int, byte[]?, int, OfflineRegionsFn, IntPtr)
public static MlnStatus OfflineCreateRegion(IntPtr m, string styleUrl, double latSw, double lonSw, double latNe, double lonNe, double minZoom, double maxZoom, float pixelRatio, int includeIdeographs, byte[]? metadata, int metadataLen, NativeMethods.OfflineRegionsFn cb, IntPtr userdata)
Parameters
mIntPtrstyleUrlstringlatSwdoublelonSwdoublelatNedoublelonNedoubleminZoomdoublemaxZoomdoublepixelRatiofloatincludeIdeographsintmetadatabyte[]metadataLenintcbNativeMethods.OfflineRegionsFnuserdataIntPtr
Returns
OfflineCreateRegionGeometry(IntPtr, string, string, double, double, float, int, byte[]?, int, OfflineRegionsFn, IntPtr)
public static MlnStatus OfflineCreateRegionGeometry(IntPtr m, string styleUrl, string geometryGeoJson, double minZoom, double maxZoom, float pixelRatio, int includeIdeographs, byte[]? metadata, int metadataLen, NativeMethods.OfflineRegionsFn cb, IntPtr userdata)
Parameters
mIntPtrstyleUrlstringgeometryGeoJsonstringminZoomdoublemaxZoomdoublepixelRatiofloatincludeIdeographsintmetadatabyte[]metadataLenintcbNativeMethods.OfflineRegionsFnuserdataIntPtr
Returns
OfflineDeleteRegion(IntPtr, long, OfflineDoneFn, IntPtr)
public static MlnStatus OfflineDeleteRegion(IntPtr m, long regionId, NativeMethods.OfflineDoneFn cb, IntPtr userdata)
Parameters
mIntPtrregionIdlongcbNativeMethods.OfflineDoneFnuserdataIntPtr
Returns
OfflineGetRegionStatus(IntPtr, long, OfflineStatusFn, IntPtr)
public static MlnStatus OfflineGetRegionStatus(IntPtr m, long regionId, NativeMethods.OfflineStatusFn cb, IntPtr userdata)
Parameters
mIntPtrregionIdlongcbNativeMethods.OfflineStatusFnuserdataIntPtr
Returns
OfflineInvalidateAmbientCache(IntPtr, OfflineDoneFn, IntPtr)
public static MlnStatus OfflineInvalidateAmbientCache(IntPtr m, NativeMethods.OfflineDoneFn cb, IntPtr userdata)
Parameters
mIntPtrcbNativeMethods.OfflineDoneFnuserdataIntPtr
Returns
OfflineInvalidateRegion(IntPtr, long, OfflineDoneFn, IntPtr)
public static MlnStatus OfflineInvalidateRegion(IntPtr m, long regionId, NativeMethods.OfflineDoneFn cb, IntPtr userdata)
Parameters
mIntPtrregionIdlongcbNativeMethods.OfflineDoneFnuserdataIntPtr
Returns
OfflineListRegions(IntPtr, OfflineRegionsFn, IntPtr)
public static MlnStatus OfflineListRegions(IntPtr m, NativeMethods.OfflineRegionsFn cb, IntPtr userdata)
Parameters
mIntPtrcbNativeMethods.OfflineRegionsFnuserdataIntPtr
Returns
OfflineManagerCreate(string?, string?, string?, ulong)
public static IntPtr OfflineManagerCreate(string? cachePath, string? assetPath, string? apiKey, ulong maxCacheSizeBytes)
Parameters
Returns
- IntPtr
OfflineManagerDestroy(IntPtr)
public static MlnStatus OfflineManagerDestroy(IntPtr m)
Parameters
mIntPtr
Returns
OfflineMergeDatabase(IntPtr, string, OfflineRegionsFn, IntPtr)
public static MlnStatus OfflineMergeDatabase(IntPtr m, string sideDbPath, NativeMethods.OfflineRegionsFn cb, IntPtr userdata)
Parameters
mIntPtrsideDbPathstringcbNativeMethods.OfflineRegionsFnuserdataIntPtr
Returns
OfflinePackDatabase(IntPtr, OfflineDoneFn, IntPtr)
public static MlnStatus OfflinePackDatabase(IntPtr m, NativeMethods.OfflineDoneFn cb, IntPtr userdata)
Parameters
mIntPtrcbNativeMethods.OfflineDoneFnuserdataIntPtr
Returns
OfflineRegionGetMetadata(IntPtr, long, out int)
public static IntPtr OfflineRegionGetMetadata(IntPtr m, long regionId, out int outLen)
Parameters
Returns
- IntPtr
OfflineResetDatabase(IntPtr, OfflineDoneFn, IntPtr)
public static MlnStatus OfflineResetDatabase(IntPtr m, NativeMethods.OfflineDoneFn cb, IntPtr userdata)
Parameters
mIntPtrcbNativeMethods.OfflineDoneFnuserdataIntPtr
Returns
OfflineSetMaximumAmbientCacheSize(IntPtr, ulong, OfflineDoneFn, IntPtr)
public static MlnStatus OfflineSetMaximumAmbientCacheSize(IntPtr m, ulong bytes, NativeMethods.OfflineDoneFn cb, IntPtr userdata)
Parameters
mIntPtrbytesulongcbNativeMethods.OfflineDoneFnuserdataIntPtr
Returns
OfflineSetPackDatabaseAutomatically(IntPtr, int)
public static MlnStatus OfflineSetPackDatabaseAutomatically(IntPtr m, int enabled)
Parameters
mIntPtrenabledint
Returns
OfflineSetRegionDownloadState(IntPtr, long, int)
public static MlnStatus OfflineSetRegionDownloadState(IntPtr m, long regionId, int active)
Parameters
Returns
OfflineSetRegionObserver(IntPtr, long, OfflineProgressFn?, OfflineRegionErrorFn?, IntPtr)
public static MlnStatus OfflineSetRegionObserver(IntPtr m, long regionId, NativeMethods.OfflineProgressFn? progress, NativeMethods.OfflineRegionErrorFn? error, IntPtr userdata)
Parameters
mIntPtrregionIdlongprogressNativeMethods.OfflineProgressFnerrorNativeMethods.OfflineRegionErrorFnuserdataIntPtr
Returns
OfflineSetTileCountLimit(IntPtr, ulong)
public static MlnStatus OfflineSetTileCountLimit(IntPtr m, ulong limit)
Parameters
mIntPtrlimitulong
Returns
OfflineUpdateRegionMetadata(IntPtr, long, byte[]?, int, OfflineDoneFn, IntPtr)
public static MlnStatus OfflineUpdateRegionMetadata(IntPtr m, long regionId, byte[]? metadata, int metadataLen, NativeMethods.OfflineDoneFn cb, IntPtr userdata)
Parameters
mIntPtrregionIdlongmetadatabyte[]metadataLenintcbNativeMethods.OfflineDoneFnuserdataIntPtr
Returns
RunLoopCreate()
public static IntPtr RunLoopCreate()
Returns
- IntPtr
RunLoopDestroy(IntPtr)
public static MlnStatus RunLoopDestroy(IntPtr rl)
Parameters
rlIntPtr
Returns
RunLoopRunOnce(IntPtr)
public static MlnStatus RunLoopRunOnce(IntPtr rl)
Parameters
rlIntPtr
Returns
SourceGetAttribution(IntPtr)
Returns the attribution text of a source (may be NULL). Caller frees with FreeString.
public static IntPtr SourceGetAttribution(IntPtr source)
Parameters
sourceIntPtr
Returns
- IntPtr
StyleAddBackgroundLayer(IntPtr, string, string?)
public static IntPtr StyleAddBackgroundLayer(IntPtr style, string layerId, string? beforeLayerId)
Parameters
Returns
- IntPtr
StyleAddCircleLayer(IntPtr, string, string, string?)
public static IntPtr StyleAddCircleLayer(IntPtr style, string layerId, string sourceId, string? beforeLayerId)
Parameters
Returns
- IntPtr
StyleAddColorReliefLayer(IntPtr, string, string, string?)
public static IntPtr StyleAddColorReliefLayer(IntPtr style, string layerId, string sourceId, string? beforeLayerId)
Parameters
Returns
- IntPtr
StyleAddFillExtrusionLayer(IntPtr, string, string, string?)
public static IntPtr StyleAddFillExtrusionLayer(IntPtr style, string layerId, string sourceId, string? beforeLayerId)
Parameters
Returns
- IntPtr
StyleAddFillLayer(IntPtr, string, string, string?)
public static IntPtr StyleAddFillLayer(IntPtr style, string layerId, string sourceId, string? beforeLayerId)
Parameters
Returns
- IntPtr
StyleAddGeoJsonSource(IntPtr, string)
public static IntPtr StyleAddGeoJsonSource(IntPtr style, string sourceId)
Parameters
styleIntPtrsourceIdstring
Returns
- IntPtr
StyleAddGeoJsonSourceOptions(IntPtr, string, string?)
public static IntPtr StyleAddGeoJsonSourceOptions(IntPtr style, string sourceId, string? optionsJson)
Parameters
Returns
- IntPtr
StyleAddGeoJsonSourceUrl(IntPtr, string, string)
public static IntPtr StyleAddGeoJsonSourceUrl(IntPtr style, string sourceId, string url)
Parameters
Returns
- IntPtr
StyleAddHeatmapLayer(IntPtr, string, string, string?)
public static IntPtr StyleAddHeatmapLayer(IntPtr style, string layerId, string sourceId, string? beforeLayerId)
Parameters
Returns
- IntPtr
StyleAddHillshadeLayer(IntPtr, string, string, string?)
public static IntPtr StyleAddHillshadeLayer(IntPtr style, string layerId, string sourceId, string? beforeLayerId)
Parameters
Returns
- IntPtr
StyleAddImage(IntPtr, string, int, int, float, int, byte*)
public static MlnStatus StyleAddImage(IntPtr style, string imageId, int width, int height, float pixelRatio, int sdf, byte* rgbaPremultiplied)
Parameters
Returns
StyleAddImageSource(IntPtr, string, string, double, double, double, double, double, double, double, double)
public static IntPtr StyleAddImageSource(IntPtr style, string sourceId, string url, double lat0, double lon0, double lat1, double lon1, double lat2, double lon2, double lat3, double lon3)
Parameters
styleIntPtrsourceIdstringurlstringlat0doublelon0doublelat1doublelon1doublelat2doublelon2doublelat3doublelon3double
Returns
- IntPtr
StyleAddLayerJson(IntPtr, string, string?)
public static IntPtr StyleAddLayerJson(IntPtr style, string layerJson, string? beforeLayerId)
Parameters
Returns
- IntPtr
StyleAddLineLayer(IntPtr, string, string, string?)
public static IntPtr StyleAddLineLayer(IntPtr style, string layerId, string sourceId, string? beforeLayerId)
Parameters
Returns
- IntPtr
StyleAddLocationIndicatorLayer(IntPtr, string, string?)
public static IntPtr StyleAddLocationIndicatorLayer(IntPtr style, string layerId, string? beforeLayerId)
Parameters
Returns
- IntPtr
StyleAddRasterDemSource(IntPtr, string, string, int)
public static IntPtr StyleAddRasterDemSource(IntPtr style, string sourceId, string url, int tileSize)
Parameters
Returns
- IntPtr
StyleAddRasterLayer(IntPtr, string, string, string?)
public static IntPtr StyleAddRasterLayer(IntPtr style, string layerId, string sourceId, string? beforeLayerId)
Parameters
Returns
- IntPtr
StyleAddRasterSource(IntPtr, string, string, int)
public static IntPtr StyleAddRasterSource(IntPtr style, string sourceId, string url, int tileSize)
Parameters
Returns
- IntPtr
StyleAddSourceJson(IntPtr, string, string)
public static MlnStatus StyleAddSourceJson(IntPtr style, string sourceId, string sourceJson)
Parameters
Returns
StyleAddSymbolLayer(IntPtr, string, string, string?)
public static IntPtr StyleAddSymbolLayer(IntPtr style, string layerId, string sourceId, string? beforeLayerId)
Parameters
Returns
- IntPtr
StyleAddVectorSource(IntPtr, string, string)
public static IntPtr StyleAddVectorSource(IntPtr style, string sourceId, string url)
Parameters
Returns
- IntPtr
StyleGetJson(IntPtr)
public static IntPtr StyleGetJson(IntPtr style)
Parameters
styleIntPtr
Returns
- IntPtr
StyleGetLayer(IntPtr, string)
public static IntPtr StyleGetLayer(IntPtr style, string layerId)
Parameters
styleIntPtrlayerIdstring
Returns
- IntPtr
StyleGetLayerIds(IntPtr)
public static IntPtr StyleGetLayerIds(IntPtr style)
Parameters
styleIntPtr
Returns
- IntPtr
StyleGetName(IntPtr)
public static IntPtr StyleGetName(IntPtr style)
Parameters
styleIntPtr
Returns
- IntPtr
StyleGetSource(IntPtr, string)
public static IntPtr StyleGetSource(IntPtr style, string sourceId)
Parameters
styleIntPtrsourceIdstring
Returns
- IntPtr
StyleGetSourceIds(IntPtr)
public static IntPtr StyleGetSourceIds(IntPtr style)
Parameters
styleIntPtr
Returns
- IntPtr
StyleGetUrl(IntPtr)
public static IntPtr StyleGetUrl(IntPtr style)
Parameters
styleIntPtr
Returns
- IntPtr
StyleHasLayer(IntPtr, string)
public static int StyleHasLayer(IntPtr style, string layerId)
Parameters
styleIntPtrlayerIdstring
Returns
StyleHasSource(IntPtr, string)
public static int StyleHasSource(IntPtr style, string sourceId)
Parameters
styleIntPtrsourceIdstring
Returns
StyleIsTerrainEnabled(IntPtr)
public static int StyleIsTerrainEnabled(IntPtr style)
Parameters
styleIntPtr
Returns
StyleRemoveImage(IntPtr, string)
public static MlnStatus StyleRemoveImage(IntPtr style, string imageId)
Parameters
styleIntPtrimageIdstring
Returns
StyleRemoveLayer(IntPtr, string)
public static MlnStatus StyleRemoveLayer(IntPtr style, string layerId)
Parameters
styleIntPtrlayerIdstring
Returns
StyleRemoveSource(IntPtr, string)
public static MlnStatus StyleRemoveSource(IntPtr style, string sourceId)
Parameters
styleIntPtrsourceIdstring
Returns
StyleRemoveTerrain(IntPtr)
public static MlnStatus StyleRemoveTerrain(IntPtr style)
Parameters
styleIntPtr
Returns
StyleSetLightProperty(IntPtr, string, string)
public static MlnStatus StyleSetLightProperty(IntPtr style, string name, string valueJson)
Parameters
Returns
StyleSetTerrain(IntPtr, string, float)
public static MlnStatus StyleSetTerrain(IntPtr style, string sourceId, float exaggeration)
Parameters
Returns
StyleSetTransition(IntPtr, long, long)
public static MlnStatus StyleSetTransition(IntPtr style, long durationMs, long delayMs)