Changed zoom behavior when BOATS and TAILS are selected

This commit is contained in:
Lennart Hensler committed 2012-02-09 12:18:06 +01:00
1 parent 737a71f8b2
commit 39d78eafae
1 file changed
+1 -6
@@ -40,12 +40,7 @@ public class RaceMapZoomSettings {
LatLngBounds newBounds = null;
if (typesToConsiderOnZoom != null) {
for (ZoomTypes type : typesToConsiderOnZoom) {
//Skip the calculation of the boat bounds, if the list contains TAILS.
//That's because the tails already contain the boats
if (type == ZoomTypes.BOATS && typesToConsiderOnZoom.contains(ZoomTypes.TAILS)) {
continue;
}
//Set the for selected attribute for the corresponding calculaters
//Set the forSelected attribute for the corresponding calculaters
if (type.calculater instanceof LatLngBoundsCalculaterForSelected) {
((LatLngBoundsCalculaterForSelected) type.calculater)
.setZoomOnlyToSelectedCompetitors(zoomToSelectedCompetitors);