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
Double clicking on map produces "Cannot read property '0' of undefined" error #16
Comments
Hint: If you delete the min from d3 and celestial where you include them in the html, as in |
As for the error, it's possible that it's related to #10, but when I try it, the map keeps working despite the error, and on the next move zooms in a bit. |
Interesting - for me it does not zoom in when I double click. I am using Chrome 67.0.3396.99 on OSX FWIW. |
Turns out the double click event was already handled, but differently in d3 and the zoom module I use d3.geo.zoom, that clashed with each other. Simply deactivating one and zooming manually did the trick. If you pull the latest version, it should work now. I also tweaked the zoom levels for the + / - buttons a bit, I think it's less tedious now. |
Looks good, thanks. |
Hi,
If I double click on the map I get this error in the console..
If I look at Function.t.rotate..
The object 'y' has x, y & k properties but not r so d3.rotate gets fed an undefined and chokes.
Not sure if this is related to issue #10 or something with similar symptoms.
The text was updated successfully, but these errors were encountered: