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.

Adjust InfoWindow triangle for edge of screen annotations #2273

Closed

Description

@ljbade

If an annotation is near the edge of the screen so the InfoWindow gets pushed over to stay on the screen the triangle no longer aligns with the marker:
image

Somehow the triangle should be moved to stay in line with the marker.

Activity

  1. added
    Android
    on Sep 8, 2015
  2. added this to the milestone on Sep 8, 2015
  3. self-assigned this
    on Sep 25, 2015
  4. tobrun commented on Sep 25, 2015

    @tobrun
    Member

    Been looking at Raster-SDK there we are panning the map to make it fit.

    @incanus How is iOS handling this?

  5. tobrun commented on Sep 25, 2015

    @tobrun
    Member

    Currently noticing that panning hides the InfoWindow, in Raster-SDK it doesn't.
    should this be fixed or is this a works-as-designed feature?

  6. ljbade commented on Sep 25, 2015

    @ljbade
    ContributorAuthor

    Hmm I'm not sure why we hide on pan, it might have been a work around for the lag/jitter. @bleege @incanus know more about this

  7. friedbunny commented on Sep 27, 2015

    @friedbunny
    Contributor

    The InfoWindow/callout view should move with the map and stay within the viewport while accounting for margins/etc. Eventually we'll implement this on iOS, but so far we haven't — instead we hide it on pan.

    See #1089 and #1784.

  8. tobrun commented on Sep 28, 2015

    @tobrun
    Member

    Based on info given above, I wil add the same functionality as iOS.
    Will create a issue for this so we can close this one after the PR.

    EDIT: while trying to get it to work I'm noticing lag which results in a bad ux, I will create another ticket for working on annotations in general. While working on that I will pick up this issue automatically

  9. bleege commented on Sep 28, 2015

    @bleege
    Contributor

    The InfoWindow/callout view should move with the map and stay within the viewport while accounting for margins/etc.

    Yep, @friedbunny is absolutely correct. Let's mirror what iOS is doing.

  10. incanus commented on Sep 28, 2015

    @incanus
    Contributor

    To be clear, iOS is hiding the callout on any viewport change because we don't have a good system in the sub-project that we use for callouts (which are rather complex and MapKit-like) to reposition without re-displaying. So mirroring iOS behavior would not track the map.

    I do think we should not track the map on Android until we solve the sync problems with the user dot as described elsewhere. then we can move the info window with the map, too, which is more complex and requires re-layout when hitting the map edge, etc.

  11. modified the milestones: , , android-v2.0.0, android-v2.1.0 on Oct 1, 2015
  12. 6 remaining items

  13. ljbade commented on Oct 13, 2015

    @ljbade
    ContributorAuthor

    Captured a screenshot showing the bug when opening InfoWindow on Streets, then switching to Emerald:
    device-2015-10-13-164015
    device-2015-10-13-164043

  14. ljbade commented on Oct 13, 2015

    @ljbade
    ContributorAuthor

    Also noticed the touch hit box for Emerald is too small. @bleege is this an already known issue?

  15. ljbade commented on Oct 13, 2015

    @ljbade
    ContributorAuthor

    Bummer can't fix the marker size change bug until #2263 is fixed. So I will make new issue -> #2599

  16. tobrun commented on Oct 13, 2015

    @tobrun
    Member

    Also noticed the touch hit box for Emerald is too small. @bleege is this an already known issue?

    @ljbade: details are in #1504

  17. ljbade commented on Oct 13, 2015

    @ljbade
    ContributorAuthor

    @tobrun Excellent.

  18. tobrun commented on Oct 13, 2015

    @tobrun
    Member
    Normal Right Left
    device-2015-10-13-134226 device-2015-10-13-134211 device-2015-10-13-134144
  19. tobrun commented on Oct 13, 2015

    @tobrun
    Member

    On Android we have 2 types of info windows:

    • Default InfoWindow (shown above)
    • Adapted InfoWindow provided by end developer (InfoWindowAdapter)

    I did not implement the margin/repositioning fix for the latter, this would give unexpected results for end developers but I did fix the initial problem for this issue as seen in this screenshot:

    Before After
    device-2015-10-13-140221 device-2015-10-13-135603
  20. bleege commented on Oct 13, 2015

    @bleege
    Contributor

    @tobrun This looks great! The Default InfoWindow will be just fine for now. 👍

  21. bleege commented on Oct 13, 2015

    @bleege
    Contributor

    @tobrun I tried testing things out in #2601 to merge, but ran into some issues. We're getting close though!

  22. added a commit that references this issue on Oct 14, 2015
  23. added a commit that references this issue on Nov 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Android

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions