Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
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

Closed

Description

@1ec5

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.

/cc @boundsj

Activity

  1. added
    macOS
    iOS
    on Feb 10, 2016
  2. jfirebaugh commented on Feb 12, 2016

    @jfirebaugh
    Contributor

    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.

  3. 1ec5 commented on May 9, 2016

    @1ec5
    ContributorAuthor

    Fixed in #4285.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugiOSmacOS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions