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

TypeError: Cannot read property 'lat' of undefined #3

Open
whyvez opened this issue Jul 19, 2017 · 1 comment
Open

TypeError: Cannot read property 'lat' of undefined #3

whyvez opened this issue Jul 19, 2017 · 1 comment

Comments

@whyvez
Copy link
Contributor

whyvez commented Jul 19, 2017

View details in Rollbar: https://rollbar.com/whyvez/bc-firemap/items/2/


TypeError: Cannot read property 'lat' of undefined
  File "http://dev.bcfiremap.tesera.com.s3-website-us-east-1.amazonaws.com/static/js/main.32d83917.js", line 1, in Object.project
  File "http://dev.bcfiremap.tesera.com.s3-website-us-east-1.amazonaws.com/static/js/main.32d83917.js", line 1, in Object.latLngToPoint
  File "http://dev.bcfiremap.tesera.com.s3-website-us-east-1.amazonaws.com/static/js/main.32d83917.js", line 1, in n.project
  File "http://dev.bcfiremap.tesera.com.s3-website-us-east-1.amazonaws.com/static/js/main.32d83917.js", line 1, in n._removeFromGridUnclustered
  File "http://dev.bcfiremap.tesera.com.s3-website-us-east-1.amazonaws.com/static/js/main.32d83917.js", line 1, in n._removeLayer
  File "http://dev.bcfiremap.tesera.com.s3-website-us-east-1.amazonaws.com/static/js/main.32d83917.js", line 1, in n.removeLayer
  File "http://dev.bcfiremap.tesera.com.s3-website-us-east-1.amazonaws.com/static/js/main.32d83917.js", line 1, in n._moveChild
  File "http://dev.bcfiremap.tesera.com.s3-website-us-east-1.amazonaws.com/static/js/main.32d83917.js", line 1, in n._childMarkerMoved
  File "http://dev.bcfiremap.tesera.com.s3-website-us-east-1.amazonaws.com/static/js/main.32d83917.js", line 1, in n.fire
  File "http://dev.bcfiremap.tesera.com.s3-website-us-east-1.amazonaws.com/static/js/main.32d83917.js", line 1, in n.setLatLng
@whyvez
Copy link
Contributor Author

whyvez commented Jul 19, 2017

I think this is related to how they apply the key prop here: https://github.com/YUzhva/react-leaflet-markercluster/blob/master/src/react-leaflet-markercluster.js#L132

Your not supposed to use an iterator index for key.

Forked and troubleshooting but can't even build the project.

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

1 participant