# dash-leaflet2 — Leaflet 2 maps for Dash

> dash-leaflet2 — Leaflet 2 (alpha) mapping components for Plotly Dash 4. Wraps Leaflet 2 core directly instead of react-leaflet, exposing unified Pointer Events, BlanketOverlay canvas/WebGL layers, ES6-class subclassing, ResizeObserver sizing and map rotation as Dash components. By Pip Install Python.

---

## Pages

- [dash-leaflet2 — Leaflet 2 maps for Dash](https://leaflet.2plot.dev/llms.txt): dash-leaflet2 — Leaflet 2 (alpha) mapping components for Plotly Dash 4. Wraps Leaflet 2 core directly instead of react-leaflet, exposing unified Pointer Events, BlanketOverlay canvas/WebGL layers, ES6-class subclassing, ResizeObserver sizing and map rotation as Dash components. By Pip Install Python.
- [API](https://leaflet.2plot.dev/api/llms.txt): Component props reference for dash_leaflet2.
- [Attribution](https://leaflet.2plot.dev/attribution/llms.txt): explicit control over the attribution box.
- [Canvas Renderer](https://leaflet.2plot.dev/canvas-overlay/llms.txt): dense point clouds through one <canvas>.
- [Changelog](https://leaflet.2plot.dev/changelog/llms.txt): Version history of dash-leaflet2, rendered from CHANGELOG.md.
- [Compare Lab](https://leaflet.2plot.dev/compare-lab/llms.txt): stack, reorder and cross-fade tile overlays from a TreeViewPro popover.
- [Easy Button](https://leaflet.2plot.dev/easy-button/llms.txt): Easy Button + marker creation flow with emoji picker, form popup, and view mode.
- [Draw & Edit](https://leaflet.2plot.dev/edit-control/llms.txt): native v2 drawing/editing toolbar with full dash-leaflet-style API parity.
- [Edit Control + Measurement](https://leaflet.2plot.dev/edit-control-measurement/llms.txt): popover-driven drawing, recoloring, and per-feature labels.
- [Emoji & Iconify](https://leaflet.2plot.dev/emoji-iconify/llms.txt): a live DashEmojiMart picker + a full Iconify catalogue search,
- [Events → Python](https://leaflet.2plot.dev/events-python/llms.txt): full JS→Python round-trip via dcc.Store.
- [Flight Sim](https://leaflet.2plot.dev/flight-sim/llms.txt): single-player, keyboard + touch-joystick, rAF physics loop.
- [FlyTo](https://leaflet.2plot.dev/flyto/llms.txt): smooth viewport transitions, modelled on dash-leaflet's `viewport` API.
- [GeoJSON clustering](https://leaflet.2plot.dev/geojson-cluster/llms.txt): SuperCluster-backed point clustering for dl2.GeoJSON — cluster, pointToLayer, clusterToLayer, hideout, superClusterOptions.
- [LayerGroup & FeatureGroup](https://leaflet.2plot.dev/layer-group/llms.txt): Bundle N layers so they can be added, removed, toggled, or measured as one — wraps Leaflet 2's LayerGroup / FeatureGroup.
- [Layers Control](https://leaflet.2plot.dev/layers-control/llms.txt): the compiled dl2.LayersControl component.
- [Map pro props](https://leaflet.2plot.dev/map-pro-props/llms.txt): minZoom, maxZoom, maxBounds, zoomControl, keyboard — the dash-leaflet 1.x Map options ported to dl2.
- [MiniMap](https://leaflet.2plot.dev/minimap/llms.txt): small overview map pinned to a corner of the main map.
- [Pointer Events](https://leaflet.2plot.dev/pointer-events/llms.txt): Leaflet 2's headline change.
- [Privacy](https://leaflet.2plot.dev/privacy/llms.txt): What dash-leaflet2 stores about a visit, what it does not store, and where the numbers go — described from the code that does it.
- [ResizeObserver Sizing](https://leaflet.2plot.dev/resize-observer/llms.txt): no gray tiles in collapsible layouts.
- [Basic Rotation](https://leaflet.2plot.dev/rotation-basic/llms.txt): `bearing` on dl2.Map + dl2.KeyboardControl
- [Scale, FullScreen, ImageOverlay](https://leaflet.2plot.dev/scale-fullscreen-image/llms.txt): Three small controls / overlays that close the remaining dl1 gaps: ScaleControl, FullScreenControl, ImageOverlay.
- [ES6 Subclassing](https://leaflet.2plot.dev/subclassing/llms.txt): custom Control + a BlanketOverlay canvas layer.
- [Terms of Use](https://leaflet.2plot.dev/terms/llms.txt): Terms of use for dash-leaflet2: what this site is, what it is not, and the terms the documentation and its code examples are offered under.
- [TextMarker](https://leaflet.2plot.dev/text-marker/llms.txt): Editable, draggable, styleable text placed on the map like a Marker — drag to move, double-click to edit, on-canvas resize/rotate handles, and a style toolbar; round-trips position/text/rotation/fontSize/color back to Dash.
- [Tile Layers (Pro)](https://leaflet.2plot.dev/tile-layers-pro/llms.txt): EasyButton + Popover + MultiSelect + TreeViewPro.
- [Tile Selector](https://leaflet.2plot.dev/tile-selector/llms.txt): pick map tiles by clicking or shift-dragging, and round-trip them to Python.
- [TileLayer pro props](https://leaflet.2plot.dev/tilelayer-pro-props/llms.txt): minZoom, bounds, errorTileUrl, zIndex, subdomains, detectRetina, tms — the dash-leaflet 1.x TileLayer surface ported to dl2.
- [Vector Layers](https://leaflet.2plot.dev/vector-layers/llms.txt): Polygon / Polyline / Circle / CircleMarker.
- [Walking Sim](https://leaflet.2plot.dev/walking-sim/llms.txt): top-down RPG-style walking with the full pirate-captain sprite

## Other documents

- Page index: https://leaflet.2plot.dev/llms.txt
- Full corpus: https://leaflet.2plot.dev/llms-full.txt
- Network hub: https://2plot.dev/llms.txt — The 2plot network.

## Access policy

- Terms: these documents are free to fetch. A free account unlocks any gated document.
- Identity: agents may present a key by appending `?key=<value>` to any document URL. Get one: https://2plot.ai
- Rate: prefer ONE `/llms-full.txt` fetch over N per-page fetches. On 429, honour `Retry-After` and back off exponentially.
- Coordination: start at https://2plot.dev/llms.txt — one index enumerates every site; do not rediscover the network by crawling it.
- Crawler policy (mirrors /robots.txt): allowed: GPTBot, ClaudeBot, CCBot, Google-Extended, FacebookBot, Omgili, ByteSpider, Amazonbot, Applebot-Extended, meta-externalagent, AI2Bot, Diffbot, Timpibot, ImagesiftBot, ChatGPT-User, Claude-User, Claude-SearchBot, PerplexityBot, OAI-SearchBot, Perplexity-User, Googlebot, Bingbot, Slurp, DuckDuckBot, GoogleOther, Google-InspectionTool, Storebot-Google, AdsBot-Google.
- Accounting: every document read is logged with the requesting vendor (verified against published IP ranges where the operator publishes them). See https://2plot.dev/llms.txt
