mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-03 10:53:49 +00:00
Changed zoom behavior when BOATS and TAILS are selected
This commit is contained in:
1 parent
737a71f8b2
commit
39d78eafae
1 file changed
+1
-6
+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);
|
||||
|
||||
Reference in new issue
Block a user