Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

3d map view using android map v2

I have already checked out couple of links and posts made here about 3d map view using android map v2 like:

3D Polyline (or any path) in Google Maps API v2

http://android-developers.blogspot.in/2012/12/new-google-maps-android-api-now-part-of.html

http://googlegeodevelopers.blogspot.com.ar/2012/12/better-maps-in-your-android-apps.html

http://nutiteq.github.io/hellomap3d/

3D maps library for android

I have also checked out Trulia, Expedia Hotels and FlightTrack links they are doing it great but somehow I couldn't find the way to show that

I have even checked out Panorama view through this link: https://code.google.com/p/panoramagl-android/wiki/UserGuide

but still i am unable to implement 3d map view using android map v2

may be im missing out something

can anyone give me a simple to the point tutorial or example which will show properly how to show map in 3d view in v2 only not v3 or in webview

thanks

like image 387
Ari Avatar asked Aug 19 '13 14:08

Ari


People also ask

How do I use Google Maps 3D Viewer?

To enable the Globe View, click the “3D” button. You are now able to zoom in and out on the map and use the compass rose arrows to rotate the map 360 degrees.


1 Answers

at last i found the answer for it , the map v2 have default 3d maps in it and its only enabled in newyork,cannada etc..use this code

it works perfectly and try tilt view and it can be made by keeping two fingers in the map and dragging two fingers downwards and the magic will happen hope it u find it useful

          CameraPosition cameraPosition = new CameraPosition.Builder()
             .target() // Sets the center of the map to
               .zoom()                   // Sets the zoom
             .bearing() // Sets the orientation of the camera to east
             .tilt()    // Sets the tilt of the camera to 30 degrees
             .build();    // Creates a CameraPosition from the builder
         mapp.animateCamera(CameraUpdateFactory.newCameraPosition(
             cameraPosition));
like image 199
user2861869 Avatar answered Sep 23 '22 04:09

user2861869