Class NativeMethods
- Namespace
- MapLibreNative.Maui
Raw P/Invoke bindings — prefer the typed wrappers in MbglMap etc.
public static class NativeMethods
- Inheritance
-
NativeMethods
- Inherited Members
Methods
FreeString(IntPtr)
public static void FreeString(IntPtr str)
Parameters
strIntPtr
FrontendCreateGl(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 MbglStatus FrontendDestroy(IntPtr fe)
Parameters
feIntPtr
Returns
FrontendGetNativeView(IntPtr)
public static IntPtr FrontendGetNativeView(IntPtr fe)
Parameters
feIntPtr
Returns
- IntPtr
FrontendRender(IntPtr)
public static MbglStatus FrontendRender(IntPtr fe)
Parameters
feIntPtr
Returns
FrontendSetSize(IntPtr, int, int)
public static MbglStatus FrontendSetSize(IntPtr fe, int widthPx, int heightPx)
Parameters
Returns
GeoJsonSourceSetData(IntPtr, string)
public static MbglStatus GeoJsonSourceSetData(IntPtr source, string geojson)
Parameters
sourceIntPtrgeojsonstring
Returns
GeoJsonSourceSetUrl(IntPtr, string)
public static MbglStatus 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
InstallLogCallback(LogFn?, IntPtr)
Install a process-global log callback. Pass null to restore default logging.
public static MbglStatus 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 MbglStatus LayerSetFilter(IntPtr layer, string filterJson)
Parameters
layerIntPtrfilterJsonstring
Returns
LayerSetLayoutProperty(IntPtr, string, string)
public static MbglStatus LayerSetLayoutProperty(IntPtr layer, string name, string valueJson)
Parameters
Returns
LayerSetMaxZoom(IntPtr, float)
public static MbglStatus LayerSetMaxZoom(IntPtr layer, float zoom)
Parameters
layerIntPtrzoomfloat
Returns
LayerSetMinZoom(IntPtr, float)
public static MbglStatus LayerSetMinZoom(IntPtr layer, float zoom)
Parameters
layerIntPtrzoomfloat
Returns
LayerSetPaintProperty(IntPtr, string, string)
public static MbglStatus LayerSetPaintProperty(IntPtr layer, string name, string valueJson)
Parameters
Returns
LayerSetSourceLayer(IntPtr, string)
public static MbglStatus LayerSetSourceLayer(IntPtr layer, string sourceLayer)
Parameters
layerIntPtrsourceLayerstring
Returns
LayerSetVisibility(IntPtr, int)
public static MbglStatus 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 MbglStatus 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 MbglStatus 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 MbglStatus 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 MbglStatus MapDestroy(IntPtr map)
Parameters
mapIntPtr
Returns
MapDumpDebugLogs(IntPtr)
public static MbglStatus MapDumpDebugLogs(IntPtr map)
Parameters
mapIntPtr
Returns
MapEaseTo(IntPtr, double, double, double, double, double, long)
public static MbglStatus 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 MbglStatus 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 MbglStatus 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 MbglStatus 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 MbglStatus 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
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 MbglStatus 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 MbglStatus 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 MbglStatus 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 MbglStatus MapLatLngsForPixels(IntPtr map, double* xy, int count, double* outLatLngs)
Parameters
Returns
MapMoveBy(IntPtr, double, double, long)
public static MbglStatus MapMoveBy(IntPtr map, double dx, double dy, long durationMs)
Parameters
Returns
MapOnDoubleTap(IntPtr, double, double)
public static MbglStatus MapOnDoubleTap(IntPtr map, double x, double y)
Parameters
Returns
MapOnPanEnd(IntPtr)
public static MbglStatus MapOnPanEnd(IntPtr map)
Parameters
mapIntPtr
Returns
MapOnPanMove(IntPtr, double, double)
public static MbglStatus MapOnPanMove(IntPtr map, double dx, double dy)
Parameters
Returns
MapOnPanStart(IntPtr, double, double)
public static MbglStatus MapOnPanStart(IntPtr map, double x, double y)
Parameters
Returns
MapOnPinch(IntPtr, double, double, double)
public static MbglStatus MapOnPinch(IntPtr map, double scaleFactor, double cx, double cy)
Parameters
Returns
MapOnScroll(IntPtr, double, double, double)
public static MbglStatus MapOnScroll(IntPtr map, double delta, double cx, double cy)
Parameters
Returns
MapPitchBy(IntPtr, double, long)
public static MbglStatus 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 MbglStatus 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 MbglStatus MapReduceMemoryUse(IntPtr map)
Parameters
mapIntPtr
Returns
MapRemoveFeatureState(IntPtr, string, string?, string?, string?)
public static MbglStatus MapRemoveFeatureState(IntPtr map, string sourceId, string? sourceLayerId, string? featureId, string? stateKey)
Parameters
Returns
MapRotateBy(IntPtr, double, double, double, double)
public static MbglStatus MapRotateBy(IntPtr map, double x0, double y0, double x1, double y1)
Parameters
Returns
MapScaleBy(IntPtr, double, double, double, long)
public static MbglStatus 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 MbglStatus 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 MbglStatus MapSetConstrainMode(IntPtr map, int mode)
Parameters
mapIntPtrmodeint
Returns
MapSetDebugOptions(IntPtr, int)
public static MbglStatus MapSetDebugOptions(IntPtr map, int options)
Parameters
mapIntPtroptionsint
Returns
MapSetFeatureState(IntPtr, string, string?, string, string)
public static MbglStatus MapSetFeatureState(IntPtr map, string sourceId, string? sourceLayerId, string featureId, string stateJson)
Parameters
Returns
MapSetGestureInProgress(IntPtr, int)
public static MbglStatus MapSetGestureInProgress(IntPtr map, int inProgress)
Parameters
mapIntPtrinProgressint
Returns
MapSetMaxZoom(IntPtr, double)
public static MbglStatus MapSetMaxZoom(IntPtr map, double zoom)
Parameters
mapIntPtrzoomdouble
Returns
MapSetMinZoom(IntPtr, double)
public static MbglStatus MapSetMinZoom(IntPtr map, double zoom)
Parameters
mapIntPtrzoomdouble
Returns
MapSetNorthOrientation(IntPtr, int)
public static MbglStatus MapSetNorthOrientation(IntPtr map, int orientation)
Parameters
mapIntPtrorientationint
Returns
MapSetPrefetchZoomDelta(IntPtr, int)
public static MbglStatus MapSetPrefetchZoomDelta(IntPtr map, int delta)
Parameters
mapIntPtrdeltaint
Returns
MapSetProjectionMode(IntPtr, int, double, double)
public static MbglStatus MapSetProjectionMode(IntPtr map, int axonometric, double xSkew, double ySkew)
Parameters
Returns
MapSetSize(IntPtr, int, int)
public static MbglStatus MapSetSize(IntPtr map, int widthPx, int heightPx)
Parameters
Returns
MapSetStyleJson(IntPtr, string)
public static MbglStatus MapSetStyleJson(IntPtr map, string json)
Parameters
mapIntPtrjsonstring
Returns
MapSetStyleUrl(IntPtr, string)
public static MbglStatus MapSetStyleUrl(IntPtr map, string url)
Parameters
mapIntPtrurlstring
Returns
MapSetTileLodMinRadius(IntPtr, double)
public static MbglStatus MapSetTileLodMinRadius(IntPtr map, double radius)
Parameters
mapIntPtrradiusdouble
Returns
MapSetTileLodMode(IntPtr, int)
public static MbglStatus MapSetTileLodMode(IntPtr map, int mode)
Parameters
mapIntPtrmodeint
Returns
MapSetTileLodPitchThreshold(IntPtr, double)
public static MbglStatus MapSetTileLodPitchThreshold(IntPtr map, double thresholdRad)
Parameters
mapIntPtrthresholdRaddouble
Returns
MapSetTileLodScale(IntPtr, double)
public static MbglStatus MapSetTileLodScale(IntPtr map, double scale)
Parameters
mapIntPtrscaledouble
Returns
MapSetTileLodZoomShift(IntPtr, double)
public static MbglStatus MapSetTileLodZoomShift(IntPtr map, double shift)
Parameters
mapIntPtrshiftdouble
Returns
MapSetViewportMode(IntPtr, int)
public static MbglStatus MapSetViewportMode(IntPtr map, int mode)
Parameters
mapIntPtrmodeint
Returns
MapTriggerRepaint(IntPtr)
public static MbglStatus 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 MbglStatus NetworkStatusSet(int online)
Parameters
onlineint
Returns
OfflineClearAmbientCache(IntPtr, OfflineDoneFn, IntPtr)
public static MbglStatus 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 MbglStatus 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 MbglStatus 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 MbglStatus OfflineDeleteRegion(IntPtr m, long regionId, NativeMethods.OfflineDoneFn cb, IntPtr userdata)
Parameters
mIntPtrregionIdlongcbNativeMethods.OfflineDoneFnuserdataIntPtr
Returns
OfflineGetRegionStatus(IntPtr, long, OfflineStatusFn, IntPtr)
public static MbglStatus OfflineGetRegionStatus(IntPtr m, long regionId, NativeMethods.OfflineStatusFn cb, IntPtr userdata)
Parameters
mIntPtrregionIdlongcbNativeMethods.OfflineStatusFnuserdataIntPtr
Returns
OfflineInvalidateAmbientCache(IntPtr, OfflineDoneFn, IntPtr)
public static MbglStatus OfflineInvalidateAmbientCache(IntPtr m, NativeMethods.OfflineDoneFn cb, IntPtr userdata)
Parameters
mIntPtrcbNativeMethods.OfflineDoneFnuserdataIntPtr
Returns
OfflineInvalidateRegion(IntPtr, long, OfflineDoneFn, IntPtr)
public static MbglStatus OfflineInvalidateRegion(IntPtr m, long regionId, NativeMethods.OfflineDoneFn cb, IntPtr userdata)
Parameters
mIntPtrregionIdlongcbNativeMethods.OfflineDoneFnuserdataIntPtr
Returns
OfflineListRegions(IntPtr, OfflineRegionsFn, IntPtr)
public static MbglStatus 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 MbglStatus OfflineManagerDestroy(IntPtr m)
Parameters
mIntPtr
Returns
OfflineMergeDatabase(IntPtr, string, OfflineRegionsFn, IntPtr)
public static MbglStatus OfflineMergeDatabase(IntPtr m, string sideDbPath, NativeMethods.OfflineRegionsFn cb, IntPtr userdata)
Parameters
mIntPtrsideDbPathstringcbNativeMethods.OfflineRegionsFnuserdataIntPtr
Returns
OfflinePackDatabase(IntPtr, OfflineDoneFn, IntPtr)
public static MbglStatus 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 MbglStatus OfflineResetDatabase(IntPtr m, NativeMethods.OfflineDoneFn cb, IntPtr userdata)
Parameters
mIntPtrcbNativeMethods.OfflineDoneFnuserdataIntPtr
Returns
OfflineSetMaximumAmbientCacheSize(IntPtr, ulong, OfflineDoneFn, IntPtr)
public static MbglStatus OfflineSetMaximumAmbientCacheSize(IntPtr m, ulong bytes, NativeMethods.OfflineDoneFn cb, IntPtr userdata)
Parameters
mIntPtrbytesulongcbNativeMethods.OfflineDoneFnuserdataIntPtr
Returns
OfflineSetPackDatabaseAutomatically(IntPtr, int)
public static MbglStatus OfflineSetPackDatabaseAutomatically(IntPtr m, int enabled)
Parameters
mIntPtrenabledint
Returns
OfflineSetRegionDownloadState(IntPtr, long, int)
public static MbglStatus OfflineSetRegionDownloadState(IntPtr m, long regionId, int active)
Parameters
Returns
OfflineSetRegionObserver(IntPtr, long, OfflineProgressFn?, OfflineRegionErrorFn?, IntPtr)
public static MbglStatus OfflineSetRegionObserver(IntPtr m, long regionId, NativeMethods.OfflineProgressFn? progress, NativeMethods.OfflineRegionErrorFn? error, IntPtr userdata)
Parameters
mIntPtrregionIdlongprogressNativeMethods.OfflineProgressFnerrorNativeMethods.OfflineRegionErrorFnuserdataIntPtr
Returns
OfflineSetTileCountLimit(IntPtr, ulong)
public static MbglStatus OfflineSetTileCountLimit(IntPtr m, ulong limit)
Parameters
mIntPtrlimitulong
Returns
OfflineUpdateRegionMetadata(IntPtr, long, byte[]?, int, OfflineDoneFn, IntPtr)
public static MbglStatus 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 MbglStatus RunLoopDestroy(IntPtr rl)
Parameters
rlIntPtr
Returns
RunLoopRunOnce(IntPtr)
public static MbglStatus 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 MbglStatus 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 MbglStatus 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
StyleRemoveImage(IntPtr, string)
public static MbglStatus StyleRemoveImage(IntPtr style, string imageId)
Parameters
styleIntPtrimageIdstring
Returns
StyleRemoveLayer(IntPtr, string)
public static MbglStatus StyleRemoveLayer(IntPtr style, string layerId)
Parameters
styleIntPtrlayerIdstring
Returns
StyleRemoveSource(IntPtr, string)
public static MbglStatus StyleRemoveSource(IntPtr style, string sourceId)
Parameters
styleIntPtrsourceIdstring
Returns
StyleSetLightProperty(IntPtr, string, string)
public static MbglStatus StyleSetLightProperty(IntPtr style, string name, string valueJson)
Parameters
Returns
StyleSetTransition(IntPtr, long, long)
public static MbglStatus StyleSetTransition(IntPtr style, long durationMs, long delayMs)