bmap-jsapi-gl
百度地图 JSAPI WebGL (BMapGL)完整开发指南,覆盖地图初始化、覆盖物、图层、事件、样式、性能优化的任务,一站式开发高性能 3D 地图应用。当用户提及 BMapGL、百度地图、jsapi-gl或相关地图开发需求时自动触发。
用于开发、审查或排查使用百度地图 JavaScript API 4.0、v=4.0 加载器或全局 BMap 命名空间的浏览器应用。
$ npx -y skills add baidu-maps/jsapi-skills --skill bmap-jsapi-v4 --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/bmap-jsapi-v4Context preview
The summary Claude sees to decide when to auto-load this skill.
用于开发、审查或排查使用百度地图 JavaScript API 4.0、v=4.0 加载器或全局 BMap 命名空间的浏览器应用。
name: bmap-jsapi-v4 description: 用于开发、审查或排查使用百度地图 JavaScript API 4.0、v=4.0 加载器或全局 BMap 命名空间的浏览器应用。
聚焦通过 `v=4.0` 加载器和全局 `BMap` 命名空间开发浏览器地图应用,不系统介绍其他版本。
1. 确认任务确实使用 `v=4.0` 和 `BMap`。 2. 只读取与需求直接相关的 reference;跨模块任务按“接入 → Map/几何 → 业务模块 → 生命周期 → 排障”加载。 3. 从 reference 选择满足需求的最小 API 组合。 4. TypeScript 安装、配置、类型报错或 `.d.ts` 补充任务同时读取 TypeScript 专页。 5. 检查版本参数、容器尺寸、异步状态、事件引用和资源清理。 6. 对网络和渲染相关结果进行真实浏览器验证。
| 任务 | 读取 | |---|---| | 页面加载、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) |
| 任务 | 读取 | |---|---| | Marker、Icon、Symbol、拖拽与事件 | [marker.md](references/marker.md) | | Label、InfoWindow、内容更新与关闭 | [label-and-info-window.md](references/label-and-info-window.md) | | Polyline、Polygon、Rectangle、Circle 与编辑 | [vector-overlays.md](references/vector-overlays.md) | | CustomOverlay、GroundOverlay、Prism、BezierCurve、PlaceDetail | [advanced-overlays.md](references/advanced-overlays.md) |
| 任务 | 读取 | |---|---| | GeoJSON、GeoJSONParse、DOMLayer、地图文字 | [data-layers.md](references/data-layers.md) | | MVT 矢量瓦片、样式与要素状态 | [mvt-layer.md](references/mvt-layer.md) | | PointIcon、PointShape、Line、Fill 批量图层 | [visualization-layers.md](references/visualization-layers.md) | | Heatmap、PointLayer、ClusterLayer、TrackLine、Icons 等扩展 API | [runtime-extended-apis.md](references/runtime-extended-apis.md) | | Tile、XYZ、Raster、WMS、WMTS、Traffic、全景覆盖层 | [tile-and-service-layers.md](references/tile-and-service-layers.md) | | 行政区边界与 DistrictLayer | [administrative-district.md](references/administrative-district.md) |
| 任务 | 读取 | |---|---| | LocalSearch、Autocomplete、Geocoder | [search-and-geocoding.md](references/search-and-geocoding.md) | | 驾车、步行、骑行、公交与公交线检索 | [route-search.md](references/route-search.md) | | Geolocation、LocalCity、Convertor | [geolocation-and-convertor.md](references/geolocation-and-convertor.md) | | Panorama、PanoramaService、PanoramaLabel | [panorama.md](references/panorama.md) | | ViewAnimation、关键帧与取消 | [view-animation.md](references/view-animation.md) |
| 任务 | 读取 | |---|---| | `@baidumap/jsapi-v4-types`、全局类型、tsconfig、声明补充 | [typescript-integration.md](references/typescript-integration.md) | | 性能、容器、坐标、瓦片、CORS、事件和内存排障 | [performance-and-troubleshooting.md](references/performance-and-troubleshooting.md) |
This repository provides AI assistant Skills for Baidu Map JSAPI. Use them with Claude, Cursor, or other clients that support skills so the AI can reference accurate API docs and examples when you work with Baidu Map.
Repo: baidu-maps/jsapi-skills
百度地图 JSAPI WebGL (BMapGL)完整开发指南,覆盖地图初始化、覆盖物、图层、事件、样式、性能优化的任务,一站式开发高性能 3D 地图应用。当用户提及 BMapGL、百度地图、jsapi-gl或相关地图开发需求时自动触发。
使用 MapV-Three 构建专业的 3D 地图和 GIS 应用 - 基于 Z-up 坐标系的 3D 地图库,支持地图编辑、测量工具、要素绘制、数据管理等地理可视化功能。适用于创建地图编辑器、测量工具、空间数据可视化等 Web-GIS 应用。
百度地图官方 UI 交互组件,提供地点自动补全(PlaceAutocomplete)、地点检索(PlaceSearch)、地点详情(PlaceDetail)和路径规划(RoutePlan)组件的使用参考,快速实现地图界面,大幅提升开发效率。