Reputation: 141
I am doing osmdroid map project. I am using custom tiles for map. Can anyone tell me how to rotate the custom tiles map?
Upvotes: 6
Views: 6066
Reputation: 202
RotationGestureOverlay mRotationGestureOverlay = new RotationGestureOverlay(context, map);
mRotationGestureOverlay.setEnabled(true);
map.setMultiTouchControls(true);
map.getOverlays().add(mRotationGestureOverlay);
Upvotes: 3
Reputation: 3147
The latest version of osmdroid includes the ability to rotate the maps.
mMapView.setMapOrientation(45.0f);
The latest samples application also includes a rotation gesture overlay for rotating the maps with a two-finger rotate gesture.
Upvotes: 7