Changeset 30933 in osm for applications/viewer/jmapviewer
- Timestamp:
- 2015-02-02T21:29:41+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/TemplatedTMSTileSource.java
r30900 r30933 14 14 private Map<String, String> headers = new HashMap<>(); 15 15 16 public static final String COOKIE_HEADER = "Cookie"; 16 17 public static final String PATTERN_ZOOM = "\\{(?:(\\d+)-)?z(?:oom)?([+-]\\d+)?\\}"; 17 18 public static final String PATTERN_X = "\\{x\\}"; … … 34 35 public TemplatedTMSTileSource(String name, String url, String id, int minZoom, int maxZoom) { 35 36 super(name, url, id, minZoom, maxZoom); 37 handleTemplate(); 38 } 39 40 public TemplatedTMSTileSource(String name, String url, String id, int minZoom, int maxZoom, String cookies) { 41 super(name, url, id, minZoom, maxZoom); 42 if (cookies != null) { 43 headers.put(COOKIE_HEADER, cookies); 44 } 36 45 handleTemplate(); 37 46 }
Note:
See TracChangeset
for help on using the changeset viewer.