Changeset 13474 in josm


Ignore:
Timestamp:
2018-02-28T18:17:13+01:00 (4 months ago)
Author:
stoecker
Message:

fix #16021 - imagery sync - support min-zoom/max-zoom also for WMS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/SyncEditorLayerIndex.groovy

    r12266 r13474  
    212212        String res = offset + "<type>$t</type>\n"
    213213        res += offset + "<url>${cdata(getUrl(entry))}</url>\n"
    214         if(t == "tms") {
    215             if(getMinZoom(entry) != null)
    216                 res += offset + "<min-zoom>${getMinZoom(entry)}</min-zoom>\n"
    217             if(getMaxZoom(entry) != null)
    218                 res += offset + "<max-zoom>${getMaxZoom(entry)}</max-zoom>\n"
    219         } else if (t == "wms") {
     214        if(getMinZoom(entry) != null)
     215            res += offset + "<min-zoom>${getMinZoom(entry)}</min-zoom>\n"
     216        if(getMaxZoom(entry) != null)
     217            res += offset + "<max-zoom>${getMaxZoom(entry)}</max-zoom>\n"
     218        if (t == "tms") {
    220219            def p = getProjections(entry)
    221220            if (p) {
Note: See TracChangeset for help on using the changeset viewer.