Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

iOS setDirection:animated: cancels setCenterCoordinate:animated: #1643

Closed
picciano opened this issue May 26, 2015 · 2 comments · Fixed by #2193
Closed

iOS setDirection:animated: cancels setCenterCoordinate:animated: #1643

picciano opened this issue May 26, 2015 · 2 comments · Fixed by #2193
Labels
iOS Mapbox Maps SDK for iOS

Comments

@picciano
Copy link

When the following calls are made:

[self.mapView setCenterCoordinate:newLocation.coordinate animated:YES];
[self.mapView setDirection:newLocation.course * -1 + 360 animated:YES];

The first call to setCenterCoordinate: is ignored. If the order of the calls is reversed, then the call to setDirection: is ignored.

Ideally, there would be a single method to set both centerCoordinate and direction with both items animated.

@incanus
Copy link
Contributor

incanus commented May 26, 2015

Ideally, there would be a single method to set both centerCoordinate and direction with both items animated.

Interesting. MapKit gets around this with the MKMapCamera API for setting all at once. We should indeed add a combined convenience method, and I would say the current behavior is expected.

@incanus incanus added this to the iOS Beta 2 milestone May 26, 2015
@incanus incanus added the iOS Mapbox Maps SDK for iOS label May 26, 2015
@1ec5 1ec5 mentioned this issue May 26, 2015
@incanus incanus modified the milestones: iOS Beta 2, iOS Beta 3 Jun 17, 2015
@jfirebaugh jfirebaugh removed this from the iOS Beta 3 milestone Jun 30, 2015
@incanus
Copy link
Contributor

incanus commented Aug 28, 2015

This will be handled by the camera API work over in #2193.

@1ec5 1ec5 mentioned this issue Aug 28, 2015
14 tasks
1ec5 added a commit that referenced this issue Sep 4, 2015
Plumbed camera options all the way through to MGLMapView. Added a method that lets you specify a direction in addition to center point and zoom level.

Added Map::jumpTo() for parity with mapbox-gl-js. Replaced usage of Map::setLatLng() and Map::setLatLngZoom() with Map::jumpTo() or Map::easeTo() within MGLMapView. Replaced MGLMapView.pitch with MGLMapCamera for setting all supported degrees of freedom simultaneously. Simultaneously move and rotate with course.

Support customizable timing functions on iOS.

iosapp now persists an archived MGLMapCamera instead of separate viewpoint properties and also synchronizes user defaults on termination. This change implements persistence entirely in Objective-C, eliminating the use of the Objective-C++ implementation.

Fixes #1643, fixes #1834. Ref #1581.
1ec5 added a commit that referenced this issue Sep 7, 2015
Plumbed camera options all the way through to MGLMapView. Added a method that lets you specify a direction in addition to center point and zoom level.

Added Map::jumpTo() for parity with mapbox-gl-js. Replaced usage of Map::setLatLng() and Map::setLatLngZoom() with Map::jumpTo() or Map::easeTo() within MGLMapView. Replaced MGLMapView.pitch with MGLMapCamera for setting all supported degrees of freedom simultaneously. Simultaneously move and rotate with course.

Support customizable timing functions on iOS.

iosapp now persists an archived MGLMapCamera instead of separate viewpoint properties and also synchronizes user defaults on termination. This change implements persistence entirely in Objective-C, eliminating the use of the Objective-C++ implementation.

Fixes #1643, fixes #1834. Ref #1581.
AndwareSsj pushed a commit to AndwareSsj/mapbox-gl-native that referenced this issue Nov 6, 2015
Plumbed camera options all the way through to MGLMapView. Added a method that lets you specify a direction in addition to center point and zoom level.

Added Map::jumpTo() for parity with mapbox-gl-js. Replaced usage of Map::setLatLng() and Map::setLatLngZoom() with Map::jumpTo() or Map::easeTo() within MGLMapView. Replaced MGLMapView.pitch with MGLMapCamera for setting all supported degrees of freedom simultaneously. Simultaneously move and rotate with course.

Support customizable timing functions on iOS.

iosapp now persists an archived MGLMapCamera instead of separate viewpoint properties and also synchronizes user defaults on termination. This change implements persistence entirely in Objective-C, eliminating the use of the Objective-C++ implementation.

Fixes mapbox#1643, fixes mapbox#1834. Ref mapbox#1581.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants