-
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
Design better format for setting & getting map bounds #2112
Comments
LatLngBounds is used:
My conclusion is that |
My usecase for |
Lets focus this ticket on
I'll ticket out other follow-ups separately |
Any ways it's possible to have a fit bound across the dateline? For a flight product, we can't visualize any trans-pacific flights properly and it's pretty much a deal-breaker. |
@iplanwebsites As discussed in #2112, I think the ideal solution to this problem is the |
Thanks @anandthakker! Yes I think that'd be a much needed feature :) |
I need to get a closed loop (the visible area) from the map, But I am getting only two corners. I think there must be a way to get the other two corners. Is there any method for that or can anyone point me in the right direction? I need to get a closed loop like four sets of lat, lang values for the visible rectangle. |
@agiratech-vigneshm |
@ansis Thanks for your time, I solved it by using below code.
|
LngLatBounds can currently represent an axis-aligned rectangular bounding box. When the map is rotated or tilted this doesn't fit the current view exactly.
Should switch LngLatBounds to storing four locations so that it can represent skewed and rotated bounding boxes?
We could it make it backwards compatible by making the constructor accept only two points.
cc @mourner
The text was updated successfully, but these errors were encountered: