KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to rotate map view when the user changes his direction ie if user takes left and right turns it should rotate accordingly.I am rotating map view basing on current location bearing it is rotating correctly but it was jittering.Here is the code which i used for rotation public void onGPSUpdate(Location location) { boolean check=isBetterLocation(location, tempLoc); tempLoc=location; if(check){ showLocation(location); } } isBetterLocation method is copied from google docs for better location. private void showLocation(Location loc){ mRotateView.rotate(-loc.getBearing()); } I registered a location updates with time interval 0 and min distance of 10 for frequent updates.Here my problem is map view is jittering always,can any one tell me how can I smoothly rotate map view like other applications like waze maps do.Thanks...
Tags (comma-separated)
Save Edits
Cancel