web-maps-leaflet
Installation
SKILL.md
Leaflet Interactive Map Patterns
Quick Guide: Leaflet is a small 2D mapping library:
L.mapinitializes against a DOM element,L.tileLayersupplies the base map, and everything drawn on top — markers, popups, GeoJSON, controls — is a layer added to and removed from the map independently.L.geoJSONdoes most of the data work through itspointToLayer,onEachFeature,styleandfiltercallbacks. Marker count is the decision that shapes the rest: past a hundred, DOM markers stop scaling and the work moves to clustering or the canvas renderer. Current: v1.9.4, with types in@types/leaflet.
Detailed Resources:
- examples/core.md — map setup, tile providers, markers and icons, GeoJSON, layer groups and control, events
- examples/advanced.md — custom controls, clustering, TypeScript, canvas rendering, bounds and viewport
- reference.md —
L.mapmethods,L.geoJSONand cluster options, event table, install checklist
<critical_requirements>