Palanichamy
Palanichamy

Reputation: 141

Osmdroid map rotation

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

Answers (2)

Golnar sheikh bahaie
Golnar sheikh bahaie

Reputation: 202

RotationGestureOverlay mRotationGestureOverlay = new RotationGestureOverlay(context, map);
mRotationGestureOverlay.setEnabled(true);
map.setMultiTouchControls(true);
map.getOverlays().add(mRotationGestureOverlay);

Upvotes: 3

kurtzmarc
kurtzmarc

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

Related Questions