Skip to content

Commit

Permalink
Adding tower:type=lighting rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
kocio-pl committed Mar 2, 2018
1 parent e481962 commit b41f31b
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 10 deletions.
36 changes: 26 additions & 10 deletions amenity-points.mss
Original file line number Diff line number Diff line change
Expand Up @@ -353,15 +353,23 @@
marker-clip: false;
}

[feature = 'man_made_mast']{
[feature = 'man_made_mast'] {
[zoom >= 15][height > 80],
[zoom >= 16][height > 40],
[zoom >= 17][height > 20],
[zoom >= 18] {
marker-file: url('symbols/mast.svg');
marker-fill: @man-made-icon;
marker-placement: interior;
marker-clip: false;
["tower:type" != 'lighting'] {
marker-file: url('symbols/mast.svg');
marker-fill: @man-made-icon;
marker-placement: interior;
marker-clip: false;
}
["tower:type" = 'lighting'][zoom >= 18] {
marker-file: url('symbols/mast_lighting.svg');
marker-fill: @man-made-icon;
marker-placement: interior;
marker-clip: false;
}
["tower:type" = 'communication'] {
marker-file: url('symbols/mast_communications.svg');
}
Expand All @@ -373,16 +381,24 @@
[zoom >= 14][height > 50],
[zoom >= 15][height > 30],
[zoom >= 17] {
marker-file: url('symbols/tower_generic.svg');
marker-fill: @man-made-icon;
marker-placement: interior;
marker-clip: false;
["tower:type" != 'lighting'] {
marker-file: url('symbols/tower_generic.svg');
marker-fill: @man-made-icon;
marker-placement: interior;
marker-clip: false;
}
["tower:type" = 'defensive'] {
marker-file: url('symbols/tower_defensive.svg');
}
["tower:type" = 'observation'] {
marker-file: url('symbols/tower_observation.svg');
}
["tower:type" = 'lighting'][zoom >= 18] {
marker-file: url('symbols/tower_lighting.svg');
marker-fill: @man-made-icon;
marker-placement: interior;
marker-clip: false;
}
["tower:construction" = 'lattice'] {
marker-file: url('symbols/tower_lattice.svg');
}
Expand All @@ -393,7 +409,7 @@
}
}
}
}
}

[feature = 'tourism_museum'][zoom >= 16] {
marker-file: url('symbols/museum.svg');
Expand Down
37 changes: 37 additions & 0 deletions symbols/mast_lighting.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions symbols/tower_lighting.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b41f31b

Please sign in to comment.