Changeset 31122 in osm for applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/TemplatedTMSTileSource.java
- Timestamp:
- 2015-05-10T13:26:49+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/TemplatedTMSTileSource.java
r30933 r31122 2 2 package org.openstreetmap.gui.jmapviewer.tilesources; 3 3 4 import java.util.HashMap; 4 5 import java.util.Map; 5 import java.util.HashMap;6 6 import java.util.Random; 7 import java.util.regex.Matcher; 7 8 import java.util.regex.Pattern; 8 import java.util.regex.Matcher;9 9 10 10 public class TemplatedTMSTileSource extends TMSTileSource { … … 28 28 }; 29 29 30 public TemplatedTMSTileSource(String name, String url, String id, int maxZoom) { 31 super(name, url, id, maxZoom); 32 handleTemplate(); 33 } 34 35 public TemplatedTMSTileSource(String name, String url, String id, int minZoom, int maxZoom) { 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); 30 public TemplatedTMSTileSource(TileSourceInfo info) { 31 super(info); 32 if (info.getCookies() != null) { 33 headers.put(COOKIE_HEADER, info.getCookies()); 44 34 } 45 35 handleTemplate();
Note:
See TracChangeset
for help on using the changeset viewer.