Changes between Initial Version and Version 1 of Styles/light_source


Ignore:
Timestamp:
2015-08-04T15:54:30+02:00 (10 years ago)
Author:
mhohmann
Comment:

Create light_source style.

Legend:

Unmodified
Added
Removed
Modified
  • Styles/light_source

    v1 v1  
     1{{{
     2#!style type="mapcss"
     3
     4meta {
     5        title: "light_source";
     6        version: "0.[[revision]]";
     7        description: "Icons for light_source=*.";
     8        author: "Manuel Hohmann";
     9}
     10
     11setting::hide_icons {
     12        type: boolean;
     13        label: tr("Hide icons at low zoom");
     14        default: true;
     15}
     16
     17node[light_source] {
     18        icon-image: "images/light.png";
     19        set icon_z17;
     20}
     21
     22node[light_source=lantern] {
     23        icon-image: "images/lantern.png";
     24        set icon_z17;
     25}
     26
     27node[light_source=floodlight] {
     28        icon-image: "images/floodlight.png";
     29        set icon_z17;
     30}
     31
     32node[light_source=warning] {
     33        icon-image: "images/warning.png";
     34        set icon_z17;
     35}
     36
     37node[light_source=aviation] {
     38        icon-image: "images/aviation.png";
     39        set icon_z17;
     40}
     41
     42node[light_source=signal_lamp] {
     43        icon-image: "images/signal_lamp.png";
     44        set icon_z17;
     45}
     46
     47node|z-16[setting("hide_icons")].icon_z17 {
     48        icon-image: none;
     49}
     50}}}