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.
User dot callout view dismisses when user location changes slightly #2618
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.
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).
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.
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).
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.
Activity
1ec5 commentedon Oct 14, 2015
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).
friedbunny commentedon Oct 14, 2015
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.incanus commentedon Oct 15, 2015
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).
1ec5 commentedon Oct 15, 2015
@incanus, I don't think that's a problem in this case: #2618 (comment).
incanus commentedon Oct 15, 2015
Right, so I guess we use
-[MGLMapView metersPerPixelAtLatitude:]combined with changes of < 1 pixel.friedbunny commentedon Jan 21, 2016
Is this adequately addressed by your recent changes in #3589, @1ec5?
1ec5 commentedon Jan 21, 2016
No, not until #1582 lands.
1ec5 commentedon Jan 21, 2016
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.