mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-05 20:03:52 +00:00
fixed initialization of RaceMapResources which can now provide icons without map API having finished loading
This commit is contained in:
1 parent
3f34b89487
commit
e0e58c79e9
1 file changed
+1
-1
+1
-1
@@ -166,6 +166,7 @@ public class RaceMap implements TimeListener, CompetitorSelectionChangeListener,
|
||||
this.sailingService = sailingService;
|
||||
this.errorReporter = errorReporter;
|
||||
this.timer = timer;
|
||||
imageResources = new RaceMapResources();
|
||||
tails = new HashMap<CompetitorDAO, Polyline>();
|
||||
firstShownFix = new HashMap<CompetitorDAO, Integer>();
|
||||
lastShownFix = new HashMap<CompetitorDAO, Integer>();
|
||||
@@ -203,7 +204,6 @@ public class RaceMap implements TimeListener, CompetitorSelectionChangeListener,
|
||||
map.setContinuousZoom(true);
|
||||
parentPanel.add(map);
|
||||
map.setSize("100%", "100%");
|
||||
imageResources = new RaceMapResources();
|
||||
map.addMapZoomEndHandler(new MapZoomEndHandler() {
|
||||
@Override
|
||||
public void onZoomEnd(MapZoomEndEvent event) {
|
||||
|
||||
Reference in new issue
Block a user