PaulLeCam / react-leaflet

React components for Leaflet maps
https://react-leaflet.js.org
Other
5.19k stars 887 forks source link

TypeError: Cannot read properties of undefined (reading '_zoom') #1068

Closed dioggosoares closed 6 months ago

dioggosoares commented 1 year ago

Error on version 4

<MarkerClusterGroup removeOutsideVisibleBounds={true} maxClusterRadius={45} chunkedLoading

{ units?.map((unit) => { return ( <Marker key={unit.unitId} position={[Number(unit.latitude), Number(unit.longitude)] ?? [0, 0]} icon={createMarkerCustomIcon(unit.unitStatus)} title={unit.unitStatus} /> ) }) }