编程

Mapbox Maps

试用

Build, debug, and integrate Mapbox apps and APIs, including Mapbox GL JS map setup, styles, sources/layers, markers/popups, geocoding, directions, static ima...

它能做什么

Use this skill for practical Mapbox platform work in web apps and API integrations.

技能文档

Mapbox

Use this skill for practical Mapbox platform work in web apps and API integrations.

Workflow

  1. Confirm the runtime first: plain HTML, Vite, React, Next.js, or another framework.
  2. Confirm which Mapbox surface is involved: GL JS map rendering, styles, tilesets, geocoding, directions, or static images.
  3. Start with the smallest working map before adding custom sources, layers, controls, or API calls.
  4. Keep access tokens out of source files and examples unless the user explicitly wants a local-only demo.
  5. For bugs, isolate whether the failure is in container sizing, token/scopes, style/source IDs, coordinate order, or layer order.

Implementation Guardrails

  • Prefer mapbox-gl with explicit imports and explicit CSS loading.
  • Always ensure the map container has a real height before debugging rendering.
  • Use lng, lat order consistently for Mapbox coordinate arrays.
  • Add sources before layers, and keep layer IDs stable so updates are easy.
  • Prefer GeoJSON for lightweight overlays; move to vector tiles or tilesets for larger datasets.
  • In React or other SPA frameworks, remove the map instance during teardown to avoid leaks.
  • Treat the access token as configuration. Read it from environment or runtime config instead of hardcoding it.

Common Failure Checks

  • Blank map: verify token, style URL, CSS import, and container height.
  • Layer not visible: verify source exists, source-layer matches, zoom bounds, and paint/layout visibility.
  • Wrong location: verify coordinate order and CRS assumptions; Mapbox expects WGS84 lng,lat.
  • Performance issues: reduce marker count, cluster point data, and prefer data-driven layers over many DOM markers.
  • API failures: verify token scopes, endpoint type, rate limits, and request parameters.

Task Boundaries

  • Use this skill for Mapbox-specific implementation, debugging, and integration patterns.
  • For generic CRS/projection reasoning, use project or wgs84.
  • For deterministic desktop GIS batch processing, use qgis.
  • For CesiumJS globe rendering, use cesium.

OpenClaw + ClawHub Notes

  • Keep examples generic, portable, and token-safe.
  • Do not hardcode private datasets, private style URLs, or machine-specific paths.
  • For clawhub.ai publication, keep content reproducible and semver-friendly; put detailed examples in references instead of bloating SKILL.md.

Reference Docs In This Skill

  • Read {baseDir}/references/patterns.md when generating or fixing Mapbox GL JS or API integration code.

相关技能

从 AdMapix API 拉取广告创意、应用、榜单和收入预估等数据,原样返回结构化 JSON。

作者 fly0pants4.3k 次安装296 星标

以 AI 机器人身份加入视频会议,提供语音、虚拟形象与屏幕共享四种模式。

作者 johnpatternai22 次安装8 星标

把自然语言描述转为结构化 JSON,并由 mcp-diagram-generator MCP 服务生成 Draw.io、Mermaid 或 Excalidraw 图表文件。

作者 nssa.io1.0k 次安装47 星标

在本地磁盘以分类纯 Markdown 文件保存需要长期留存的事实,与智能体内置记忆并存。

作者 Iván559 次安装18 星标

诊断生产力系统反复失效的根因,给出最小干预——容量测算、瓶颈定位、可靠的本地记录。

作者 Iván855 次安装69 星标

jvy 的更多技能

浏览全部技能

面向中文办公场景的 WPS 文档、表格与演示处理及格式兼容。

作者 jvy142 次安装4 星标

Create Apache ECharts option JSON, standalone HTML chart pages, and export-ready chart artifacts from CSV, TSV, JSON tables, or existing option configs. Use...

作者 jvy23 次安装

Gitee operations via OpenAPI and git: repositories, pull requests, issues, comments, and file contents. Use when: (1) inspecting or creating Gitee pull reque...

作者 jvy36 次安装1 星标

Write, explain, adapt, and debug practical shader code for GLSL, WebGL, Three.js ShaderMaterial, React Three Fiber, postprocess-style full-screen effects, an...

作者 jvy24 次安装1 星标

Build, debug, and integrate OpenLayers web maps, including map/view setup, XYZ and OSM base layers, vector sources, GeoJSON overlays, Web Mercator and WGS84...

作者 jvy17 次安装

Research public holidays, bank holidays, observed days, school breaks, and make-up workdays for any country or region. Use when the user asks whether a speci...

作者 jvy18 次安装