Changeset 13997 in josm for trunk/scripts
- Timestamp:
- 2018-07-03T19:46:22+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/SyncEditorLayerIndex.groovy
r13961 r13997 492 492 Integer eMinZoom = getMinZoom(e) 493 493 Integer jMinZoom = getMinZoom(j) 494 /* dont warn for entries copied from the base of the mirror */ 495 if(eMinZoom == null && "wms".equals(getType(j)) && j.getName() =~ / mirror/) 496 jMinZoom = null; 494 497 if (eMinZoom != jMinZoom && !(eMinZoom == 0 && jMinZoom == null)) { 495 498 myprintln "* Minzoom differs (${eMinZoom} != ${jMinZoom}): ${getDescription(j)}" … … 497 500 Integer eMaxZoom = getMaxZoom(e) 498 501 Integer jMaxZoom = getMaxZoom(j) 502 /* dont warn for entries copied from the base of the mirror */ 503 if(eMaxZoom == null && "wms".equals(getType(j)) && j.getName() =~ / mirror/) 504 jMaxZoom = null; 499 505 if (eMaxZoom != jMaxZoom) { 500 506 myprintln "* Maxzoom differs (${eMaxZoom} != ${jMaxZoom}): ${getDescription(j)}" … … 1019 1025 static Integer getMinZoom(Object e) { 1020 1026 if (e instanceof ImageryInfo) { 1021 if("wms".equals(getType(e)) && e.getName() =~ / mirror/)1022 return null1023 1027 int mz = e.getMinZoom() 1024 1028 return mz == 0 ? null : mz … … 1031 1035 static Integer getMaxZoom(Object e) { 1032 1036 if (e instanceof ImageryInfo) { 1033 if("wms".equals(getType(e)) && e.getName() =~ / mirror/)1034 return null1035 1037 int mz = e.getMaxZoom() 1036 1038 return mz == 0 ? null : mz
Note:
See TracChangeset
for help on using the changeset viewer.