The easiest way to rotate MapView in Android correctly?

I have an Android activity that displays a Google Maps control through a MapView and extends MapActivity . When I progrmatically rotate a MapView using the mapView.setRotation(some Integer) method instead of actually rotating the image, the entire control rotates, as shown in the screenshot below. What is the easiest way to rotate a map, as is done by default in the Google Maps application.

I use the latest map APIs and Android.

enter image description here

+4
source share
1 answer

Check out the MapsDemo examples at ANDROID_SDK \ add-ons \ addon-google_apis-google_inc_-7 \ samples \ MapsDemo. It has a rotation demo!

+7
source

All Articles