Releases: akursat/react-leaflet-cluster
Releases · akursat/react-leaflet-cluster
v4.1.3
v4.1.0
What's Changed
- Perf: Buffer all incoming addLayer() calls into an array instead of processing immediately
Schedule a flush using queueMicrotask() to run on the next microtask
Flush once by calling addLayers()/removeLayers() with the entire batch by @kaprests in #49
Full Changelog: v4.0.0...v4.1.0
v4.0.0
Breaking Changes
This release updates key peer dependencies to support React 19 and React-Leaflet 5. Make sure your project is upgraded before installing this version.
- react: ^18.x
- react-dom: ^18.x
- react-leaflet: ^4.x
+ @react-leaflet/core: ^3.0.0
+ leaflet: ^1.9.0
+ react: ^19.0.0
+ react-dom: ^19.0.0
+ react-leaflet: ^5.0.0
Improvements
Added support for detecting marker cluster updates when component props change, enabling dynamic UI refreshes and more reactive map state.
Check for removed or renamed APIs in React-Leaflet 5 if you encounter breaking layout or rendering issues.
v3.1.0
The package no longer automatically configures Leaflet's default marker icons. If you need to use default markers, you'll need to configure the icon URLs yourself. Add this configuration to your component or entry file:
import L from 'leaflet'
// Configure default marker icons
delete (L.Icon.Default as any).prototype._getIconUrl
L.Icon.Default.mergeOptions({
iconRetinaUrl: 'https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon-2x.png',
iconUrl: 'https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon.png',
shadowUrl: 'https://unpkg.com/leaflet@1.9.4/dist/images/marker-shadow.png',
})