-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
fitBounds doesn't work with the alternate projections #12885
Comments
Hi @LarryZhu-dev, Thank you for using mapbox-gl-js. It's unclear to me what the issue is about. Could you please add more details on the subject? You can also provide a minimal, complete, verified demonstration of the issue to help the maintainers and community understand and address the problem accurately. We recommend using https://jsbin.com/. Also, for future "how do I" questions like this, you can refer to our help documentation, and if you can't find the answer there, contact support. This issue tracker is for reporting bugs and feature requests. You might also consider posting your question to https://stackoverflow.com/questions/tagged/mapbox-gl-js to ask the community for help. |
That is to say, the fitBounds() method only correctly moves the perspective in the Mercator coordinate system, for example, in the wgs84 coordinate system, the more northward the incoming rect is, the more severely the method shifts |
I can confirm that when using Equal Earth projection the fitbounds function doesn't fit all markers to the viewport. |
Can you confirm the cause of the problem now |
I have the same problem - adding to the chorus on this "known issue".
|
Other coordinate systems will have significant offsets
The text was updated successfully, but these errors were encountered: