Changeset 30222 in osm for applications/viewer/jmapviewer
- Timestamp:
- 2014-01-23T21:48:22+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/ScanexTileSource.java
r29757 r30222 5 5 import org.openstreetmap.gui.jmapviewer.OsmMercator; 6 6 7 public class ScanexTileSource extends AbstractTMSTileSource { 7 public class ScanexTileSource extends TMSTileSource { 8 private static final String DEFAULT_URL = "http://maps.kosmosnimki.ru"; 9 private static final int DEFAULT_MAXZOOM = 14; 8 10 private static String API_KEY = "4018C5A9AECAD8868ED5DEB2E41D09F7"; 9 11 … … 30 32 private ScanexLayer Layer = ScanexLayer.IRS; 31 33 32 public ScanexTileSource(String url) {33 super("Scanex " + url, "http://maps.kosmosnimki.ru");34 public ScanexTileSource(String name, String url, int maxZoom) { 35 super(name, url, maxZoom); 34 36 35 37 for (ScanexLayer layer : ScanexLayer.values()) { 36 38 if (url.equalsIgnoreCase(layer.getName())) { 37 39 this.Layer = layer; 40 /* 41 * Override baseUrl and maxZoom in base class. 42 */ 43 this.baseUrl = DEFAULT_URL; 44 if (maxZoom == 0) 45 this.maxZoom = DEFAULT_MAXZOOM; 38 46 break; 39 47 } 40 48 } 41 }42 43 @Override44 public int getMaxZoom() {45 return 14;46 49 } 47 50
Note:
See TracChangeset
for help on using the changeset viewer.