Update in-tree copy of mapcss file

Signed-off-by: Taylor Smock <taylor.smock@kaart.com>
pull/1/head
Taylor Smock 2020-07-29 15:51:05 -06:00
rodzic 5f634aac7c
commit 21341972f1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 625F6A74A3E4311A
1 zmienionych plików z 9 dodań i 5 usunięć

Wyświetl plik

@ -15,6 +15,10 @@ meta
settings::show_all { settings::show_all {
label: tr("Show possible MapWithAI objects"); label: tr("Show possible MapWithAI objects");
} }
settings::colors {
label: tr("Source Colors");
}
} }
setting::show_new { setting::show_new {
@ -57,28 +61,28 @@ setting::toggle_with_layer {
* Set .mapwithai for all known MapWithAI datasets * * Set .mapwithai for all known MapWithAI datasets *
***************************************************/ ***************************************************/
way["source"][regexp_test(concat("^(", JOSM_pref("mapwithai.mappaint.sources", "microsoft/BuildingFootprints|digitalglobe"), ")$"), tag("source"))][setting("show_new")]:new, way["source"][regexp_test(concat("^(", JOSM_pref("mapwithai.mappaint.sources", "microsoft/.*|digitalglobe|maxar|esri/.*"), ")$"), tag("source"))][setting("show_new")]:new,
way["mapwithai:source"][setting("show_new")] { way["mapwithai:source"][setting("show_new")] {
set .mapwithai; set .mapwithai;
set_color: JOSM_pref(concat("mapwithai.mappaint.", any(tag("source"), tag("mapwithai:source")), "_new"), #FF00FF); set_color: JOSM_pref(concat("mapwithai.mappaint.", any(tag("source"), tag("mapwithai:source")), "_new"), #FF00FF);
} }
way["source"][regexp_test(concat("^(", JOSM_pref("mapwithai.mappaint.sources", "microsoft/BuildingFootprints|digitalglobe"), ")$"), tag("source"))][setting("show_old")]!:new!:modified, way["source"][regexp_test(concat("^(", JOSM_pref("mapwithai.mappaint.sources", "microsoft/.*|digitalglobe|maxar|esri/.*"), ")$"), tag("source"))][setting("show_old")]!:new!:modified,
way["mapwithai:source"][setting("show_old")]!:new!:modified { way["mapwithai:source"][setting("show_old")]!:new!:modified {
set .mapwithai; set .mapwithai;
set_color: JOSM_pref(concat("mapwithai.mappaint.", any(tag("source"), tag("mapwithai:source")), "_old"), #FF00FF); set_color: JOSM_pref(concat("mapwithai.mappaint.", any(tag("source"), tag("mapwithai:source")), "_old"), #FF00FF);
} }
way[regexp_test(concat("^(", JOSM_pref("mapwithai.mappaint.sources", "microsoft/BuildingFootprints|digitalglobe"), ")$"), tag("source"))][setting("show_modified")]:modified, way[regexp_test(concat("^(", JOSM_pref("mapwithai.mappaint.sources", "microsoft/.*|digitalglobe|maxar|esri/.*"), ")$"), tag("source"))][setting("show_modified")]:modified,
way["mapwithai:source"][setting("show_modified")]:modified { way["mapwithai:source"][setting("show_modified")]:modified {
set .mapwithai; set .mapwithai;
set_color: JOSM_pref(concat("mapwithai.mappaint.", any(tag("source"), tag("mapwithai:source")), "_modified"), #FF00FF); set_color: JOSM_pref(concat("mapwithai.mappaint.", any(tag("source"), tag("mapwithai:source")), "_modified"), #FF00FF);
} }
way.mapwithai { way.mapwithai {
color: prop("set_color"); color: any(prop("set_color_programatic"), prop("set_color"));
} }
way.mapwithai:closed2 { way.mapwithai:closed2 {
fill-color: prop("set_color"); fill-color: any(prop("set_color_programatic"), prop("set_color"));
} }
way.mapwithai[setting("decemberHolidayStyle")] { way.mapwithai[setting("decemberHolidayStyle")] {