Changeset 12007 in josm


Ignore:
Timestamp:
2017-04-26T13:30:32+02:00 (2 years ago)
Author:
stoecker
Message:

don't report zoom differences when the entry is a wms mirror

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/SyncEditorLayerIndex.groovy

    r11983 r12007  
    724724                    r += p.getString()
    725725            }
    726            
    727726        }
    728727        return r ? r : []
     
    761760    static Integer getMinZoom(Object e) {
    762761        if (e instanceof ImageryInfo) {
     762            if("wms".equals(getType(e)) && e.getName() =~ / mirror/)
     763                return null;
    763764            int mz = e.getMinZoom()
    764765            return mz == 0 ? null : mz
     
    771772    static Integer getMaxZoom(Object e) {
    772773        if (e instanceof ImageryInfo) {
     774            if("wms".equals(getType(e)) && e.getName() =~ / mirror/)
     775                return null;
    773776            int mz = e.getMaxZoom()
    774777            return mz == 0 ? null : mz
Note: See TracChangeset for help on using the changeset viewer.