| 57 | | way[source=~/^(?i)(microsoft.*|digitalglobe|maxar)$/][setting("show_old")]!:new!:modified, |
| 58 | | way[source=~/^(?i)(microsoft.*|digitalglobe|maxar)$/][setting("show_new")]:new, |
| 59 | | way[source=~/^(?i)(microsoft.*|digitalglobe|maxar)$/][setting("show_modified")]:modified { |
| | 57 | /************************************ |
| | 58 | * End Settings for the paint style * |
| | 59 | ************************************/ |
| | 60 | |
| | 61 | /*************************************************** |
| | 62 | * Set .mapwithai for all known MapWithAI datasets * |
| | 63 | ***************************************************/ |
| | 64 | |
| | 65 | way["source"][regexp_test(concat("^(", JOSM_pref("mapwithai.mappaint.sources", "microsoft/BuildingFootprints|digitalglobe"), ")$"), tag("source"))][setting("show_new")]:new, |
| | 66 | way["mapwithai:source"][setting("show_new")] { |
| | 68 | set_color: JOSM_pref(concat("mapwithai.mappaint.", any(tag("source"), tag("mapwithai:source")), "_new"), #FF00FF); |
| | 69 | } |
| | 70 | way["source"][regexp_test(concat("^(", JOSM_pref("mapwithai.mappaint.sources", "microsoft/BuildingFootprints|digitalglobe"), ")$"), tag("source"))][setting("show_old")]!:new!:modified, |
| | 71 | way["mapwithai:source"][setting("show_old")]!:new!:modified { |
| | 72 | set .mapwithai; |
| | 73 | set_color: JOSM_pref(concat("mapwithai.mappaint.", any(tag("source"), tag("mapwithai:source")), "_old"), #FF00FF); |
| | 74 | } |
| | 75 | way[regexp_test(concat("^(", JOSM_pref("mapwithai.mappaint.sources", "microsoft/BuildingFootprints|digitalglobe"), ")$"), tag("source"))][setting("show_modified")]:modified, |
| | 76 | way["mapwithai:source"][setting("show_modified")]:modified { |
| | 77 | set .mapwithai; |
| | 78 | set_color: JOSM_pref(concat("mapwithai.mappaint.", any(tag("source"), tag("mapwithai:source")), "_modified"), #FF00FF); |