Skip to content

MapLibre Native FFI

MapLibre Native FFI is the MapLibre Native map engine as a C API, with bindings for Dart, Go, Kotlin, .NET, Python, Rust, Swift, TypeScript, and Zig. Use it to build map components for a UI framework, or to render maps on a server.

To start, install the package for your language, then create a map.

To see it run, open the live demo, which renders a map in your browser with the TypeScript binding, on WebGL or WebGPU.

Until the first part of the version reaches 1, any release can break the API, the ABI, or documented behavior.

Tested in CIBuilt onlyNot supported

PlatformArchBackendCC#DartGoGObjectKotlin (JAR)Kotlin (KLIB)PythonRustSwiftTypeScriptZig
LinuxGNUx64Vulkan, OpenGL✓✓✓✓✓✓✓✓✓✓✓✓
arm64Vulkan, OpenGL✓✓✓✓✓✓◐✓✓✓✓✓
riscv64Vulkan, OpenGL✓✕✓✓✕✓✕✓✓✕◐✓
loongarch64Vulkan, OpenGL✓✕✕✓✕✕✕✕✓✕✓✓
Linuxmuslx64Vulkan, OpenGL✓✓✕✓✓✓✕✓✓✕✓✓
arm64Vulkan, OpenGL✓✓✕✓✓✓✕✓✓✕✓✓
riscv64Vulkan, OpenGL✓✕✕✓✕✓✕✓✓✕✓✓
loongarch64Vulkan, OpenGL✓✕✕✓✕✕✕✕✓✕✓✓
macOSx64Metal✓✓✓✓✕✓✓✓✓✓✓✓
arm64Vulkan, OpenGL, Metal✓✓✓✓✓✓✓✓✓✓✓✓
WindowsMSVCx64Vulkan, OpenGL✓✓✓✓✕✓✓✓✓✓✓✓
arm64Vulkan, OpenGL✓✓✓✓✕✓✕✓✓✓✓✕
WindowsMinGWx64Vulkan, OpenGL✓✓✓✓✕✓✕✓✓✓✓✓
arm64Vulkan, OpenGL✓✓✓✓✕✓✕✓✓✓✓✕
FreeBSDx64Vulkan, OpenGL✓✕✕✓✓✓✕✕✓✕✓✓
arm64Vulkan, OpenGL✕✕✕✕✕✕✕✕✕✕✕✕
Androidx64Vulkan, OpenGL✓✓✓✓✕✓✓✓✓✓✓✓
x86Vulkan◐◐✕◐✕◐◐✕◐✕◐◐
OpenGL✓✓✕✓✕✓✓✕✓✕✓✓
arm64Vulkan, OpenGL◐◐◐◐✕◐◐◐◐◐◐◐
armVulkan, OpenGL◐◐◐◐✕◐◐✕◐◐◐◐
iOSarm64deviceMetal◐◐◐◐✕✕◐✕◐◐◐✕
arm64simulatorMetal✓✓✓✓✕✕✓✕✓✓✓✕
Mac Catalystarm64Metal✓✓✕✓✕✕✕✕✓✓✓✓
tvOSarm64deviceMetal◐◐✕✕✕✕◐✕◐◐◐✕
arm64simulatorMetal✓✓✕✕✕✕✓✕✓✓✓✕
visionOSarm64deviceMetal◐✕✕✕✕✕✕✕◐◐◐✕
arm64simulatorMetal✓✕✕✕✕✕✕✕✓✓✓✕
OpenHarmonyx64Vulkan✓✕✕✓✕✕✕✕✓✕◐✕
OpenGL✓✕✕✓✕✕✕✕✓✕✓✕
arm64Vulkan, OpenGL◐✕✕◐✕✕✕✕◐✕◐✕
WebEmscriptenwasm32OpenGL, WebGPU✓✕✕✕✕✕✓✕✓✕✓✕

TypeScript runs under Node, Bun, and Deno, in ArkTS apps on OpenHarmony, and in the browser. OpenGL uses WGL on Windows and EGL on other platforms. macOS EGL uses ANGLE. Issue #936 tracks the gaps.

CI is provided by Blacksmith under its open source program.

CI powered by Blacksmith