Class Maplibre
java.lang.Object
org.maplibre.nativeffi.Maplibre
Process-global entry points for the Java FFM binding.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidClears the process-global native log callback.static longcVersion()Returns the native C ABI contract version.static LatLngConverts spherical Mercator projected meters to a geographic coordinate.static voidLoads the native library using the binding's standard lookup order.static voidloadNativeLibrary(Path libraryPath) Loads the native library from an exact file path.static NetworkStatusReads Maplibre Native's process-global network status.static ProjectedMetersprojectedMetersForLatLng(LatLng coordinate) Converts a geographic coordinate to spherical Mercator projected meters.static voidRestores the native default async log severity mask.static voidsetAsyncLogSeverities(Set<LogSeverity> severities) Configures severities that native logging may dispatch asynchronously.static voidsetLogCallback(LogCallback callback) Installs or replaces the process-global native log callback.static voidsetNetworkStatus(NetworkStatus status) Sets Maplibre Native's process-global network status.static EnumSet<OpenGLContextProvider> Returns the OpenGL context providers compiled into the loaded native library.static EnumSet<RenderBackend> Returns the render backends compiled into the loaded native library.
-
Method Details
-
loadNativeLibrary
public static void loadNativeLibrary()Loads the native library using the binding's standard lookup order. -
loadNativeLibrary
Loads the native library from an exact file path. -
cVersion
public static long cVersion()Returns the native C ABI contract version. -
supportedRenderBackends
Returns the render backends compiled into the loaded native library. -
supportedOpenGLContextProviders
Returns the OpenGL context providers compiled into the loaded native library. -
networkStatus
Reads Maplibre Native's process-global network status. -
setNetworkStatus
Sets Maplibre Native's process-global network status. -
setLogCallback
Installs or replaces the process-global native log callback.See
LogCallbackfor callback threading and exception-containment rules. -
clearLogCallback
public static void clearLogCallback()Clears the process-global native log callback. -
setAsyncLogSeverities
Configures severities that native logging may dispatch asynchronously. -
restoreDefaultAsyncLogSeverities
public static void restoreDefaultAsyncLogSeverities()Restores the native default async log severity mask. -
projectedMetersForLatLng
Converts a geographic coordinate to spherical Mercator projected meters. -
latLngForProjectedMeters
Converts spherical Mercator projected meters to a geographic coordinate.
-