最佳答案
在 Google Play Services 9.4 版本中(终于!)添加了限制相机功能——您可以调用 setLatLngBoundsForCameraTarget(LatLngBounds bounds)
设置允许的平移区域。
// Create a LatLngBounds that includes the city of Adelaide in Australia.
final 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);
您可以在文档中找到详尽的解释:Restricting the user's panning to a given area和 sample activity in GitHub .
关于android - 限制滚动和缩放 Google Maps Android API v2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14977078/