wiki:Styles/AdvertisingStyle
meta {
         title: "Advertising style, to have icons for various types of advertising devices";
         version: "draft.51_2017-04-28";
         description: "Icons for advertising=billboard, advertising=column, advertising=poster_box, advertising=totem, advertising=board";
         author: "Barnes38";
         link: "https://wiki.openstreetmap.org/wiki/User:Barnes38/advertising_draft";
}
setting::hide_icons {
         type: boolean;
         label: tr("Hide icons at low zoom");
         default: true;
}
node|z17-18[advertising=billboard][support!=trunk][support!=pole][support!=poles][support!=wall]
{
         icon-image: "images/Billboard.svg";
         icon-width: 10;
         set icon_z17;
}
node|z19-20[advertising=billboard][support!=trunk][support!=pole][support!=poles][support!=wall]
{
         icon-image: "images/Billboard.svg";
         icon-width: 25;
         set icon_z17;
}
node|z21-22[advertising=billboard][support!=trunk][support!=pole][support!=poles][support!=wall]
{
         icon-image: "images/Billboard.svg";
         icon-width: 40;
         set icon_z17;
}
node|z23-24[advertising=billboard][support!=trunk][support!=pole][support!=poles][support!=wall]
{
         icon-image: "images/Billboard.svg";
         icon-width: 55;
         set icon_z17;
}
node|z25-26[advertising=billboard][support!=trunk][support!=pole][support!=poles][support!=wall]
{
         icon-image: "images/Billboard.svg";
         icon-width: 70;
         set icon_z17;
}


node|z17-18[advertising=billboard][support=trunk] {
         icon-image: "images/Billboard_trunk.svg";
         icon-width: 10;
         set icon_z17;
}
node|z19-20[advertising=billboard][support=trunk] {
         icon-image: "images/Billboard_trunk.svg";
         icon-width: 25;
         set icon_z17;
}
node|z21-22[advertising=billboard][support=trunk] {
         icon-image: "images/Billboard_trunk.svg";
         icon-width: 40;
         set icon_z17;
}
node|z23-24[advertising=billboard][support=trunk] {
         icon-image: "images/Billboard_trunk.svg";
         icon-width: 55;
         set icon_z17;
}
node|z25-26[advertising=billboard][support=trunk] {
         icon-image: "images/Billboard_trunk.svg";
         icon-width: 70;
         set icon_z17;
}


node|z17-18[advertising=billboard][support=pole] {
         icon-image: "images/Billboard_legs.svg";
         icon-width: 10;
         set icon_z17;
}
node|z19-20[advertising=billboard][support=pole] {
         icon-image: "images/Billboard_legs.svg";
         icon-width: 25;
         set icon_z17;
}
node|z21-22[advertising=billboard][support=pole] {
         icon-image: "images/Billboard_legs.svg";
         icon-width: 40;
         set icon_z17;
}
node|z23-24[advertising=billboard][support=pole] {
         icon-image: "images/Billboard_legs.svg";
         icon-width: 55;
         set icon_z17;
}
node|z25-26[advertising=billboard][support=pole] {
         icon-image: "images/Billboard_legs.svg";
         icon-width: 70;
         set icon_z17;
}


node|z17-18[advertising=billboard][support=poles] {
         icon-image: "images/Billboard_legs.svg";
         icon-width: 10;
         set icon_z17;
}
node|z19-20[advertising=billboard][support=poles] {
         icon-image: "images/Billboard_legs.svg";
         icon-width: 25;
         set icon_z17;
}
node|z21-22[advertising=billboard][support=poles] {
         icon-image: "images/Billboard_legs.svg";
         icon-width: 40;
         set icon_z17;
}
node|z23-24[advertising=billboard][support=poles] {
         icon-image: "images/Billboard_legs.svg";
         icon-width: 55;
         set icon_z17;
}
node|z25-26[advertising=billboard][support=poles] {
         icon-image: "images/Billboard_legs.svg";
         icon-width: 70;
         set icon_z17;
}



node|z17-18[advertising=billboard][support=wall] {
         icon-image: "images/Billboard_wall.svg";
         icon-width: 10;
         set icon_z17;
}
node|z19-20[advertising=billboard][support=wall] {
         icon-image: "images/Billboard_wall.svg";
         icon-width: 25;
         set icon_z17;
}
node|z21-22[advertising=billboard][support=wall] {
         icon-image: "images/Billboard_wall.svg";
         icon-width: 40;
         set icon_z17;
}
node|z23-24[advertising=billboard][support=wall] {
         icon-image: "images/Billboard_wall.svg";
         icon-width: 55;
         set icon_z17;
}
node|z25-26[advertising=billboard][support=wall] {
         icon-image: "images/Billboard_wall.svg";
         icon-width: 70;
         set icon_z17;
}



node|z17-18[advertising=billboard][support=fence] {
         icon-image: "images/Billboard_wall.svg";
         icon-width: 10;
         set icon_z17;
}
node|z19-20[advertising=billboard][support=fence] {
         icon-image: "images/Billboard_wall.svg";
         icon-width: 25;
         set icon_z17;
}
node|z21-22[advertising=billboard][support=fence] {
         icon-image: "images/Billboard_wall.svg";
         icon-width: 40;
         set icon_z17;
}
node|z23-24[advertising=billboard][support=fence] {
         icon-image: "images/Billboard_wall.svg";
         icon-width: 55;
         set icon_z17;
}
node|z25-26[advertising=billboard][support=fence] {
         icon-image: "images/Billboard_wall.svg";
         icon-width: 70;
         set icon_z17;
}



node|z17-18[advertising=board][support=fence] {
         icon-image: "images/Billboard_wall.svg";
         icon-width: 10;
         set icon_z17;
}
node|z19-20[advertising=board][support=fence] {
         icon-image: "images/Billboard_wall.svg";
         icon-width: 25;
         set icon_z17;
}
node|z21-22[advertising=board][support=fence] {
         icon-image: "images/Billboard_wall.svg";
         icon-width: 40;
         set icon_z17;
}
node|z23-24[advertising=board][support=fence] {
         icon-image: "images/Billboard_wall.svg";
         icon-width: 55;
         set icon_z17;
}
node|z25-26[advertising=board][support=fence] {
         icon-image: "images/Billboard_wall.svg";
         icon-width: 70;
         set icon_z17;
}



node|z17-18[advertising=poster_box][support="street_furniture:transit_shelter"] {
         icon-image: "images/Poster_box_shelter.svg";
         icon-width: 10;
         set icon_z17;
}
node|z19-20[advertising=poster_box][support="street_furniture:transit_shelter"] {
         icon-image: "images/Poster_box_shelter.svg";
         icon-width: 25;
         set icon_z17;
}
node|z21-22[advertising=poster_box][support="street_furniture:transit_shelter"] {
         icon-image: "images/Poster_box_shelter.svg";
         icon-width: 40;
         set icon_z17;
}
node|z23-24[advertising=poster_box][support="street_furniture:transit_shelter"] {
         icon-image: "images/Poster_box_shelter.svg";
         icon-width: 55;
         set icon_z17;
}
node|z25-26[advertising=poster_box][support="street_furniture:transit_shelter"] {
         icon-image: "images/Poster_box_shelter.svg";
         icon-width: 70;
         set icon_z17;
}



node|z17-18[advertising=poster_box][support!="street_furniture:transit_shelter"] {
         icon-image: "images/Poster_box.svg";
         icon-width: 10;
         set icon_z17;
}
node|z19-20[advertising=poster_box][support!="street_furniture:transit_shelter"] {
         icon-image: "images/Poster_box.svg";
         icon-width: 25;
         set icon_z17;
}
node|z21-22[advertising=poster_box][support!="street_furniture:transit_shelter"] {
         icon-image: "images/Poster_box.svg";
         icon-width: 40;
         set icon_z17;
}
node|z23-24[advertising=poster_box][support!="street_furniture:transit_shelter"] {
         icon-image: "images/Poster_box.svg";
         icon-width: 55;
         set icon_z17;
}
node|z25-26[advertising=poster_box][support!="street_furniture:transit_shelter"] {
         icon-image: "images/Poster_box.svg";
         icon-width: 70;
         set icon_z17;
}



node|z17-18[advertising=board][legal_type:FR!=preenseigne] {
         icon-image: "images/Board.svg";
         icon-width: 10;
         set icon_z17;
}
node|z19-20[advertising=board][legal_type:FR!=preenseigne] {
         icon-image: "images/Board.svg";
         icon-width: 25;
         set icon_z17;
}
node|z21-22[advertising=board][legal_type:FR!=preenseigne] {
         icon-image: "images/Board.svg";
         icon-width: 40;
         set icon_z17;
}
node|z23-24[advertising=board][legal_type:FR!=preenseigne] {
         icon-image: "images/Board.svg";
         icon-width: 55;
         set icon_z17;
}
node|z25-26[advertising=board][legal_type:FR!=preenseigne] {
         icon-image: "images/Board.svg";
         icon-width: 70;
         set icon_z17;
}



node|z17-18[advertising=board][legal_type:FR=preenseigne] {
         icon-image: "images/Indication.svg";
         icon-width: 10;
         set icon_z17;
}
node|z19-20[advertising=board][legal_type:FR=preenseigne] {
         icon-image: "images/Indication.svg";
         icon-width: 25;
         set icon_z17;
}
node|z21-22[advertising=board][legal_type:FR=preenseigne] {
         icon-image: "images/Indication.svg";
         icon-width: 40;
         set icon_z17;
}
node|z23-24[advertising=board][legal_type:FR=preenseigne] {
         icon-image: "images/Indication.svg";
         icon-width: 55;
         set icon_z17;
}
node|z25-26[advertising=board][legal_type:FR=preenseigne] {
         icon-image: "images/Indication.svg";
         icon-width: 70;
         set icon_z17;
}



node|z17-18[advertising=board][amenity=advertising] {
         icon-image: "images/Board_free.svg";
         icon-width: 10;
         set icon_z17;
}
node|z19-20[advertising=board][amenity=advertising] {
         icon-image: "images/Board_free.svg";
         icon-width: 25;
         set icon_z17;
}
node|z21-22[advertising=board][amenity=advertising] {
         icon-image: "images/Board_free.svg";
         icon-width: 40;
         set icon_z17;
}
node|z23-24[advertising=board][amenity=advertising] {
         icon-image: "images/Board_free.svg";
         icon-width: 55;
         set icon_z17;
}
node|z25-26[advertising=board][amenity=advertising] {
         icon-image: "images/Board_free.svg";
         icon-width: 70;
         set icon_z17;
}



node|z17-18[advertising=column] {
         icon-image: "images/Column_3.svg";
         icon-width: 10;
         set icon_z17;
}
node|z19-20[advertising=column] {
         icon-image: "images/Column_3.svg";
         icon-width: 25;
         set icon_z17;
}
node|z21-22[advertising=column] {
         icon-image: "images/Column_3.svg";
         icon-width: 40;
         set icon_z17;
}
node|z23-24[advertising=column] {
         icon-image: "images/Column_3.svg";
         icon-width: 55;
         set icon_z17;
}
node|z25-26[advertising=column] {
         icon-image: "images/Column_3.svg";
         icon-width: 70;
         set icon_z17;
}


node|z-16[setting("hide_icons")].icon_z17 {
         icon-image: none;
}

Styles_AdvertisingStyle-style.mapcss, Styles_AdvertisingStyle.zip

Last modified 7 months ago Last modified on 2017-04-28T21:21:18+02:00

Attachments (1)

Download all attachments as: .zip