17 | | *******************************************/ |
18 | | way[source=~/^(?i)(microsoft|digitalglobe)$/] { |
| 17 | ***************************************************/ |
| 18 | settings::show_all { |
| 19 | label: tr("Show possible MapWithAI objects"); |
| 20 | } |
| 21 | setting::show_new { |
| 22 | type: boolean; |
| 23 | label: tr("New"); |
| 24 | default: true; |
| 25 | group: "show_all"; |
| 26 | } |
| 27 | setting::show_modified { |
| 28 | type: boolean; |
| 29 | label: tr("Modified"); |
| 30 | default: false; |
| 31 | group: "show_all"; |
| 32 | } |
| 33 | setting::show_old { |
| 34 | type: boolean; |
| 35 | label: tr("Pre-existing"); |
| 36 | default: false; |
| 37 | group: "show_all"; |
| 38 | } |
| 39 | /* This requires support in the plugin (will read key for mapwithai.mapcss:boolean:toggle_with_layer) */ |
| 40 | setting::toggle_with_layer { |
| 41 | type: boolean; |
| 42 | label: tr("Toggle paintstyle on/off with layer"); |
| 43 | default: false; |
| 44 | } |
| 45 | |
| 46 | way[source=~/^(?i)(microsoft|digitalglobe)$/][setting("show_old")]!:new!:modified, |
| 47 | way[source=~/^(?i)(microsoft|digitalglobe)$/][setting("show_new")]:new, |
| 48 | way[source=~/^(?i)(microsoft|digitalglobe)$/][setting("show_modified")]:modified { |