React components for Leaflet maps
Added support for mutable url
prop on TileLayer
(PR #1047 by goto-bus-stop)
eventHandlers
object being injected in WMS request URL.bounds
props on ImageOverlay
.Fix calling map.remove()
on MapContainer
unmounting.
Changes from v3:
useMapElement
hook.MapConsumer
component.whenCreated
property from the MapContainer
component (a ref
callback can be used instead).onOpen
and onClose
properties from Popup
and Tooltip
components.ref
in the MapContainer
and Pane
components.createLeafletContext
function to core.Updated Leaflet dependency to v1.8 beta.
Updated React dependencies to v18 stable.
createLeafletContext
function to core.useMapElement
hook.MapConsumer
component.whenCreated
property from the MapContainer
component.onOpen
and onClose
properties from Popup
and Tooltip
components.ref
in the MapContainer
and Pane
components.