Skip to content

Commit

Permalink
Add rendering for bicycle_parking
Browse files Browse the repository at this point in the history
* Add bicycle_parking icon from z18 or (for areas) 750 pixels, whichever is
  earlier.
* Add yellow background for bicycle_parking (like regular parking).

Thanks to @nebulon42 for the icon.

This resolves gravitystorm#591 and part of gravitystorm#108.
  • Loading branch information
matthijsmelissen committed Mar 10, 2015
1 parent a9d6b3d commit 929dce9
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 7 deletions.
10 changes: 10 additions & 0 deletions amenity-points.mss
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,16 @@
}
}

[feature = 'amenity_bicycle_parking'] {
[zoom >= 18],
[way_pixels > 750] {
marker-file: url('symbols/bicycle_parking.18.svg');
marker-placement: interior;
marker-clip: false;
marker-fill: @transportation-icon;
}
}

[feature = 'amenity_pharmacy'][zoom >= 17] {
marker-file: url('symbols/pharmacy.16.svg');
marker-fill: @health-color;
Expand Down
10 changes: 10 additions & 0 deletions landcover.mss
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,16 @@
[way_pixels >= 64] { polygon-gamma: 0.3; }
}

[feature = 'amenity_bicycle_parking'][zoom >= 13] {
polygon-fill: @parking;
[zoom >= 15] {
line-width: 0.3;
line-color: saturate(darken(@parking, 40%), 20%);
}
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}

[feature = 'aeroway_apron'][zoom >= 10] {
polygon-fill: @apron;
[way_pixels >= 4] { polygon-gamma: 0.75; }
Expand Down
Loading

0 comments on commit 929dce9

Please sign in to comment.