Vote count:
1
currently i am rotating google map (api v2) using compass sensor by passing bearing value to CameraPosition.bearing method to rotate map.
public void updateCamera(float bearing) {
if(LocationObj!=null) {
CameraPosition currentPlace = new CameraPosition.Builder(mMap.getCameraPosition())
.zoom(mMap.getCameraPosition().zoom)
.bearing(bearing).build();
mMap.moveCamera(CameraUpdateFactory.newCameraPosition(currentPlace));
}
}
but suddenly when i upgrade my nexus to lollipop (api 21) google map automatically scroll downwards with rotation continuously . this is bug of google play service?
and i can not pass hard-coded value to CameraPosition.Builder target and zoom method. because i want to rotate map as well as zoom and change the position of map.
asked 1 min ago
Rotate Google map v2 issue in Android api 21 Lollipop
Aucun commentaire:
Enregistrer un commentaire