maplibre-native

maplibre-native is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 112 tokens per session (5,814 once invoked), scanned A, original, MIT.

A guide to MapLibre Native, a C++ map-rendering engine with bindings for mobile, desktop, and Node.js applications. It covers vector maps, map styles, tile sources, and offline map data.

In plain words
What is it for?
Use it when adding maps to Android, iOS, macOS, Linux, Windows, or Node.js applications, including offline map caching and custom tile services.
Why use it?
It helps an agent work with native map embedding without confusing it with the browser-based MapLibre GL JS library. It also explains the platform-specific setup around the shared rendering core.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when adding maps to Android, iOS, macOS, Linux, Windows, or Node.js applications, including offline map caching and custom tile services.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/znlgis/opengis-skills/maplibre-native
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add znlgis/opengis-skills --skill maplibre-native
Clone the repo
git clone --depth 1 https://github.com/znlgis/opengis-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for maplibre-native

README.md
[![agentmods](https://agentmods.dev/badge/skills/znlgis/opengis-skills/maplibre-native/github.svg)](https://agentmods.dev/skills/znlgis/opengis-skills/maplibre-native)
Your own site
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/maplibre-native"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/maplibre-native/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for maplibre-native

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/maplibre-native"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/maplibre-native.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,814 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00112 $0.05814
Opus 5.5 $0.00045 $0.02326
Sonnet 5.5 $0.00022 $0.01163
Haiku 4.5 $0.00011 $0.00581

Measured 19d ago against content hash 869f618a885b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

maplibre-native scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

gis/maplibre-native/SKILL.md · 384 lines

How it starts

The opening of the file, as written. The whole thing — 384 lines — stays where its author put it; the contents beside it link to each section on GitHub.

项目地址: https://github.com/maplibre/maplibre-native

开发者文档: https://maplibre.org/maplibre-native/docs/book/(架构、构建与贡献指南)

最新版本: Android 13.5.4(GitHub Latest、Maven,13.x 特性线同时有 13.7.1)/ iOS 7.0.0(CocoaPods MapLibre)/ Node @maplibre/maplibre-gl-native 6.4.1(截至 2026-11,发布记录;另有 *-YYYY.MM.DD-globe 实验线,非稳定版)

许可证: BSD-2-Clause(含部分 FreeType 等第三方组件,见 LICENSES.core.md)

概述

MapLibre Native 是 Mapbox GL Native 的非商业许可分叉(2020-12 上游改为专有许可后分出),核心是一套 C++ 渲染引擎:解析 MapLibre Style Spec,按需拉取矢量/栅格瓦片,在 GPU 上批量绘制标注与几何。各平台只是同一内核的绑定层,因此样式、瓦片与交互语义在 Android/iOS/桌面/Node 之间保持一致。

  • GPU 矢量渲染:OpenGL ES(Android)、Metal(iOS/macOS)等后端驱动,支持连续缩放与运行时样式切换
  • Style Spec 驱动:与 maplibre-gl-js 共用样式规范,同一份 JSON 可在前端与原生端复用
  • 平台绑定:Android(org.maplibre.gl:android-sdk)、iOS/macOS(CocoaPods MapLibre、SPM)、Node.js(@maplibre/maplibre-gl-native)、Qt(maplibre-native-qt)、Compose Multiplatform(maplibre-compose)
  • 离线能力:瓦片缓存与离线区域下载,弱网/移动端场景可预置底图
  • 可嵌入 C++:Linux/Windows 构建产出 .a/库文件与渲染工具,可嵌入自有 C++ 应用
  • 免 token:不依赖商业账号,底图可用 demotiles 或自建瓦片服务

与相邻技术的差异:maplibre-gl-js 是浏览器端 JS 实现,适合网页;MapLibre Native 面向原生应用与离线场景,性能与内存控制更贴近移动端;CesiumJS/Cesium Native 偏三维地球,MapLibre Native 以二维矢量地图为主(三维地形为辅助能力)。


环境准备

Android

Maven 坐标在 Maven Central,版本以 Maven 元数据 为准。2026-11 时 13.x 特性线最新为 13.7.1,而 GitHub 标为 Latest 的是更晚发布的维护版 13.5.4——两者都在维护,按项目策略选用并保持一致。

dependencies {
    implementation 'org.maplibre.gl:android-sdk:13.5.4'
}
<org.maplibre.android.maps.MapView
    android:id="@+id/mapView"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />
import org.maplibre.android.MapLibre
import org.maplibre.android.camera.CameraPosition
import org.maplibre.android.geometry.LatLng
import org.maplibre.android.maps.MapView

class MainActivity : AppCompatActivity() {
    private lateinit var mapView: MapView

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        MapLibre.getInstance(this)                 // 必须在 MapView 之前初始化
        setContentView(R.layout.activity_main)

        mapView = findViewById(R.id.mapView)
        mapView.getMapAsync { map ->
            map.setStyle("https://demotiles.maplibre.org/style.json")
            map.cameraPosition = CameraPosition.Builder()
                .target(LatLng(0.0, 0.0))
                .zoom(1.0)
                .build()
        }
    }

    override fun onStart() { super.onStart(); mapView.onStart() }
    override fun onResume() { super.onResume(); mapView.onResume() }
    override fun onPause() { super.onPause(); mapView.onPause() }
    override fun onStop() { super.onStop(); mapView.onStop() }
    override fun onLowMemory() { super.onLowMemory(); mapView.onLowMemory() }
    override fun onDestroy() { super.onDestroy(); mapView.onDestroy() }
}

Read the full file on GitHub · 384 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 19d ago First seen · 384 lines · 112 tokens per session scan A 869f618a885b

Subscribe to this mod's changes

maplibre-native is a skill published in the GitHub repository znlgis/opengis-skills (87 stars, last pushed 20d ago), licensed MIT. It adds 112 tokens to every session and 5,814 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-12.

Related

maplibre-native compared with skills from other repositories

maplibre-native next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
maplibre-nativeznlgis/opengis-skillsSkill8720d agoMITA112Claude Code, Codex
orca-emulator-androidstablyai/orcaSkill147ktodayMITA102Claude Code, Codex
glance-canonical-layoutsandroid/skillsSkill11k7d agoApache-2.0A56Claude Code
android-tombstone-symbolicationdotnet/skillsSkill6.4ktodayMITA176Claude Code
dogfoodcallstack/agent-deviceSkill5.6ktodayMITA55Claude Code
winapp-mauimicrosoft/winappCliSkill1.4ktodayMITA68Claude Code
flutter-devMiniMax-AI/skillsSkill14k20d agoMITA83Claude Code