有没有办法使用Google Maps Lite for Android缩放到边界?我试图使用newLatLngBounds
函数 -
public void moveToArea(GoogleMap map, Polygon polygon){
if(map != null && polygon != null) {
LatLngBounds bounds = null;
LatLngBounds.Builder builder = new LatLngBounds.Builder();
for (LatLng point : polygon.getPoints()) {
builder.include(point);
bounds = builder.build();
}
map.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, Sizes.dpToPx(100, ctx), Sizes.dpToPx(100, ctx), 30));
}
}
但我得到了这个:Google Maps Android API﹕ newLatLngBounds with size is not supported in Lite Mode
。那么,如何在精简模式下缩放到指定的界限?