You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Currently, LatLngBounds objects in core are built with mbgl::LatLngBounds:hull, which is not trasitioning well into Earth that is not an Euclidean space. This results in wrapped bounds that cross antimeridian being represented incorrectly.
One of the ways to fix the issue would be unwrapping passed LatLngs for the shortest path before creating LatLngBounds object, however, it exposes inconsistency and makes tests fail.
Refs. #11733.
The text was updated successfully, but these errors were encountered:
convex hull can be used over a sphere but shortest distance between two points has to be properly defined.
At the moment LatLngBounds.hull uses LatLngBounds.extend() for its implementation which
assumes shortest distance to be calculated as in Euclidean space:
Currently,
LatLngBounds
objects in core are built withmbgl::LatLngBounds:hull
, which is not trasitioning well into Earth that is not an Euclidean space. This results in wrapped bounds that cross antimeridian being represented incorrectly.One of the ways to fix the issue would be unwrapping passed
LatLng
s for the shortest path before creatingLatLngBounds
object, however, it exposes inconsistency and makes tests fail.Refs. #11733.
The text was updated successfully, but these errors were encountered: