示例#1
0
 private void panToNewLocation() {
   if (!map.getBounds().contains(newLocationMarker.getLatLng())) {
     map.panTo(newLocationMarker.getLatLng());
   }
 }
示例#2
0
 private void onLocationSelected(LocationDTO location) {
   if (location != null && location.hasCoordinates()) {
     map.panTo(new LatLng(location.getLatitude(), location.getLongitude()));
   }
 }