Changes between Version 13 and Version 14 of Styles/MapWithAI


Ignore:
Timestamp:
2020-05-13T15:55:11+02:00 (6 years ago)
Author:
taylor.smock
Comment:

Allow users to change colours for different sources (i.e., third party sources)

Legend:

Unmodified
Added
Removed
Modified
  • Styles/MapWithAI

    v13 v14  
    1414}
    1515
    16 /***************************************************
    17  * Set .mapwithai for all known MapWithAI datasets *
    18  ***************************************************/
     16/********************************
     17 * Settings for the paint style *
     18 ********************************/
    1919@supports (min-josm-version: 15289) {
    2020    settings::show_all {
     
    5555}
    5656
    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
     65way["source"][regexp_test(concat("^(", JOSM_pref("mapwithai.mappaint.sources", "microsoft/BuildingFootprints|digitalglobe"), ")$"), tag("source"))][setting("show_new")]:new,
     66way["mapwithai:source"][setting("show_new")] {
    6067    set .mapwithai;
     68    set_color: JOSM_pref(concat("mapwithai.mappaint.", any(tag("source"), tag("mapwithai:source")), "_new"), #FF00FF);
     69}
     70way["source"][regexp_test(concat("^(", JOSM_pref("mapwithai.mappaint.sources", "microsoft/BuildingFootprints|digitalglobe"), ")$"), tag("source"))][setting("show_old")]!:new!:modified,
     71way["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}
     75way[regexp_test(concat("^(", JOSM_pref("mapwithai.mappaint.sources", "microsoft/BuildingFootprints|digitalglobe"), ")$"), tag("source"))][setting("show_modified")]:modified,
     76way["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);
    6179}
    6280
    6381way.mapwithai {
    64     color: mapwithai#FF00FF;
     82    color: prop("set_color");
    6583}
    6684
    6785way.mapwithai:closed2 {
    68     fill-color: mapwithai#FF00FF;
     86    fill-color: prop("set_color");
    6987}
    7088
     
    7391}
    7492
     93
     94/*****************
     95 * Holiday Theme *
     96 *****************/
    7597way.mapwithai[is_prop_set("holidayColour") && prop("holidayColour")] {
    7698    color: mapwithaiDecemberGreen#00FF00;
     
    94116    dashes: 0;
    95117}
     118/*********************
     119 * End Holiday Theme *
     120 *********************/
    96121}}}