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.

Install it, pinned
mdr add baidu-maps/jsapi-skills/bmap-jsapi-v4@git:20260907.46682ee

Pins 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

The exact contents, by fingerprint
mdr add baidu-maps/jsapi-skills/bmap-jsapi-v4@sha256:14bfb0f8b2304eba

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_kk3b274h4jpzmxku.svg)](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.

versioncommittedcommitsizeaudit
git:20260907.46682ee latest2026-09-07 46682ee 5,196 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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.

More from baidu-maps/jsapi-skills

bmap-jsapi-gl SKILL.md skill
baidu-maps/jsapi-skills · skills/bmap-jsapi-gl/SKILL.md · 百度地图 JSAPI WebGL (BMapGL)完整开发指南,覆盖地图初始化、覆盖物、图层、事件、样式、性能优化的任务,一站式开发高性能 3D 地图应用。当用户提及 BMapGL、百度地图、jsapi-gl或相关地图开发需求时自动触发。
v1.0.1 · audit A · 46 stars
bmap-jsapi-three SKILL.md skill
baidu-maps/jsapi-skills · skills/bmap-jsapi-three/SKILL.md · 使用 MapV-Three 构建专业的 3D 地图和 GIS 应用 - 基于 Z-up 坐标系的 3D 地图库,支持地图编辑、测量工具、要素绘制、数据管理等地理可视化功能。适用于创建地图编辑器、测量工具、空间数据可视化等 Web-GIS…
v1.0.1 · audit A · 46 stars
jsapi-ui-kit SKILL.md skill
baidu-maps/jsapi-skills · skills/jsapi-ui-kit/SKILL.md · 百度地图官方 UI 交互组件,提供地点自动补全(PlaceAutocomplete)、地点检索(PlaceSearch)、地点详情(PlaceDetail)和路径规划(RoutePlan)组件的使用参考,快速实现地图界面,大幅提升开发效率。
v1.0.1 · audit A · 46 stars

Every file in baidu-maps/jsapi-skills

Browse by kind, by grade A, or by owner.