Hello,
how do i rotate the mapview so that the driving path always become straight to the user(like in google maps)
in esri android and ios
if its from current location probably can use sensor event? then
mMapView.setViewpointRotationAsync([currentHeading_from_sensor_event]); Not sure if this is the scenario you are facing though..
Checkout this sample. Look for AutoPanMode.Navigation in the code:
case 3: // Start Navigation Mode // This mode is best suited for in-vehicle navigation. Map.this.mLocationDisplay.setAutoPanMode(LocationDisplay.AutoPanMode.NAVIGATION); if (!Map.this.mLocationDisplay.isStarted()) Map.this.mLocationDisplay.startAsync(); break;
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.