← Back to Skills Marketplace
lbs-bmap

Baidu Map JSAPI GL(百度地图官方 WebGL SKills)

by baidu-maps · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ Security Clean
154
Downloads
1
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install baidu-map-jsapi-gl
Description
百度地图 JSAPI WebGL (BMapGL)完整开发指南,覆盖地图初始化、覆盖物、图层、事件、样式、性能优化的任务,一站式开发高性能 3D 地图应用。当用户提及 BMapGL、百度地图、jsapi-gl或相关地图开发需求时自动触发。
README (SKILL.md)

JSAPI GL 开发指南

百度地图 JSAPI WebGL 版本开发指南。包含地图初始化、覆盖物、事件、图层等核心模块的 API 说明和代码示例,旨在帮助开发者快速集成百度地图并遵循正确的使用方式。

何时适用

在以下场景中参考这些指南:

  • 创建新的地图页面或组件
  • 在地图上添加标注、折线、多边形等覆盖物
  • 处理地图交互事件(点击、拖拽、缩放等)
  • 配置地图样式或切换图层
  • 调试地图渲染或性能问题

快速参考

0. 基础概念

  • references/base-classes.md - 基础类:Point、Bounds、Size、Pixel、Icon
  • references/constants.md - 通用常量:搜索状态码、POI 类型

1. 地图

  • references/map-init.md - 地图初始化:资源引入、创建实例、配置选项、交互与视图控制

2. 地图覆盖物

  • references/overlay-common.md - 覆盖物通用操作:添加/移除、显示/隐藏、批量清除
  • references/marker.md - 点标记:构造参数、位置/图标/旋转/置顶/拖拽方法
  • references/polyline.md - 折线:构造参数、线条样式、坐标操作、编辑模式
  • references/polygon.md - 多边形:构造参数、边框/填充样式、带孔多边形、编辑模式
  • references/circle.md - 圆形:构造参数、中心点/半径、样式设置、编辑模式
  • references/custom-overlay.md - 自定义覆盖物:DOM 创建、属性传递、事件绑定、旋转控制
  • references/info-window.md - 信息窗口:构造参数、内容/尺寸设置、最大化、与 Marker 配合使用

3. 事件

  • references/map-events.md - 地图事件:绑定方式、交互事件、视图变化事件、生命周期事件
  • references/overlay-events.md - 覆盖物事件:通用事件、拖拽事件、矢量图形事件

4. 地图样式

  • references/map-style.md - 个性化地图:自定义地图外观(颜色、显隐),实现深色主题、简洁地图等效果

5. 图层服务

  • references/xyz-layer.md - 第三方图层:加载 XYZ/TMS/WMS/WMTS 标准瓦片
  • references/mvt-layer.md - 矢量瓦片:加载 MVT/PBF 格式瓦片,支持样式表达式、特征交互、状态管理

6. 路径规划

  • references/route-common.md - 通用配置:构造参数、渲染选项、回调函数、数据结构、状态常量
    • references/driving-route.md - 驾车:策略枚举、途经点、路况、收费、拖拽
    • references/walking-route.md - 步行:转向类型、拖拽
    • references/riding-route.md - 骑行:骑行搜索
    • references/transit-route.md - 公交:市内/跨城策略、交通方式、换乘

7. 其他LBS服务

  • references/local-search.md - 本地检索:普通/范围/周边检索、结果处理、翻页、POI 数据结构
  • references/geocoder.md - 地理编码:正地理编码(地址→坐标)、逆地理编码(坐标→地址)
  • references/convertor.md - 坐标转换:GPS/高德/谷歌坐标转百度坐标

如何使用

请阅读各个参考文件以获取详细说明和代码示例:

references/map-init.md

每个参考文件包含:

  • 功能简要说明
  • 完整代码示例及解释
  • API 参数说明和注意事项

注意事项

  • references/get-ak.md - 获取密钥(AK):当用户无 AK 或 AK 失效时,引导用户前往控制台申请浏览器端类型的 AK
Usage Guidance
This skill is documentation-only and internally consistent. Before installing, ensure the BMAP_JSAPI_KEY you provide is a browser (client) AK and not a secret server key; configure referer/IP whitelisting in the Baidu console to limit misuse. Treat the AK like a credential — do not paste it into public/shared places. Note the examples reference third‑party tile/image URLs (e.g., openstreetmap or example.com) — when you copy examples into production, verify and trust the tile/image providers and their licensing. If you need the agent to perform actions that require other credentials or file access, verify those requests separately; this skill itself does not require them.
Capability Analysis
Type: OpenClaw Skill Name: baidu-map-jsapi-gl Version: 1.0.1 The skill bundle is a comprehensive documentation and reference set for the Baidu Maps JSAPI WebGL (BMapGL). It provides structured instructions and code examples for map initialization, overlays (markers, polygons, circles), event handling, custom styling, and various LBS services like routing and geocoding. The bundle correctly identifies the requirement for a Baidu Maps API key (BMAP_JSAPI_KEY) and includes a guide (get-ak.md) directing users to the official Baidu developer console. No evidence of malicious intent, data exfiltration, or harmful prompt injection was found; the content is entirely aligned with its stated purpose of assisting developers with map integration.
Capability Assessment
Purpose & Capability
The skill is a documentation/guide for BMapGL. The single required environment variable, BMAP_JSAPI_KEY (the browser AK), is exactly what a JS API integration needs.
Instruction Scope
SKILL.md and the reference files contain only API documentation and sample code snippets; they do not instruct the agent to read unrelated files, access other environment variables, or transmit data to hidden endpoints.
Install Mechanism
No install spec or code is present (instruction-only), so nothing is written to disk or installed at runtime.
Credentials
Only one credential is required (BMAP_JSAPI_KEY) and it is declared as the primary credential; this is proportionate for a JSAPI documentation skill.
Persistence & Privilege
always:false and user-invocable:true (defaults). The skill does not request permanent presence or elevated platform privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install baidu-map-jsapi-gl
  3. After installation, invoke the skill by name or use /baidu-map-jsapi-gl
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
- 更新技能名称为 bmap-jsapi-gl,更加贴合技能内容与用途 - 优化技能描述,突出高性能 3D 地图应用一站式开发能力 - 版本号升级为 1.0.1 - 其余文档结构与内容保持一致
v1.0.0
Initial release of bmap-jsapi-gl skill. - Provides a development guide for Baidu Map JSAPI GL (WebGL) integration. - Includes module references for map initialization, overlays, events, styles, layer services, and route planning. - Offers quick links to code examples, API usage, and essential documentation for rapid development and debugging. - Highlights AK (API Key) requirements and instructions for obtaining a new key if missing or invalid.
Metadata
Slug baidu-map-jsapi-gl
Version 1.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is Baidu Map JSAPI GL(百度地图官方 WebGL SKills)?

百度地图 JSAPI WebGL (BMapGL)完整开发指南,覆盖地图初始化、覆盖物、图层、事件、样式、性能优化的任务,一站式开发高性能 3D 地图应用。当用户提及 BMapGL、百度地图、jsapi-gl或相关地图开发需求时自动触发。 It is an AI Agent Skill for Claude Code / OpenClaw, with 154 downloads so far.

How do I install Baidu Map JSAPI GL(百度地图官方 WebGL SKills)?

Run "/install baidu-map-jsapi-gl" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Baidu Map JSAPI GL(百度地图官方 WebGL SKills) free?

Yes, Baidu Map JSAPI GL(百度地图官方 WebGL SKills) is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Baidu Map JSAPI GL(百度地图官方 WebGL SKills) support?

Baidu Map JSAPI GL(百度地图官方 WebGL SKills) is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Baidu Map JSAPI GL(百度地图官方 WebGL SKills)?

It is built and maintained by baidu-maps (@lbs-bmap); the current version is v1.0.1.

💬 Comments