React components for Leaflet maps
Fix supporting mutable whenCreated
with unmounting MapContainer
.
Fix removing the map handlers when MapContainer
is unmounted.
style
prop of GeoJSON
mutable, this prop should be used instead of pathOptions
(pathOptions
can still be used but should be considered deprecated).bounds
prop being an instance of LatLngBounds
.Pane
component compatible with React's StrictMode
(PR #810 by zmbc)Use useState
hook rather than useMemo
to store immutable values in MapContainer
and Pane
.
Additional fixes for panes support