dash-leaflet2
Leaflet 2-native mapping components for Plotly Dash 4.
dash-leaflet is frozen on react-leaflet and Leaflet 1.9.
This library wraps Leaflet 2 core directly, which unlocks unified
Pointer Events, BlanketOverlay canvas/WebGL layers,
ES6-class subclassing, ResizeObserver sizing and map
rotation — all driven from Python.
The interactive documentation requires JavaScript.
These formats do not:
Every page also serves its own /<page>/llms.txt
containing the prose plus the complete, runnable example source.
Install
pip install dash-leaflet2
Requires Python 3.9+ and Dash 4.1+. The compiled JavaScript bundle
ships inside the package — no Node, no build step, no
external_scripts.
Components
26 in total: Map, TileLayer,
Marker, Popup, Tooltip,
GeoJSON (with clustering), LayerGroup,
FeatureGroup, ImageOverlay,
Circle, CircleMarker,
Polyline, Polygon,
Rectangle, LayersControl,
EditControl, AttributionControl,
ScaleControl, FullScreenControl,
MiniMap, EasyButton,
KeyboardControl, TileSelector,
TextMarker, and the BaseLayer /
Overlay pair.
Links