Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'addLayer' of undefined #8

Open
krypton9208 opened this issue Mar 21, 2017 · 1 comment
Open

Cannot read property 'addLayer' of undefined #8

krypton9208 opened this issue Mar 21, 2017 · 1 comment

Comments

@krypton9208
Copy link

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",

@DGaffneyDC
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants