【发布时间】:2018-04-05 00:35:32
【问题描述】:
我的项目是为游客制作一个菲律宾锡基霍尔岛的地图应用程序,我希望该应用程序只显示该岛。我能找到的唯一坐标是9.1999° N, 123.5952° E。我不知道如何实现这些坐标
private GoogleMap mMap;
// Create a LatLngBounds that includes the city of Adelaide in Australia.
private LatLngBounds ADELAIDE = new LatLngBounds(
new LatLng(-35.0, 138.58), new LatLng(-34.9, 138.61));
// Constrain the camera target to the Adelaide bounds.
mMap.setLatLngBoundsForCameraTarget(ADELAIDE);
【问题讨论】:
-
是否需要支持放大(从约束中)?
标签: android google-maps android-studio-3.0