Changeset 26235 in osm for applications/viewer/jmapviewer/src/org/openstreetmap
- Timestamp:
- 2011-07-01T09:30:04+02:00 (13 years ago)
- Location:
- applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/TMSTileSource.java
r25369 r26235 3 3 4 4 public class TMSTileSource extends AbstractOsmTileSource { 5 private int maxZoom; 5 protected int maxZoom; 6 protected int minZoom = 0; 6 7 7 8 public TMSTileSource(String name, String url, int maxZoom) { 8 9 super(name, url); 9 10 this.maxZoom = maxZoom; 11 } 12 13 public TMSTileSource(String name, String url, int minZoom, int maxZoom) { 14 super(name, url); 15 this.minZoom = minZoom; 16 this.maxZoom = maxZoom; 17 } 18 19 @Override 20 public int getMinZoom() { 21 return (minZoom == 0) ? super.getMinZoom() : minZoom; 10 22 } 11 23 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/TemplatedTMSTileSource.java
r25694 r26235 2 2 3 3 4 public class TemplatedTMSTileSource extends AbstractOsmTileSource { 5 private int maxZoom; 4 public class TemplatedTMSTileSource extends TMSTileSource { 5 public TemplatedTMSTileSource(String name, String url, int maxZoom) { 6 super(name, url, maxZoom); 7 } 6 8 7 public TemplatedTMSTileSource(String name, String url, int maxZoom) { 8 super(name, url); 9 this.maxZoom = maxZoom; 9 public TemplatedTMSTileSource(String name, String url, int minZoom, int maxZoom) { 10 super(name, url, minZoom, maxZoom); 10 11 } 11 12 … … 19 20 20 21 } 21 22 @Override23 public int getMaxZoom() {24 return (maxZoom == 0) ? super.getMaxZoom() : maxZoom;25 }26 27 public TileUpdate getTileUpdate() {28 return TileUpdate.IfNoneMatch;29 }30 22 }
Note:
See TracChangeset
for help on using the changeset viewer.