fixed initialization of RaceMapResources which can now provide icons without map API having finished loading

This commit is contained in:
Axel Uhl committed 2012-01-17 23:48:48 +01:00
1 parent 3f34b89487
commit e0e58c79e9
1 file changed
+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) {