Ignore:
Timestamp:
2015-05-10T13:26:49+02:00 (10 years ago)
Author:
bastik
Message:

applied #josm10454 - Mapbox "empty" tile (imagery with zoom level > 17) (patch by wiktorn)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/TemplatedTMSTileSource.java

    r30933 r31122  
    22package org.openstreetmap.gui.jmapviewer.tilesources;
    33
     4import java.util.HashMap;
    45import java.util.Map;
    5 import java.util.HashMap;
    66import java.util.Random;
     7import java.util.regex.Matcher;
    78import java.util.regex.Pattern;
    8 import java.util.regex.Matcher;
    99
    1010public class TemplatedTMSTileSource extends TMSTileSource {
     
    2828    };
    2929
    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());
    4434        }
    4535        handleTemplate();
Note: See TracChangeset for help on using the changeset viewer.