Changeset 32761 in osm
- Timestamp:
- 2016-08-03T14:32:53+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/ScanexTileSource.java
r32760 r32761 49 49 /** IRS by default */ 50 50 private ScanexLayer layer = ScanexLayer.IRS; 51 private TemplatedTMSTileSource TemplateSource = null; 51 52 52 53 /** cached latitude used in {@link #tileYToLat(double, int)} */ … … 68 69 if (maxZoom == 0) 69 70 this.maxZoom = DEFAULT_MAXZOOM; 70 break;71 return; 71 72 } 72 73 } 74 /** If not "irs" or "spot" keyword, then a custom URL. */ 75 TemplatedTMSTileSource.checkUrl(info.getUrl()); 76 this.TemplateSource = new TemplatedTMSTileSource(info); 73 77 } 74 78 … … 76 80 public String getExtension() { 77 81 return "jpeg"; 82 } 83 84 @Override 85 public String getTileUrl(int zoom, int tilex, int tiley) { 86 if (this.TemplateSource != null) 87 return this.TemplateSource.getTileUrl(zoom, tilex, tiley); 88 else 89 return this.getBaseUrl() + getTilePath(zoom, tilex, tiley); 78 90 } 79 91
Note:
See TracChangeset
for help on using the changeset viewer.