Changeset 11603 in josm


Ignore:
Timestamp:
2017-02-23T09:11:52+01:00 (21 months ago)
Author:
stoecker
Message:

fix best=false parsing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/SyncEditorLayerIndex.groovy

    r11599 r11603  
    424424                    }
    425425                }
    426             }           
     426            }
    427427            def js = getShapes(j)
    428428            if(js.size()) {
     
    543543    static String getQuality(Object e) {
    544544        if (e instanceof ImageryInfo) return e.isBestMarked() ? "eli-best" : null
    545         return e.get("properties").get("best") ? "eli-best" : null
     545        return (e.get("properties").containsKey("best")
     546            && e.get("properties").getBoolean("best")) ? "eli-best" : null
    546547    }
    547548    static String getIcon(Object e) {
Note: See TracChangeset for help on using the changeset viewer.