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 was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Unable to select annotation on other side of antimeridian #3879
When the viewport straddles the antimeridian but mostly contains the Western Hemisphere, clicking an annotation located in the Eastern Hemisphere does nothing. Likewise, when the center coordinate is in the Eastern Hemisphere, clicking an annotation in the Western Hemisphere does nothing.
The rtree lookup in AnnotationManager::getPointAnnotationsInBounds needs to split bounds that cross the antimeridian into two wrapped bounds that don't cross it.
Also AnnotationManager::addPointAnnotations should probably ensure that rtree insertions happen with wrapped coordinates.
Alternatively, it may be possible to use boost::geometry::cs::geographic in our registration, rather than boost::geometry::cs::cartesian, and have boost do this for us automatically.
Activity
jfirebaugh commentedon Feb 12, 2016
The rtree lookup in
AnnotationManager::getPointAnnotationsInBoundsneeds to split bounds that cross the antimeridian into two wrapped bounds that don't cross it.Also
AnnotationManager::addPointAnnotationsshould probably ensure that rtree insertions happen with wrapped coordinates.Alternatively, it may be possible to use
boost::geometry::cs::geographicin our registration, rather thanboost::geometry::cs::cartesian, and have boost do this for us automatically.1ec5 commentedon May 9, 2016
Fixed in #4285.