我已经查看了几个关于使用android map v2查看3d地图视图的链接和帖子,比如:
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/
我还查看了Trulia,Expedia Hotels和FlightTrack链接,他们做得很好,但不知何故,我找不到展示这一点的方法
我甚至通过这个链接查看了全景视图:https://code.google.com/p/panoramagl-android/wiki/UserGuide
但是我仍然无法使用android map v2实现3d地图视图。
可能是我错过了什么
谁能给我一个简单的点教程或例子,将正确地展示如何在3d视图中显示地图只在v2中,而不是v3或webview
谢谢
发布于 2013-10-15 17:00:18
最后我找到了答案,地图v2中有默认的3d地图,它只在newyork,cannada etc..use这段代码中启用
它完美的工作,并尝试倾斜视图,它可以通过保持两个手指在地图上,并向下拖动两个手指,魔术将会发生,希望它能帮到你
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));https://stackoverflow.com/questions/18316020
复制相似问题