From 1ba9c96870ee9cc67ca00ae10a2bc10860268f28 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Mon, 22 Mar 2021 18:33:29 +0100 Subject: [PATCH 1/2] Use sharrows for bicycle=designated streets. Fix #389 --- CHANGELOG.md | 2 ++ LICENSE.md | 4 +++ labels.mss | 15 +-------- symbols/nounproject/sharrows.svg | 55 ++++++++++++++++++++++++++++++++ 4 files changed, 62 insertions(+), 14 deletions(-) create mode 100644 symbols/nounproject/sharrows.svg diff --git a/CHANGELOG.md b/CHANGELOG.md index d839c6f..a74119e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Fix names not rendered in some alphabts. Fix #489. * Render train stations when tagged on buildings (polygons). Fix #527. +* Use sharrows for `bicycle=designated` streets instead of regular arrow. + Fix #389. diff --git a/LICENSE.md b/LICENSE.md index f984ee2..76b791b 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -22,5 +22,9 @@ style and are licensed under CC0 public domain. The icons in `symbols/osmandapp` are taken from the [OsmAnd app resources](https://github.com/osmandapp/OsmAnd-resources). +The icons in `symbols/nounproject` are taken from [The Noun +Project](https://thenounproject.com/) and are licensed under a CC BY-NC-ND 2.0 +license. + The inner tube bicycle icon is based on https://www.flaticon.com/free-icon/inner-tube_1575936. diff --git a/labels.mss b/labels.mss index 0e02bb7..155aaa2 100644 --- a/labels.mss +++ b/labels.mss @@ -491,26 +491,13 @@ designated/marker-max-error: 0.5; designated/marker-spacing: 50; designated/marker-fill: @cycle-fill; - designated/marker-file: url(symbols/oneway.svg); + designated/marker-file: url(symbols/nounproject/sharrows.svg); [oneway='-1'] { designated/marker-file: url(symbols/oneway-reverse.svg); } [zoom=15] { designated/marker-transform: "scale(0.75)"; designated/marker-spacing: 40; } } - [bicycle='designated'][oneway = 'yes'][oneway_bicycle = 'no'], - [bicycle='designated'][oneway = '-1'][oneway_bicycle = 'no'], - [bicycle='designated'][oneway != 'yes'][oneway != '-1'][oneway_bicycle != 'yes'][oneway_bicycle != '-1'] { - designated/marker-placement: line; - designated/marker-max-error: 0.5; - designated/marker-spacing: 50; - designated/marker-fill: @cycle-fill; - designated/marker-file: url(symbols/oneway-cycle.svg); - [zoom=15] { - designated/marker-transform: "scale(0.75)"; - designated/marker-spacing: 40; - } - } } diff --git a/symbols/nounproject/sharrows.svg b/symbols/nounproject/sharrows.svg new file mode 100644 index 0000000..6995cda --- /dev/null +++ b/symbols/nounproject/sharrows.svg @@ -0,0 +1,55 @@ + +image/svg+xml From 6a71f4fa9634657d1e9ff22281bc140b7ef28a77 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Sat, 27 Mar 2021 12:32:04 +0100 Subject: [PATCH 2/2] Updater marker spacing --- labels.mss | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/labels.mss b/labels.mss index 155aaa2..44d7610 100644 --- a/labels.mss +++ b/labels.mss @@ -454,7 +454,7 @@ [highway='footway'][oneway_bicycle = '-1'] { marker-placement:line; marker-max-error: 0.5; - marker-spacing: 100; + marker-spacing: 150; marker-fill: #777777; [highway='cycleway'], [highway='path'] { @@ -474,7 +474,7 @@ [oneway = '-1'][oneway_bicycle = 'no'] { bike/marker-placement: line; bike/marker-max-error: 0.5; - bike/marker-spacing: 100; + bike/marker-spacing: 150; bike/marker-file: url(symbols/oneway-cycle.svg); [oneway='-1'] { bike/marker-file: url(symbols/oneway-cycle-reverse.svg); } [zoom=15] { @@ -488,8 +488,7 @@ [bicycle='designated'][oneway = 'yes'][oneway_bicycle != 'no'], [bicycle='designated'][oneway = '-1'][oneway_bicycle != 'no'] { designated/marker-placement: line; - designated/marker-max-error: 0.5; - designated/marker-spacing: 50; + designated/marker-spacing: 75; designated/marker-fill: @cycle-fill; designated/marker-file: url(symbols/nounproject/sharrows.svg); [oneway='-1'] { designated/marker-file: url(symbols/oneway-reverse.svg); }