wiki:Styles/LitObjects

Pretty icon for the list Lit Objects

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.

meta {
    title: "Lit Objects";
    description: "Supplementary stylesheet which highlights lit and unlit objects by surrounding them with large glows. Works well with the Potlatch 2 base style.";
    author: "achadwick";
    version: "0.3_2015-06-02";
    icon: "lightbulb.png";
    /*
        Icon from the Silk icon theme by Mark James
        http://www.famfamfam.com/lab/icons/silk/ CC:BY 3.0

           "As an author, I would appreciate a reference to my authorship of
            the Silk icon set contents within a readme file or equivalent
            documentation for the software which includes the set or a subset
            of the icons contained within."
    */
}

*[lit]::lighting_glows            { prop_x_lighting: "partial" }
*[lit=yes]::lighting_glows        { prop_x_lighting: "yes" }
*[lit=1]::lighting_glows          { prop_x_lighting: "yes" }
*[lit=true]::lighting_glows       { prop_x_lighting: "yes" }
*[lit="24/7"]::lighting_glows     { prop_x_lighting: "yes" }
*[lit=automatic]::lighting_glows  { prop_x_lighting: "yes" }
*[lit=no]::lighting_glows         { prop_x_lighting: "no" }
*[lit=false]::lighting_glows      { prop_x_lighting: "no" }
*[lit=0]::lighting_glows          { prop_x_lighting: "no" }

*[lit]::lighting_glows {
    object-z-index: -1.0;
}

way[lit]::lighting_glows {
    width: +20;
    opacity: 0.5;
}

node[lit]::lighting_glows {
    symbol-fill-opacity: 0.5;
    symbol-shape: circle;
    symbol-size: 30;
}

way[prop("prop_x_lighting")="no"]::lighting_glows { color: #332244 }
way[prop("prop_x_lighting")="yes"]::lighting_glows { color: #ffbb44 }
way[prop("prop_x_lighting")="partial"]::lighting_glows { color: #997744 }

/* Currently breaks for unclosed highways.
area[prop("prop_x_lighting")="no"]::lighting_glows { fill-color: #332244 }
area[prop("prop_x_lighting")="yes"]::lighting_glows { fill-color: #ffbb44 }
area[prop("prop_x_lighting")="partial"]::lighting_glows { fill-color: #997744 }
*/

node[prop("prop_x_lighting")="no"]::lighting_glows { symbol-fill-color: #332244 }
node[prop("prop_x_lighting")="yes"]::lighting_glows { symbol-fill-color: #ffbb44 }
node[prop("prop_x_lighting")="partial"]::lighting_glows { symbol-fill-color: #997744 }

Styles_LitObjects-style.mapcss, Styles_LitObjects.zip

Last modified 9 years ago Last modified on 2015-06-02T19:13:48+02:00

Attachments (1)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.