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