Changeset 13758 in osm
- Timestamp:
- 2009-02-16T15:22:25+01:00 (16 years ago)
- Location:
- applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/OsmFileCacheTileLoader.java
r13036 r13758 280 280 } 281 281 282 protected File getTileFile() throws IOException{282 protected File getTileFile() { 283 283 return new File(tileCacheDir + "/" + tile.getZoom() + "_" + tile.getXtile() + "_" + tile.getYtile() + "." 284 284 + source.getTileType()); -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/Tile.java
r11783 r13758 112 112 int ytile_low = ytile >> zoomDiff; 113 113 int factor = (1 << zoomDiff); 114 double scale = (double)factor;114 double scale = factor; 115 115 AffineTransform at = new AffineTransform(); 116 116 int translate_x = (xtile % factor) * SIZE; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/TileSource.java
r11783 r13758 14 14 * Specifies the different mechanisms for detecting updated tiles 15 15 * respectively only download newer tiles than those stored locally. 16 * 16 * 17 17 * <ul> 18 18 * <li>{@link #IfNoneMatch} Server provides ETag header entry for all tiles … … 31 31 * mechanisms.</li> 32 32 * </ul> 33 * 33 * 34 34 */ 35 35 public enum TileUpdate { 36 36 IfNoneMatch, ETag, IfModifiedSince, LastModified, None 37 } ;37 } 38 38 39 39 /**
Note:
See TracChangeset
for help on using the changeset viewer.