How can I make the mapview rotation-aware: make the mapview rotate when I rotate my device?
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.
Thanks a lot for the valuable input Artemis. It worked perfectly with me!
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.