-
Notifications
You must be signed in to change notification settings - Fork 40
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
Wrong zoom level or NaN zoom #24
Comments
Hello, Here an example of a wrong zoom level: -> correct zoom between San Francisco and Paris should be around 2.6 with mapbox static image playground -> Geoviewport give 3.7 zoom level And you can test incorrect zoom level and NaN zoom here: I am really confuse ! Is anyone have ever encountered this issue ? |
Same here. Wired |
Check a second time the coordinates array you use as first argument of geoViewport.viewport. They should be [West,South,East,North] or [minimum longitude, minimum latitude, maximum longitude, maximum latitude]. |
I have also this problem, but it appears only for some specific boundaries, for example: |
I had this issue solved by adding 360 to east longitude if its smaller than west longitude [southWest.longitude, |
Hello, I am using this library to generate multiple mapbox static map with differents bounds.
I have 4 generated maps and 3 of them have incorrect zoom:
the good one :
result =>
One of the 4 generated maps gives me a wrong zoom level :
I should have bounds between San-Francisco and Paris but it gives me this =>
(The center coordinates are good but zoom level isn't)
And the 2 others viewport gives me "NaN" zoom:
and
I always use the same function in my code and WSEN array of bounds is always respected.
I am a little confused about what happened here =/
Did I missed something?
Thank you =)
The text was updated successfully, but these errors were encountered: