react-geojson-cluster icon indicating copy to clipboard operation
react-geojson-cluster copied to clipboard

Cannot read property 'addLayer' of undefined

Open krypton9208 opened this issue 7 years ago • 1 comments

Hello. I have a problem. When i want to include geojson to map, i have this error

Uncaught (in promise) TypeError: Cannot read property 'addLayer' of undefined at GeoJsonCluster.componentDidMount (MapLayer.js:46)

i using: "leaflet": "^1.0.3", "react": "^15.0.0", "react-leaflet": "^1.1.0", "react-leaflet-geojson-cluster": "^0.1.8",

krypton9208 avatar Mar 21 '17 10:03 krypton9208

I had the same issue and rolled back my react-leaflet to v0.10.2. Seemed to clear up that issue, but I haven't dug in on why yet.

DGaffneyDC avatar Jul 01 '17 03:07 DGaffneyDC