Changes from v3:
Breaking changes
- React v18 and Leaflet v1.8 are now required as peer dependency.
- ES2020 is the new compilation target version.
- Removed
useMapElementhook. - Removed
MapConsumercomponent. - Removed
whenCreatedproperty from theMapContainercomponent (arefcallback can be used instead). - Removed
onOpenandonCloseproperties fromPopupandTooltipcomponents. - Removed CommonJS distribution.
- Removed UMD distribution.
Other changes
- Added support for React v18 (concurrent mode).
- Added support for
refin theMapContainerandPanecomponents. - Added
createLeafletContextfunction to core. - The created element and context objects are now frozen (immutable).