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

getZooms inconsistent when longitudes exceed +-180 #147

Open
davidtheclark opened this issue Aug 16, 2016 · 1 comment
Open

getZooms inconsistent when longitudes exceed +-180 #147

davidtheclark opened this issue Aug 16, 2016 · 1 comment

Comments

@davidtheclark
Copy link

I've only been looking into GeoJSON, so I don't know if the same thing stretches to other data types.

If the data is entirely contained in longitudes more negative than -180 (e.g. a point at [-222, 30]), I see Error calculating min/max zoom: Bounds invalid. If it is entirely contained in longitudes more positive than +180, though, I see no error.

If the data stretches from one world into another, e.g. an extent [-21.796875, 31.952162238024975, 444.03125, 33.137551192346145], getZooms() returns the minimum zoom levels, 0 6. That zoom level would not capture the feature on a map, though.

I'm just trying to get to the bottom of what the expectation is here concerning longitudes +-180.

@davidtheclark
Copy link
Author

I created some test cases to illustrate in #148.

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