Changeset 24985 in osm for applications/viewer/jmapviewer
- Timestamp:
- 2011-01-06T16:05:28+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/OsmFileCacheTileLoader.java
r24967 r24985 203 203 saveTagsToFile(); 204 204 205 byte[] buffer = null;206 205 if ("no-tile".equals(tile.getValue("tile-info"))) 207 206 { 208 207 tile.setError("No tile at this zoom level"); 208 listener.tileLoadingFinished(tile, true); 209 209 } else { 210 b uffer = loadTileInBuffer(urlConn);211 }212 if (buffer != null) {213 tile.loadImage(new ByteArrayInputStream(buffer));214 tile.setLoaded(true);215 listener.tileLoadingFinished(tile, true);216 saveTileToFile(buffer);210 byte[] buffer = loadTileInBuffer(urlConn); 211 if (buffer != null) { 212 tile.loadImage(new ByteArrayInputStream(buffer)); 213 tile.setLoaded(true); 214 listener.tileLoadingFinished(tile, true); 215 saveTileToFile(buffer); 216 } 217 217 } 218 218 } catch (Exception e) {
Note:
See TracChangeset
for help on using the changeset viewer.