{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/5645","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-native","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/5645/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/5645/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/5645/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/5645","id":164878541,"number":5645,"title":"Tracking modes for non-user annotations","user":{"login":"erichoracek","id":438313,"avatar_url":"https://avatars.githubusercontent.com/u/438313?v=3","gravatar_id":"","url":"https://api.github.com/users/erichoracek","html_url":"https://github.com/erichoracek","followers_url":"https://api.github.com/users/erichoracek/followers","following_url":"https://api.github.com/users/erichoracek/following{/other_user}","gists_url":"https://api.github.com/users/erichoracek/gists{/gist_id}","starred_url":"https://api.github.com/users/erichoracek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erichoracek/subscriptions","organizations_url":"https://api.github.com/users/erichoracek/orgs","repos_url":"https://api.github.com/users/erichoracek/repos","events_url":"https://api.github.com/users/erichoracek/events{/privacy}","received_events_url":"https://api.github.com/users/erichoracek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/annotations","name":"annotations","color":"c5def5"},{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/feature","name":"feature","color":"0052cc"},{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/iOS","name":"iOS","color":"207de5"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-11T16:26:11Z","updated_at":"2016-07-12T05:21:05Z","closed_at":null,"body":"We would like to have the ability to have the map track an arbitrary annotation similarly to the options currently available for the user annotation (the `MGLUserTrackingMode` options), which add linear animations that track changes to the user's location. It follows that there would be a tracking option to animatedly zoom to fit both the user annotation and another arbitrary point annotation within the map bounds.\r\n\r\nAlongside this change, it would make sense to have changes to `-[MGLAnnotation coordinate]` animated on the map along with the animated map region updates (just like the user annotation).\r\n\r\nThe reasoning that we'd like to do this is that we're receiving frequent location updates from a websocket and want to smoothly animate them on a map (think uber, lyft, etc.)."},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/comments/231940077","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/5645#issuecomment-231940077","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/5645","id":231940077,"user":{"login":"erichoracek","id":438313,"avatar_url":"https://avatars.githubusercontent.com/u/438313?v=3","gravatar_id":"","url":"https://api.github.com/users/erichoracek","html_url":"https://github.com/erichoracek","followers_url":"https://api.github.com/users/erichoracek/followers","following_url":"https://api.github.com/users/erichoracek/following{/other_user}","gists_url":"https://api.github.com/users/erichoracek/gists{/gist_id}","starred_url":"https://api.github.com/users/erichoracek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erichoracek/subscriptions","organizations_url":"https://api.github.com/users/erichoracek/orgs","repos_url":"https://api.github.com/users/erichoracek/repos","events_url":"https://api.github.com/users/erichoracek/events{/privacy}","received_events_url":"https://api.github.com/users/erichoracek/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T05:21:04Z","updated_at":"2016-07-12T05:21:04Z","body":"For more context, the behavior I'm trying to replicate is identical to that of the user annotation but exclusively using the public-facing APIs and with an `MGLPointAnnotation`/`MGLAnnotationView` combination.\r\n\r\nThe `MGLAnnotationView` implicit animations seem to work well as long as the map isn't moving. However, once the map is panned/zoomed or animated via the `setCamera:` methods, the animation of the annotation is no longer in sync with movements of the map.\r\n\r\nThe test I'm using to try this out is hooking up a point annotation to a `CLLocationManager` and seeing whether or not it smoothly overlays on top of the user annotation when `showsUserLocation = YES`. This isn't the real scenario we want, but serves as a good way to test map animations and user interactions when we have a custom annotation since we can use the user annotation as a reference."}}
{"actor":{"display_login":"erichoracek"}}