Select to view content in your preferred language

Rotate MapView

2526
2
Jump to solution
02-23-2016 12:49 PM
HaniDraidi
Frequent Contributor

How can I make the mapview rotation-aware: make the mapview rotate when I rotate my device?

0 Kudos
1 Solution

Accepted Solutions
ArtemisFili
Esri Contributor

The mapView will switch between portrait and landscape once you rotate the device.

If you are looking for something more fluid, then you can use the Map Rotation | ArcGIS for Developers sample which shows how to rotate using a pinch gesture. You can also use LocationDisplayManager.AutoPanMode​ NAVIGATION which will rotate the map to align it with the direction of travel.

View solution in original post

0 Kudos
2 Replies
ArtemisFili
Esri Contributor

The mapView will switch between portrait and landscape once you rotate the device.

If you are looking for something more fluid, then you can use the Map Rotation | ArcGIS for Developers sample which shows how to rotate using a pinch gesture. You can also use LocationDisplayManager.AutoPanMode​ NAVIGATION which will rotate the map to align it with the direction of travel.

0 Kudos
HaniDraidi
Frequent Contributor

Thanks a lot for the valuable input Artemis. It worked perfectly with me!

0 Kudos