react-leaflet-measure
react-leaflet-measure copied to clipboard
TypeError: Cannot read property 'getCenter' of null
Hi! I use your project in my work and I like it. My project is in TypeScript and it has a custom map component made using React-Leaflet withLeaflet()
component. But I often get an error which says TypeError: Cannot read property 'getCenter' of null
and I guess it happens when the state of my custom map component which uses your component, changes.
Is there any way to fix this?