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.
Compare starting the map in someplace far away, then locating the user, in both this toolkit and in MapKit (stuttering issues aside, which are due to simulator on desktop):
Ayup.
We should figure out a certain threshold and just snap to the location if greater than it.
This was by design in #3589. Snapping to the new location optimizes for informing the user of their current location sooner but at the cost of giving the user less context across long distances. We made the same tradeoff in deciding to animate the user dot in the first place: the dot always lags your actual location by up to a second, but that's preferable to jumping around.
Also note that MapKit is far from consistent: if you launch a MapKit-powered application on a device, turn on user location tracking, wait until MKMapView zooms into your real location, and simulate a very different location via Xcode, MapKit eases the entire distance without varying the zoom level. The result is what seems like an interminable animation (over a minute to travel from Cupertino to Cincinnati).
Also note that MapKit is far from consistent: if you launch a MapKit-powered application on a device, turn on user location tracking, wait until MKMapView zooms into your real location, and simulate a very different location via Xcode, MapKit eases the entire distance without varying the zoom level. The result is what seems like an interminable animation (over a minute to travel from Cupertino to Cincinnati).
Yeah, but you are simulating there, so it's operating under the assumption that the user really did move that distance and uses its built-in smoothly-animating viewport change.
Activity
1ec5 commentedon Jul 26, 2016
This was by design in #3589. Snapping to the new location optimizes for informing the user of their current location sooner but at the cost of giving the user less context across long distances. We made the same tradeoff in deciding to animate the user dot in the first place: the dot always lags your actual location by up to a second, but that's preferable to jumping around.
Also note that MapKit is far from consistent: if you launch a MapKit-powered application on a device, turn on user location tracking, wait until MKMapView zooms into your real location, and simulate a very different location via Xcode, MapKit eases the entire distance without varying the zoom level. The result is what seems like an interminable animation (over a minute to travel from Cupertino to Cincinnati).
1ec5 commentedon Jul 26, 2016
All that said, we can cap the flight duration or increase the maximum air velocity. There's plenty of room to experiment with different thresholds.
incanus commentedon Jul 26, 2016
Yeah, but you are simulating there, so it's operating under the assumption that the user really did move that distance and uses its built-in smoothly-animating viewport change.
1ec5 commentedon Jul 26, 2016
That's the more realistic scenario, right? I wouldn't really be inclined to optimize for the iOS simulator if it differs from the device.
incanus commentedon Jul 27, 2016
I don't think that it does differ—I see this frequently on device as well. Here's an example (admittedly on iOS 10 beta though):
incanus commentedon Jul 27, 2016
And then our library:
stale commentedon Nov 27, 2018
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.