| | 1 | This is a stylesheet for use alongside the builtin "Potlatch 2" style. The lit areas are deliberately ''very'' wide to allow space for other casing-based styles to be used at the same time; the analogy is that light spills out into surrounding areas. This stylesheet highlights lit nodes and ways, and also handles objects which are only lit some of the time. |
| | 2 | |
| | 3 | {{{ |
| | 4 | #!style type="mapcss" |
| | 5 | meta { |
| | 6 | title: "Lit Objects"; |
| | 7 | description: "Supplementary stylesheet which highlights lit and unlit objects by surrounding them with large glows. Works well with the Potlatch 2 base style."; |
| | 8 | author: "achadwick"; |
| | 9 | version: "0.[[revision]]_[[date]]"; |
| | 10 | icon: "lightbulb.png"; |
| | 11 | /* |
| | 12 | Icon from the Silk icon theme by Mark James |
| | 13 | http://www.famfamfam.com/lab/icons/silk/ CC:BY 3.0 |
| | 14 | |
| | 15 | "As an author, I would appreciate a reference to my authorship of |
| | 16 | the Silk icon set contents within a readme file or equivalent |
| | 17 | documentation for the software which includes the set or a subset |
| | 18 | of the icons contained within." |
| | 19 | */ |
| | 20 | } |
| | 21 | |
| | 22 | *[lit]::lighting_glows { prop_x_lighting: "partial" } |
| | 23 | *[lit=yes]::lighting_glows { prop_x_lighting: "yes" } |
| | 24 | *[lit=1]::lighting_glows { prop_x_lighting: "yes" } |
| | 25 | *[lit=true]::lighting_glows { prop_x_lighting: "yes" } |
| | 26 | *[lit="24/7"]::lighting_glows { prop_x_lighting: "yes" } |
| | 27 | *[lit=automatic]::lighting_glows { prop_x_lighting: "yes" } |
| | 28 | *[lit=no]::lighting_glows { prop_x_lighting: "no" } |
| | 29 | *[lit=false]::lighting_glows { prop_x_lighting: "no" } |
| | 30 | *[lit=0]::lighting_glows { prop_x_lighting: "no" } |
| | 31 | |
| | 32 | *[lit]::lighting_glows { |
| | 33 | object-z-index: -1.0; |
| | 34 | } |
| | 35 | |
| | 36 | way[lit]::lighting_glows { |
| | 37 | width: +20; |
| | 38 | opacity: 0.5; |
| | 39 | } |
| | 40 | |
| | 41 | node[lit]::lighting_glows { |
| | 42 | symbol-fill-opacity: 0.5; |
| | 43 | symbol-shape: circle; |
| | 44 | symbol-size: 30; |
| | 45 | } |
| | 46 | |
| | 47 | way[prop("prop_x_lighting")="no"]::lighting_glows { color: #332244 } |
| | 48 | way[prop("prop_x_lighting")="yes"]::lighting_glows { color: #ffbb44 } |
| | 49 | way[prop("prop_x_lighting")="partial"]::lighting_glows { color: #997744 } |
| | 50 | |
| | 51 | /* Currently breaks for unclosed highways. |
| | 52 | area[prop("prop_x_lighting")="no"]::lighting_glows { fill-color: #332244 } |
| | 53 | area[prop("prop_x_lighting")="yes"]::lighting_glows { fill-color: #ffbb44 } |
| | 54 | area[prop("prop_x_lighting")="partial"]::lighting_glows { fill-color: #997744 } |
| | 55 | */ |
| | 56 | |
| | 57 | node[prop("prop_x_lighting")="no"]::lighting_glows { symbol-fill-color: #332244 } |
| | 58 | node[prop("prop_x_lighting")="yes"]::lighting_glows { symbol-fill-color: #ffbb44 } |
| | 59 | node[prop("prop_x_lighting")="partial"]::lighting_glows { symbol-fill-color: #997744 } |
| | 60 | |
| | 61 | }}} |