diff options
| author | Keith Packard <keithp@keithp.com> | 2014-05-27 10:58:53 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2014-05-27 10:58:53 -0700 | 
| commit | db08e99361d82de63058d3388823f486e5fc9839 (patch) | |
| tree | 3c40071062be4e13b1a348ec1ae42ff237e9239e /altosuilib/AltosSiteMapPreload.java | |
| parent | 535271f7312f1a88af11d4f1dbf3d405b660f26c (diff) | |
altosuilib: Add multiple zoom levels and content types to map
Also changes the file format for hybrid, satellite and terrain maps to
jpg to save disk space.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosuilib/AltosSiteMapPreload.java')
| -rw-r--r-- | altosuilib/AltosSiteMapPreload.java | 8 | 
1 files changed, 5 insertions, 3 deletions
diff --git a/altosuilib/AltosSiteMapPreload.java b/altosuilib/AltosSiteMapPreload.java index baa7fc37..107b09f8 100644 --- a/altosuilib/AltosSiteMapPreload.java +++ b/altosuilib/AltosSiteMapPreload.java @@ -265,9 +265,10 @@ public class AltosSiteMapPreload extends AltosUIDialog implements ActionListener  		public void run() {  			for (int y = -map.radius; y <= map.radius; y++) {  				for (int x = -map.radius; x <= map.radius; x++) { -					String	pngfile; -					pngfile = map.initMap(new Point(x,y)); -					SwingUtilities.invokeLater(new updatePbar(x, y, pngfile)); +					File	pngfile; +					pngfile = map.init_map(new Point(x,y), +							       AltosSiteMap.load_mode_cached|AltosSiteMap.load_mode_uncached); +					SwingUtilities.invokeLater(new updatePbar(x, y, pngfile.toString()));  				}  			}  		} @@ -305,6 +306,7 @@ public class AltosSiteMapPreload extends AltosUIDialog implements ActionListener  				try {  					final double	latitude = lat.get_value();  					final double	longitude = lon.get_value(); +					map.clear_base_location();  					map.setBaseLocation(latitude,longitude);  					map.draw_circle(latitude,longitude);  					loading = true;  | 
