onMapReady dort Code setzen Animation Ihrer bestimmten Ort
final LatLngBounds.Builder mapboundbuilder = new LatLngBounds.Builder() Cemera;
mapboundbuilder.include ("IHR LATLNG-PAAR");
LatLngBounds tmpbnd = mapboundbuilder.build();
LatLng center = tmpbnd.getCenter(); LatLng NordEast = Consts.mappointmove (Mitte, 709, 709);
LatLng southWest = Consts.mappointmove(center, 709, 709);
mapboundbuilder.include(southWest);
mapboundbuilder.include(northEast);
LatLngBounds bounds = mapboundbuilder.build();
LatLng center = tmpbnd.getCenter();
LatLng northEast = Consts.mappointmove(center, 709, 709);
LatLng southWest = Consts.mappointmove(center, 709, 709);
mapboundbuilder.include(southWest);
mapboundbuilder.include(northEast);
LatLngBounds bounds = mapboundbuilder.build();
try {
int width, height;
Display display = getWindowManager().getDefaultDisplay();
Point size = new Point();
display.getSize(size);
width = size.x;
height = size.y - 250;
CameraUpdate cu = CameraUpdateFactory.newLatLngBounds(bounds, width, height, 100);
googleMap.animateCamera(cu);
} catch (Exception e) {
e.printStackTrace();
}
2 der Antworten hier sind für die Google-Bibliothek, weil Sie das Tag "openstreetmap" hinzugefügt, die zu breit ist, und in diesem Fall unnötig. –