Install
openclaw skills install leafletBuild, debug, and integrate Leaflet web maps, including map setup, tile layers, markers, popups, GeoJSON overlays, bounds fitting, event handling, and plugin-safe patterns for vanilla HTML, Vite, React, and other frontend apps. Use when the user asks for Leaflet code, OpenStreetMap/XYZ tile integration, 2D web map debugging, or Leaflet migration guidance. 中文触发:Leaflet、OSM 地图、瓦片底图、GeoJSON 地图、交互地图、前端地图调试。
openclaw skills install leafletUse this skill for practical 2D web map work with Leaflet.
Leaflet is best for lightweight interactive maps that need simple setup, raster or XYZ tile layers, GeoJSON overlays, and straightforward custom controls. It is usually the right choice when the user wants a dependable browser map without the heavier rendering model of WebGL-first stacks.
L.map(...) once per container and clean it up in SPA teardown paths.L.geoJSON(...) for lightweight vector overlays and feature-level styling.map.invalidateSize() after the container becomes visible.L.geoJSON with explicit style and onEachFeature.project or wgs84.cgcs2000.qgis.mapbox.cesium.{baseDir}/references/patterns.md when generating or fixing Leaflet code for vanilla HTML, Vite, React, or GeoJSON-heavy pages.