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