What's New - SAP Sailing Analytics
+
June 2019
+-
+
- The combined wind arrow on the top left of the map now switches through three states: + wind visualization off, wind visualization on, wind visualization on with color. +
May 2019
- Improvements for handicap regattas: when finishing times have been entered, leading to finish line diff --git a/java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/client/shared/racemap/CombinedWindPanel.java b/java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/client/shared/racemap/CombinedWindPanel.java index 1c8fba2ecae..7eb0e6ad87b 100644 --- a/java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/client/shared/racemap/CombinedWindPanel.java +++ b/java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/client/shared/racemap/CombinedWindPanel.java @@ -44,13 +44,16 @@ public class CombinedWindPanel extends FlowPanel { @Override public void onClick(ClickEvent event) { RaceMapSettings oldRaceMapSettings = map.getSettings(); - boolean newShowStreamletsOverlaySetting = !oldRaceMapSettings.isShowWindStreamletOverlay(); - // TODO three states: on / colored / off + // when off, turn on; when on and no color, turn on color; when on with color, turn off + boolean newShowStreamletsOverlaySetting = oldRaceMapSettings.isShowWindStreamletOverlay() ? + oldRaceMapSettings.isShowWindStreamletColors() ? false : true : true; + boolean newShowWindStreamletColors = oldRaceMapSettings.isShowWindStreamletOverlay() ? !oldRaceMapSettings.isShowWindStreamletColors() : + false; final RaceMapSettings newRaceMapSettings = new RaceMapSettings(oldRaceMapSettings.getZoomSettings(), oldRaceMapSettings.getHelpLinesSettings(), oldRaceMapSettings.getTransparentHoverlines(), oldRaceMapSettings.getHoverlineStrokeWeight(), oldRaceMapSettings.getTailLengthInMilliseconds(), oldRaceMapSettings.isWindUp(), oldRaceMapSettings.getBuoyZoneRadius(), oldRaceMapSettings.isShowOnlySelectedCompetitors(), - oldRaceMapSettings.isShowSelectedCompetitorsInfo(), oldRaceMapSettings.isShowWindStreamletColors(), + oldRaceMapSettings.isShowSelectedCompetitorsInfo(), newShowWindStreamletColors, newShowStreamletsOverlaySetting, oldRaceMapSettings.isShowSimulationOverlay(), oldRaceMapSettings.isShowMapControls(), oldRaceMapSettings.getManeuverTypesToShow(), oldRaceMapSettings.isShowDouglasPeuckerPoints(), oldRaceMapSettings.isShowEstimatedDuration(),