-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Better error when providing NaN/null camera settings #1189
Comments
map.transform:
|
The result I got was because the app was calling |
This is still triggerable without misusing the API like I was doing: just use shift-drag zooming in the /debug page. |
I am getting this again in 0.23.0 when ever i do fitBounds(). https://gist.github.com/eatpurely/d7e8cd8e76695472d87d828fc60645a4 |
Same here :/ |
@eatpurely what are the values of |
Order is also reversed - it is now Lng, Lat. Cf: https://www.mapbox.com/mapbox-gl-js/api/#LngLatLike
Comment from the commit above:
|
I was getting this error too from the fitBounds() method, however I later realized I had just a few values switched so it was not able to make a proper box and got messed up. I wish that the method could accept an object with {ne: {lon: 0, lat: 0}, sw: {lon: 0, lat:0}} so you don't have to know the order that the lat and lons should be placed in an array, more explicit when they are named. |
We're seeing the
|
This error is much much rarer now 😄 |
cause is in getProjTransform: https://github.com/mapbox/mapbox-gl-js/blob/master/js/geo/transform.js#L336-L357 which is returning an array of NaNs.
The text was updated successfully, but these errors were encountered: