Changeset 33973 in osm for applications/viewer
- Timestamp:
- 2018-01-02T14:27:50+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
r33971 r33973 274 274 * @return <code>true</code> if it supports "/dirty" mode (tile re-rendering) 275 275 */ 276 default boolean is DirtyMode() {276 default boolean isModTileFeatures() { 277 277 return false; 278 278 } -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/AbstractTMSTileSource.java
r33971 r33973 31 31 private final Map<String, Set<String>> noTileChecksums; 32 32 private final Map<String, String> metadataHeaders; 33 protected boolean dirtyMode;33 protected boolean modTileFeatures; 34 34 protected int tileSize; 35 35 … … 49 49 this.noTileChecksums = info.getNoTileChecksums(); 50 50 this.metadataHeaders = info.getMetadataHeaders(); 51 this. dirtyMode = info.isDirtyMode();51 this.modTileFeatures = info.isModTileFeatures(); 52 52 this.tileSize = info.getTileSize(); 53 53 } … … 239 239 240 240 @Override 241 public boolean is DirtyMode() {242 return dirtyMode;241 public boolean isModTileFeatures() { 242 return modTileFeatures; 243 243 } 244 244 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/OsmTileSource.java
r33971 r33973 27 27 public Mapnik() { 28 28 super("Mapnik", PATTERN, "MAPNIK"); 29 dirtyMode= true;29 modTileFeatures = true; 30 30 } 31 31 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/TileSourceInfo.java
r33971 r33973 41 41 protected Map<String, String> metadataHeaders; 42 42 43 /** supports "/ dirty" mode (tile re-rendering) */44 protected boolean dirtyMode;43 /** supports "/status" and "/dirty" mode (tile re-rendering) */ 44 protected boolean modTileFeatures; 45 45 46 46 /** … … 193 193 194 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 is DirtyMode() {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 set DirtyMode(boolean dirtyMode) {207 this. dirtyMode = dirtyMode;195 * Determines if this imagery supports "/status" and "/dirty" mode (tile re-rendering). 196 * @return <code>true</code> if it supports "/status" and "/dirty" mode (tile re-rendering) 197 */ 198 public final boolean isModTileFeatures() { 199 return modTileFeatures; 200 } 201 202 /** 203 * Sets whether this imagery supports "/status" and "/dirty" mode (tile re-rendering). 204 * @param modTileFeatures <code>true</code> if it supports "/status" and "/dirty" mode (tile re-rendering) 205 */ 206 public final void setModTileFeatures(boolean modTileFeatures) { 207 this.modTileFeatures = modTileFeatures; 208 208 } 209 209 }
Note:
See TracChangeset
for help on using the changeset viewer.