Changeset 26911 in osm
- Timestamp:
- 2011-10-20T13:23:58+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/TemplatedTMSTileSource.java
r26910 r26911 26 26 public TemplatedTMSTileSource(String name, String url, int minZoom, int maxZoom) { 27 27 super(name, url, minZoom, maxZoom); 28 Matcher m = Pattern.compile(".*"+PATTERN_SWITCH+".*").matcher(url); 28 // Capturing group pattern on switch values 29 Matcher m = Pattern.compile(".*\\{switch:([^}]+)\\}.*").matcher(url); 29 30 if (m.matches()) { 30 31 rand = new Random();
Note:
See TracChangeset
for help on using the changeset viewer.