I am developing an Android application with google maps.
Displaying maps in android I followed the Android documentation. I 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 an image of the tilt view map. left side map is normal to view right-side map is tilt view.
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));
You don't need to write any code just write one line in your xml part(activitymap.xml)
map:cameraTilt="60"
adjust the value by your own wish
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With