How can I show tilt map in Android

De openkb
Aller à : Navigation, rechercher

Sommaire

Questions

Hi I am developing an Android application with google maps.

Displaying maps in android I followed the Android documentation. Successfully got the mapview in my application. But I need to show the map in Tilt view . I did not find any map example using " Tilt view ". Please suggest how to get the tilt view in Android.

I added image of tilt view map. left side map is normal view right side map is tilt view.<img src="https://i.stack.imgur.com/H3gND.jpg" alt="enter image description here">

Answers

https://developers.google.com/maps/documentation/android/views?hl=en https://developers.google.com/maps/documentation/android/views?hl=en

CameraPosition cameraPosition = new CameraPosition.Builder().
                    target(YourLocationPoint).
                    tilt(60).
                    zoom(15).
                    bearing(0).
                    build();

myMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));

Source

License : cc by-sa 3.0

http://stackoverflow.com/questions/10779514/how-can-i-show-tilt-map-in-android

Related

Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Outils