mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-15 14:56:41 +00:00
bug6098: comment changes only
This commit is contained in:
1 parent
17f7f1a88c
commit
8dffb6b626
1 file changed
+5
-1
+5
-1
@@ -2550,7 +2550,7 @@ public class RaceMap extends AbstractCompositeComponent<RaceMapSettings> impleme
|
||||
if (newZoomLevel != map.getZoom()) {
|
||||
// distinguish between zoom-in and zoom-out, because the sequence of panTo() and setZoom()
|
||||
// appears different on the screen due to map-animations
|
||||
// following sequences keep the selected boats allways visible:
|
||||
// following sequences keep the selected boats always visible:
|
||||
// zoom-in : 1. panTo(), 2. setZoom()
|
||||
// zoom-out: 1. setZoom(), 2. panTo()
|
||||
autoZoomIn = newZoomLevel > map.getZoom();
|
||||
@@ -3796,6 +3796,10 @@ public class RaceMap extends AbstractCompositeComponent<RaceMapSettings> impleme
|
||||
this.addVideoToRaceButton.setVisible(visible);
|
||||
}
|
||||
|
||||
/**
|
||||
* Based on the map's {@link MapWidget#getBounds()} which may be more than what's actually visible because it's the smallest
|
||||
* NW/SE lat/lng "rectangle" that contains the possibly rotated visible area.
|
||||
*/
|
||||
private Distance getMapDiagonalVisibleDistance() {
|
||||
return coordinateSystem.getPosition(currentMapBounds.getSouthWest()).getDistance(coordinateSystem.getPosition(currentMapBounds.getNorthEast())); // FIXME bug6098: MapWidget.getBounds() is no longer what we can use, with rotated VECTOR maps
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user