Use the cache from the map.
Signed-off-by: Keith Packard <keithp@keithp.com>
public class AltosUIMapPreloadNew extends AltosUIFrame implements ActionListener, ItemListener, AltosLaunchSiteListener, AltosMapLoaderListener {
AltosUIFrame owner;
AltosUIMapNew map;
public class AltosUIMapPreloadNew extends AltosUIFrame implements ActionListener, ItemListener, AltosLaunchSiteListener, AltosMapLoaderListener {
AltosUIFrame owner;
AltosUIMapNew map;
AltosUIMapPos lat;
AltosUIMapPos lon;
AltosUIMapPos lat;
AltosUIMapPos lon;
pane.setLayout(new GridBagLayout());
map = new AltosUIMapNew();
pane.setLayout(new GridBagLayout());
map = new AltosUIMapNew();
- cache = new AltosMapCache(map);
- loader = new AltosMapLoader(map.map, cache, this);
+ loader = new AltosMapLoader(map.map, this);
c.fill = GridBagConstraints.BOTH;
c.anchor = GridBagConstraints.CENTER;
c.fill = GridBagConstraints.BOTH;
c.anchor = GridBagConstraints.CENTER;