Skip to content

Commit

Permalink
Switch to a SVG for the parking icon.
Browse files Browse the repository at this point in the history
Because this is such a simple icon, it's easy to write the SVG for it by hand.

This allows us to only use one symbol file for both parking and private parking, and set the colour in the stylesheet.
  • Loading branch information
pnorman committed Jun 16, 2014
1 parent ae9e92c commit 6491e9a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
9 changes: 6 additions & 3 deletions amenity-points.mss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@marina-text: #576ddf; // also swimming_pool
@military-text: #99001a;
@park-text: #2c4b2c;
@parking-icon: #0092da;

.points {
[tourism = 'alpine_hut'][zoom >= 13]::tourism {
Expand Down Expand Up @@ -168,10 +169,12 @@
}

[amenity = 'parking'][zoom >= 15]::amenity {
point-file: url('symbols/parking.p.16.png');
point-placement: interior;
marker-file: url('symbols/parking.svg');
marker-placement: interior;
marker-height: 12;
marker-fill: @parking-icon;
[access != ''][access != 'public'][access != 'yes'] {
point-file: url('symbols/parking_private.p.16.png');
marker-opacity: 0.33;
}
}

Expand Down
Binary file removed symbols/parking.p.16.png
Binary file not shown.
3 changes: 3 additions & 0 deletions symbols/parking.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed symbols/parking_private.p.16.png
Binary file not shown.

0 comments on commit 6491e9a

Please sign in to comment.