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

Better error message on invalid LngLat #1443

Closed
mourner opened this issue Aug 25, 2015 · 1 comment
Closed

Better error message on invalid LngLat #1443

mourner opened this issue Aug 25, 2015 · 1 comment
Assignees
Milestone

Comments

@mourner
Copy link
Member

mourner commented Aug 25, 2015

When trying to set center to [37.8, -96], the error is failed to invert the matrix. We should have a saner error because lots of people will trip up on the latlon switch over.

@mourner mourner added the api label Aug 25, 2015
@jfirebaugh jfirebaugh modified the milestone: 0.11 Aug 26, 2015
@tmcw tmcw self-assigned this Sep 3, 2015
@ezheidtmann
Copy link
Contributor

For future users who hit this error when upgrading from mapbox-gl-js v0.9.x to v0.10.0, the problem is that you have point locations written as literal pairs of [lat, lng]. You need to change these to [lng, lat].

I had these in my new mapboxgl.Map({ center: [ ... ] }), which prevented my entire map from loading but also threw this error hundreds of times as I panned around.

@tmcw tmcw closed this as completed in 2c2bd6e Sep 7, 2015
mourner added a commit that referenced this issue Sep 7, 2015
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

4 participants