Changeset 33971 in osm for applications/viewer
- Timestamp:
- 2018-01-01T17:48:08+01:00 (7 years ago)
- Location:
- applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/TileSource.java
r33209 r33971 270 270 String getServerCRS(); 271 271 272 /** 273 * Determines if this imagery supports "/dirty" mode (tile re-rendering). 274 * @return <code>true</code> if it supports "/dirty" mode (tile re-rendering) 275 */ 276 default boolean isDirtyMode() { 277 return false; 278 } 272 279 } -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/AbstractTMSTileSource.java
r32113 r33971 31 31 private final Map<String, Set<String>> noTileChecksums; 32 32 private final Map<String, String> metadataHeaders; 33 protected boolean dirtyMode; 33 34 protected int tileSize; 34 35 … … 48 49 this.noTileChecksums = info.getNoTileChecksums(); 49 50 this.metadataHeaders = info.getMetadataHeaders(); 51 this.dirtyMode = info.isDirtyMode(); 50 52 this.tileSize = info.getTileSize(); 51 53 } … … 236 238 } 237 239 240 @Override 241 public boolean isDirtyMode() { 242 return dirtyMode; 243 } 244 238 245 private static int getTileMax(int zoom) { 239 246 return (int) Math.pow(2.0, zoom) - 1; -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/OsmTileSource.java
r33334 r33971 27 27 public Mapnik() { 28 28 super("Mapnik", PATTERN, "MAPNIK"); 29 dirtyMode = true; 29 30 } 30 31 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/TileSourceInfo.java
r32051 r33971 41 41 protected Map<String, String> metadataHeaders; 42 42 43 /** supports "/dirty" mode (tile re-rendering) */ 44 protected boolean dirtyMode; 45 43 46 /** 44 47 * Create a TileSourceInfo class … … 188 191 this.id = id; 189 192 } 193 194 /** 195 * Determines if this imagery supports "/dirty" mode (tile re-rendering). 196 * @return <code>true</code> if it supports "/dirty" mode (tile re-rendering) 197 */ 198 public final boolean isDirtyMode() { 199 return dirtyMode; 200 } 201 202 /** 203 * Sets whether this imagery supports "/dirty" mode (tile re-rendering). 204 * @param dirtyMode <code>true</code> if it supports "/dirty" mode (tile re-rendering) 205 */ 206 public final void setDirtyMode(boolean dirtyMode) { 207 this.dirtyMode = dirtyMode; 208 } 190 209 }
Note:
See TracChangeset
for help on using the changeset viewer.