Class Maplibre

java.lang.Object
org.maplibre.nativeffi.Maplibre

public final class Maplibre extends Object
Process-global entry points for the Java FFM binding.
  • Method Details

    • loadNativeLibrary

      public static void loadNativeLibrary()
      Loads the native library using the binding's standard lookup order.
    • loadNativeLibrary

      public static void loadNativeLibrary(Path libraryPath)
      Loads the native library from an exact file path.
    • cVersion

      public static long cVersion()
      Returns the native C ABI contract version.
    • supportedRenderBackends

      public static EnumSet<RenderBackend> supportedRenderBackends()
      Returns the render backends compiled into the loaded native library.
    • supportedOpenGLContextProviders

      public static EnumSet<OpenGLContextProvider> supportedOpenGLContextProviders()
      Returns the OpenGL context providers compiled into the loaded native library.
    • networkStatus

      public static NetworkStatus networkStatus()
      Reads Maplibre Native's process-global network status.
    • setNetworkStatus

      public static void setNetworkStatus(NetworkStatus status)
      Sets Maplibre Native's process-global network status.
    • setLogCallback

      public static void setLogCallback(LogCallback callback)
      Installs or replaces the process-global native log callback.

      See LogCallback for callback threading and exception-containment rules.

    • clearLogCallback

      public static void clearLogCallback()
      Clears the process-global native log callback.
    • setAsyncLogSeverities

      public static void setAsyncLogSeverities(Set<LogSeverity> severities)
      Configures severities that native logging may dispatch asynchronously.
    • restoreDefaultAsyncLogSeverities

      public static void restoreDefaultAsyncLogSeverities()
      Restores the native default async log severity mask.
    • projectedMetersForLatLng

      public static ProjectedMeters projectedMetersForLatLng(LatLng coordinate)
      Converts a geographic coordinate to spherical Mercator projected meters.
    • latLngForProjectedMeters

      public static LatLng latLngForProjectedMeters(ProjectedMeters meters)
      Converts spherical Mercator projected meters to a geographic coordinate.