我正在开发 google maps v2 android 应用程序,我致力于添加自定义 map 图 block ,但我的问题是:是否有任何可能的方法可以在我的自定义 map 图 block 上添加 3d 建筑模型并在应用程序中使用它,以便用户可以在我的应用程序中以 3d View 查看建筑物吗?
最佳答案
使用谷歌地图,我们可以通过添加这一行来添加谷歌地图 3d View
mMap.setBuildingsEnabled(true);
例如:
并将缩放级别设置为 20,这样您就可以看到 3d 中的建筑物。
// Construct a *CameraPosition* focusing on Mountain View and animate the camera to that position.
CameraPosition cameraPosition = new CameraPosition.Builder()
.target(SYDNEY)
.zoom(21).bearing(67).tilt(45).build();
map.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));
供您引用
https://developers.google.com/maps/documentation/android-api/views
关于android - 在 Google map v2 中添加 3D 建筑物,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20710892/