- Change unmounting logic for some layers, which should fix issues related to removing or updating elements.
- Make the
style
prop ofGeoJSON
mutable, this prop should be used instead ofpathOptions
(pathOptions
can still be used but should be considered deprecated). - Fix documentation about
bounds
prop being an instance ofLatLngBounds
.
- Make
Pane
component compatible with React'sStrictMode
(PR #810 by zmbc) - Fix typo in API Components docs (PR #827 by arthurdenner)
Use useState
hook rather than useMemo
to store immutable values in MapContainer
and Pane
Update README
- Document pathOptions for GeoJSON (PR #785 by bb)
- Ensure
MapContainer
props are immutable - Fix TypeScript definition for
MapContainer
props
Additional fixes for panes support
v3 is a full rewrite of React Leaflet and contains breaking change from v2.
- Full rewrite based on React Hooks (no more extending
Component
) - Replace Flow by TypeScript for type checking
- Drop IE support (Babel config will only target the "last 2 versions" of modern browsers)
- Switch to the Hippocratic License
- The
Map
component is replaced byMapContainer
, behaving differently - Event handlers must be attached using the
eventHandlers prop
rather thanon*
props, with a similar change for path options and WMS params - The
react-leaflet
package only exposes a public API while a new package,@react-leaflet/core
, is used to provide the core APIs - A new documentation website using Docusaurus v2 with live examples
- Remove
preserveAspectRatio
andviewport
props fromSVGOverlay
, replaced byattributes
prop - Add third-party plugins page to documentation website
- Specify list of supported browsers (PR #736 by anajavi)
- Drop Babel runtime polyfilling (PR #739 by anajavi)
- Upgrade rollup plugins (PR #740 by anajavi)
- Bump React dependency to v17
Broken build
- Fix
LayersControl
lifecycle logic causing layer removal - Use terser instead of uglifyjs to minify the UMD build (PR #735 by anajavi)
v3 is a full rewrite of React Leaflet and contains breaking change from v2.
- Full rewrite based on React Hooks (no more extending
Component
) - Replace Flow by TypeScript for type checking
- Drop IE support (Babel config will only target the "last 2 versions" of browsers)
- Switch to the Hippocratic License
- The
Map
component is replaced byMapContainer
, behaving differently - Event handlers must be attached using the
eventHandlers prop
rather thanon*
props, with a similar change for path options and WMS params - The
react-leaflet
package only exposes a public API while a new package,@react-leaflet/core
, is used to provide the core APIs - A new documentation website using Docusaurus v2 with live examples, currently published on react-leaflet-v3.now.sh