bmap-jsapi-v4 SKILL.md skillA
bmap-jsapi-v4 from baidu-maps/jsapi-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add baidu-maps/jsapi-skills/bmap-jsapi-v4@git:20260907.46682eePins git:20260907.46682ee in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- baidu-maps/jsapi-skills
- Path
skills/bmap-jsapi-v4/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260907.46682ee, committed Sep 7, 2026
- Size
- 5,196 bytes
- Repository stars
- 46
- License
- none declared
用于开发、审查或排查使用百度地图 JavaScript API 4.0、v=4.0 加载器或全局 BMap 命名空间的浏览器应用。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 百度地图 JavaScript API 4.0 ## 核心原则 聚焦通过 `v=4.0` 加载器和全局 `BMap` 命名空间开发浏览器地图应用,不系统介绍其他版本。 ## 固定约束 - 加载地址使用 `https://api.map.baidu.com/api?v=4.0&ak=YOUR_BAIDU_MAP_AK`。 - 新代码使用全局 `BMap`,不要混用其他版本的命名空间和加载参数。 - 示例中的 `YOUR_BAIDU_MAP_AK` 需要替换为开发者自己的 AK;共享代码和日志中不要暴露真实密钥。 - 依赖 AK、在线服务、CORS、WebGL 或真实数据的结果需要在浏览器中验证。 - 创建监听器、覆盖物、控件、图层、服务渲染结果、动画、全景或 Map 时,同时给出对应的解绑、移除、取消或销毁路径。 ## 工作流 1. 确认任务确实使用 `v=4.0` 和 `BMap`。 2. 只读取与需求直接相关的 reference;跨模块任务按“接入 → Map/几何 → 业务模块 → 生命周期 → 排障”加载。 3. 从 reference 选择满足需求的最小 API 组合。 4. TypeScript 安装、配置、类型报错或 `.d.ts` 补充任务同时读取 TypeScript 专页。 5. 检查版本参数、容器尺寸、异步状态、事件引用和资源清理。 6. 对网络和渲染相关结果进行真实浏览器验证。 ## Reference 路由 ### 接入与基础 | 任务 | 读取 | |---|---| | 页面加载、AK、同步/异步入口、空白地图 | [project-setup.md](references/project-setup.md) | | Map 初始化、视野、交互、样式、旋转与倾斜 | [map-core.md](references/map-core.md) | | 控件主题、深色模式、主题变量 | [ui-version-and-theme.md](references/ui-version-and-theme.md) | | Point、Pixel、Size、Bounds、坐标换算 | [coordinates-and-geometry.md](references/coordinates-and-geometry.md) | | 事件监听、解绑、组件销毁 | [events-and-lifecycle.md](references/events-and-lifecycle.md) | | 内置/自定义控件与右键菜单 | [controls-and-context-menu.md](references/controls-and-context-menu.md) | ### 覆盖物 | 任务 | 读取 | …
Read the whole file at its exact version.
How to install
mdr add baidu-maps/jsapi-skills/bmap-jsapi-v4@sha256:14bfb0f8b2304ebaThe line at the top of this page pins the label git:20260907.46682ee, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_kk3b274h4jpzmxku)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Sep 7, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (5196 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
baidu-maps/jsapi-skills · 46 stars · license none declared · pushed 2026-09-07 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_kk3b274h4jpzmxku GET https://markdownregistry.com/api/v1/resolve?ref=baidu-maps/jsapi-skills/bmap-jsapi-v4 GET https://markdownregistry.com/api/v1/blob/14bfb0f8b2304ebaa7a7809e4949bad15797144aa0370506d8e62112d0fffc4e
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.