← 返回 Skills 市场
454
总下载
1
收藏
1
当前安装
4
版本数
在 OpenClaw 中安装
/install bmap-jsapi-gl
功能描述
百度地图 JSAPI WebGL (BMapGL) 开发指南。在编写、审查或调试使用百度地图 API的代码时应运用此技能。适用于涉及地图初始化、覆盖物渲染、图层管理、事件处理、控件交互或性能优化的任务。当用户提及 BMapGL、百度地图、jsapi-gl或相关地图开发需求时自动触发。
使用说明 (SKILL.md)
JSAPI GL 开发指南
百度地图 JSAPI WebGL 版本开发指南。包含地图初始化、覆盖物、事件、图层等核心模块的 API 说明和代码示例,旨在帮助开发者快速集成百度地图并遵循正确的使用方式。
何时适用
在以下场景中参考这些指南:
- 创建新的地图页面或组件
- 在地图上添加标注、折线、多边形等覆盖物
- 处理地图交互事件(点击、拖拽、缩放等)
- 配置地图样式或切换图层
- 调试地图渲染或性能问题
快速参考
0. 基础概念
references/base-classes.md- 基础类:Point、Bounds、Size、Pixel、Iconreferences/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 参数说明和注意事项
安全使用建议
This skill is documentation for Baidu Maps JSAPI GL and only asks for a BMAP_JSAPI_KEY — that is expected. Before installing, confirm the skill's source (homepage is missing) and only provide a key that is restricted by allowed referrers/origins in the Baidu console. If you prefer tighter control, avoid giving long-lived keys: create a key with minimal scope, add referrer restrictions, and rotate/revoke it if you stop using the skill. Since the package is instruction-only, risk is low, but lack of a verifiable source reduces auditability — install only if you trust the publisher or after manual review of the files (which are included here).
功能分析
Type: OpenClaw Skill
Name: bmap-jsapi-gl
Version: 1.0.3
The skill bundle is a comprehensive and legitimate documentation set for the Baidu Maps JSAPI WebGL (BMapGL). It contains detailed API references and code snippets for map initialization, overlays, event handling, and LBS services like routing and geocoding. All code examples are aligned with the stated purpose, and external resource links point to official Baidu domains (api.map.baidu.com). No evidence of malicious intent, data exfiltration, or prompt injection was found across the SKILL.md or the reference files.
能力评估
Purpose & Capability
Name/description match the provided content; the only requested env var is BMAP_JSAPI_KEY which is appropriate for a JSAPI WebGL (BMapGL) integration guide. No unrelated credentials or binaries are requested.
Instruction Scope
SKILL.md and the reference files are documentation and code examples only. They do not instruct the agent to read arbitrary local files, access unrelated environment variables, or transmit data to third‑party endpoints. There are no vague instructions granting broad discretion.
Install Mechanism
No install spec and no code to write or execute on the host (instruction-only). This is the lowest-risk installation model.
Credentials
Only BMAP_JSAPI_KEY is required and declared as primaryEnv, which is proportional. As with any API key, the user should ensure the key is scoped/restricted (referrer/origin/domain restrictions in the Baidu console) and not reused elsewhere.
Persistence & Privilege
always:false (no forced global inclusion). disable-model-invocation is false (agent may invoke autonomously), which is the platform default and acceptable here. No indications the skill modifies other skills or system configs.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install bmap-jsapi-gl - 安装完成后,直接呼叫该 Skill 的名称或使用
/bmap-jsapi-gl触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
version 1.0.3:
- remove bins node
v1.0.2
Version 1.0.2
v1.0.1
- 添加了 openclaw 兼容性和部署信息,包括运行时依赖(node)、必需环境变量(BMAP_JSAPI_KEY)等 metadata。
- 其余文档与功能无更改。
v1.0.0
Initial release of bmap-jsapi-gl skill.
- 提供百度地图 JSAPI WebGL (BMapGL) 集成与开发的详细指南。
- 涵盖地图初始化、覆盖物渲染、图层管理、事件处理等核心模块。
- 提供丰富的 API 概览、常用操作说明及代码示例,便于查阅与应用。
- 适用于涉及 BMapGL 地图开发、调试与代码审查的场景。
- 每个模块均有独立参考文档,说明功能要点及实用示例。
元数据
常见问题
baidu-map-jsapi-gl 是什么?
百度地图 JSAPI WebGL (BMapGL) 开发指南。在编写、审查或调试使用百度地图 API的代码时应运用此技能。适用于涉及地图初始化、覆盖物渲染、图层管理、事件处理、控件交互或性能优化的任务。当用户提及 BMapGL、百度地图、jsapi-gl或相关地图开发需求时自动触发。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 454 次。
如何安装 baidu-map-jsapi-gl?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install bmap-jsapi-gl」即可一键安装,无需额外配置。
baidu-map-jsapi-gl 是免费的吗?
是的,baidu-map-jsapi-gl 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
baidu-map-jsapi-gl 支持哪些平台?
baidu-map-jsapi-gl 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 baidu-map-jsapi-gl?
由 baidu-map(@wahddbing)开发并维护,当前版本 v1.0.3。
推荐 Skills