BMap JSAPI GL

Paquete de referencia BMapGL de Baidu Maps: 24 documentos API para superposiciones, capas, enrutamiento

Por baidu-maps · baidu-maps/jsapi-skills

Probado · Funciona ★ 8.8/10

BMap JSAPI GL — Paquete de referencia BMapGL de Baidu Maps: 24 documentos API para superposiciones, capas, enrutamiento

Qué hace

Official Baidu Maps skill que loads WebGL (BMapGL) API reference on demand: map init, markers, polylines, polygons, info windows, custom map styles, MVT/XYZ layers, routing, geocoding y coordinate conversion. Se activa cuando una request menciona BMapGL, 百度地图 o jsapi-gl, y points Claude at the one reference file que answers the question instead of guessing at API shapes. Rendering real tiles still needs a Baidu browser-side AK, which the skill explains how to obtain.

Informe de la prueba

Se pidió una dark-themed BMapGL page con un draggable marker y un info window, first from memory y then with the skill loaded. La no-skill version set the theme con setMapStyleV2({styleId:'dark'}) y un InfoWindow de width 200 — downloading the actual BMapGL bundle y reading it shows any styleId under 32 chars is coerced into a style-name lookup donde only 'default' y 'grayed-out' exist, y setWidth clamps anything below 220, so both lines silently do nothing. El map-style.md de la skill hands over a working five-rule dark styleJson en el required #RRGGBBAA form, y sus docs flag el 220-730 width range plus el mandatory map.destroy() teardown que la baseline omitted. All 24 reference files cited en SKILL.md exist; el '3D map' claim del frontmatter es un stretch, since el repo's own README assigns 3D a la sibling bmap-jsapi-three skill.

Probado el: 2026-08-10 · Claude Code 2.x (agent harness)

Instalación

git clone https://github.com/baidu-maps/jsapi-skills.git
mkdir -p ~/.claude/skills
cd jsapi-skills && cp -r skills/bmap-jsapi-gl ~/.claude/skills/bmap-jsapi-gl

Comandos y prompts de ejemplo

  • /bmap-jsapi-glPaquete de referencia BMapGL de Baidu Maps: 24 documentos API para superposiciones, capas, enrutamiento

Los skills se activan con peticiones en lenguaje natural, sin comandos que memorizar. Tras instalarlo, prompts como estos lo activan (en inglés):

  • 帮我用百度地图 BMapGL WebGL API 做一个带暗色自定义样式、支持拖拽标记的地图展示页面
  • 请用百度地图 jsapi-gl 实现一个地图页面,标记可以拖拽,点击后弹出详细信息窗口
  • 如何用百度地图 WebGL API 加载自定义地图样式,并实现路线规划和坐标系转换功能