-
Notifications
You must be signed in to change notification settings - Fork 427
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
GeoJSON with points throws Uncaught TypeError: Cannot read property 'enabled' of undefined #37
Comments
argh just saw this. Will take care of it this weekend (and thanks for the PR) |
Did you find time to look deeper into this? Stacktrace: https://jsfiddle.net/fqaj20or/ @xmojmr fix solved the problem in my case |
merged your PR - sorry for the delay. |
If GeoJSON layer contains points then
pm
logs console errorUncaught TypeError: Cannot read property 'enabled' of undefined
when it sees the L.Marker type of layer.To reproduce use this: http://plnkr.co/edit/ZjLXPgIWpcAq2k9xIKoJ?p=preview
Expected behavior:
map.fitBounds(geoJsonLayer.getBounds())
gets calledActual behavior:
map.fitBounds(geoJsonLayer.getBounds())
is not called because call togeoJsonLayer.addData(json)
throws an exceptionThe text was updated successfully, but these errors were encountered: