Table of Contents

Class Maplibre

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

Process-global MapLibre Native FFI entry points.

public static class Maplibre
Inheritance
Maplibre
Inherited Members

Methods

CVersion()

Returns the native C ABI contract version.

public static uint CVersion()

Returns

uint

ClearLogCallback()

Clears the process-global native log callback.

public static void ClearLogCallback()

LatLngForProjectedMeters(ProjectedMeters)

Converts Spherical Mercator projected meters to a geographic coordinate.

public static LatLng LatLngForProjectedMeters(ProjectedMeters meters)

Parameters

meters ProjectedMeters

Returns

LatLng

LoadNativeLibrary()

Loads the native library using the binding's standard lookup order.

public static void LoadNativeLibrary()

LoadNativeLibrary(string)

Loads the native library from an exact file path.

public static void LoadNativeLibrary(string libraryPath)

Parameters

libraryPath string

NetworkStatus()

Reads MapLibre Native's process-global network status.

public static NetworkStatus NetworkStatus()

Returns

NetworkStatus

ProjectedMetersForLatLng(LatLng)

Converts a geographic coordinate to Spherical Mercator projected meters.

public static ProjectedMeters ProjectedMetersForLatLng(LatLng coordinate)

Parameters

coordinate LatLng

Returns

ProjectedMeters

RestoreDefaultAsyncLogSeverities()

Restores the native default async log severity mask.

public static void RestoreDefaultAsyncLogSeverities()

SetAsyncLogSeverities(LogSeverityMask)

Configures severities that native logging may dispatch asynchronously.

public static void SetAsyncLogSeverities(LogSeverityMask severities)

Parameters

severities LogSeverityMask

SetLogCallback(LogCallback)

Installs or replaces the process-global native log callback.

public static void SetLogCallback(LogCallback callback)

Parameters

callback LogCallback

SetNetworkStatus(NetworkStatus)

Sets MapLibre Native's process-global network status.

public static void SetNetworkStatus(NetworkStatus status)

Parameters

status NetworkStatus

SupportedOpenGLContextProviders()

Returns the OpenGL context providers compiled into the native library.

public static OpenGLContextProvider SupportedOpenGLContextProviders()

Returns

OpenGLContextProvider

SupportedRenderBackends()

Returns the render backends compiled into the native library.

public static RenderBackend SupportedRenderBackends()

Returns

RenderBackend