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.

User dot callout view dismisses when user location changes slightly #2618

Closed

Description

@1ec5

On iOS, the user dot's callout view is automatically dismissed whenever the user location changes. It should not be dismissed when the location change is small, because that's usually just the result of Core Location refining its location.

/cc @friedbunny

Activity

  1. added
    iOS
    on Oct 14, 2015
  2. 1ec5 commented on Oct 14, 2015

    @1ec5
    ContributorAuthor

    Keeping the callout view open in this case does not expose any view syncing performance issues, because the user dot itself isn't animated (see #1582).

  3. friedbunny commented on Oct 14, 2015

    @friedbunny
    Contributor

    Sounds good to me. We show the accuracy pulse (haloLayer) when location accuracy is <10 meters, but I'm thinking an additional screen distance threshold may be better for the callout — unless potentially jumping all the way across the screen doesn't look that bad.

  4. incanus commented on Oct 15, 2015

    @incanus
    Contributor

    We should just ensure that the dot isn't in fact moving perceptibly, since we can't yet reposition callouts (or other views) synced to the map yet (#1125).

  5. 1ec5 commented on Oct 15, 2015

    @1ec5
    ContributorAuthor

    @incanus, I don't think that's a problem in this case: #2618 (comment).

  6. incanus commented on Oct 15, 2015

    @incanus
    Contributor

    Right, so I guess we use -[MGLMapView metersPerPixelAtLatitude:] combined with changes of < 1 pixel.

  7. friedbunny commented on Jan 21, 2016

    @friedbunny
    Contributor

    Is this adequately addressed by your recent changes in #3589, @1ec5?

  8. 1ec5 commented on Jan 21, 2016

    @1ec5
    ContributorAuthor

    No, not until #1582 lands.

  9. 1ec5 commented on Jan 21, 2016

    @1ec5
    ContributorAuthor

    I stand corrected: even though the user dot and its callout don’t animate around yet outside of user tracking mode, the callout view does stay open. Closing.

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

    iOS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions