Fix calling map.remove()
on MapContainer
unmounting.
Changes from v3:
- React v18 and Leaflet v1.8 are now required as peer dependency.
- ES2020 is the new compilation target version.
- Removed
useMapElement
hook. - Removed
MapConsumer
component. - Removed
whenCreated
property from theMapContainer
component (aref
callback can be used instead). - Removed
onOpen
andonClose
properties fromPopup
andTooltip
components. - Removed CommonJS distribution.
- Removed UMD distribution.
- Added support for React v18 (concurrent mode).
- Added support for
ref
in theMapContainer
andPane
components. - Added
createLeafletContext
function to core. - The created element and context objects are now frozen (immutable).
Updated Leaflet dependency to v1.8 beta.
Updated React dependencies to v18 stable.
- Added
createLeafletContext
function to core. - Updated React dependencies to v18 RC2.
- Changed Leaflet dependency range to v1.7.x until tested with v1.8.x.
- Merged changes from v3.
- Updated docs for v4 support.
- React v18 is now required as peer dependency.
- ES2020 is the new compilation target version.
- Removed
useMapElement
hook. - Removed
MapConsumer
component. - Removed
whenCreated
property from theMapContainer
component. - Removed
onOpen
andonClose
properties fromPopup
andTooltip
components. - Removed CommonJS distribution.
- Removed UMD distribution.
- Added support for React v18 (concurrent mode).
- Added support for
ref
in theMapContainer
andPane
components. - The created element and context objects are now frozen (immutable).