NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Are there any renderers that will display the Transport relation colours as specified in the tag, instead of making all bus relations red, all subways another colour, etc. ?

Are there are plans to implement and render the colours as specified in transport relations' tags in the OSM main Transport Map view on the homepage?

asked 25 May '12, 02:03

brandon_macuser's gravatar image

brandon_macuser
71124
accept rate: 0%


I'll answer the second part of the question, since I've been asked a few times about it.

There are three issues with supporting route colours:

  • There's currently no support within mapnik for taking line colours from the database. This is the main reason that it's not done at the moment, since without this support I would need to write a separate rule for every possible colour! There is ongoing work on this in mapnik, so perhaps it will be possible in 2014. See #828 and the expr-v2 branch in the code.
  • It's likely to make the map a complete mess of nasty colours! The people who design route diagrams work in isolation from one another, and even within one transport area often choose lurid and clashing colours for the routes.
  • I haven't figured out how to show the colours of overlapping routes in an automated fashion.

Each issue has a solution, namely:

  • Patience, since things seem to be progressing with mapnik!
  • I'm considering approaches to showing the colours beyond just changing the line colour, so that it's useful to viewers without overwhelming them, and also to providing different versions of the transport layer for different sites.
  • This still needs an automated approach figuring out! Yvecai currently creates good results on opensnowmap, but that's by manually choosing the line offsets for every overlapping ski route. With things like buses - there are 14 different routes at my nearest stop - I don't think that this approach is yet a complete solution.
permanent link

answered 31 Dec '13, 13:52

Andy%20Allan's gravatar image

Andy Allan
12.5k23128153
accept rate: 28%

  • With Opensnowmap, I also had useful results using markers (small colored rectangles along the ways). Having ways side by side as it is now on Opensnowmap needs manual adjustments. Even with this manual work, some cases are not entirely satisfactory given the ways geometry.
  • Also, I need to decrease the color 'luma' for a nice rendering. For instance, yellow pistes are barely noticeable on a white background without.

Pistes coloring code for opensnowmap can be found here: https://github.com/yvecai/mapnik-opensnowmap.org/blob/master/offset-style/build-relations-style.py

(02 Jan '14, 23:44) yvecai

There is AIUI no plan for (Andy Allan's) Transport Map on the front page to do so. Other renderers which show transport information include öpnvkarte and OpenStreetBrowser but I don't believe either of those do.

permanent link

answered 25 May '12, 08:53

Richard's gravatar image

Richard ♦
30.9k44279412
accept rate: 18%

edited 25 May '12, 10:41

I found OSMTransport (http://demo.3liz.com/osmtransport/) which displays route colors for a limited number of cities.

permanent link

answered 30 Dec '13, 17:06

pbb's gravatar image

pbb
621141831
accept rate: 0%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×62
×16

question asked: 25 May '12, 02:03

question was seen: 8,370 times

last updated: 02 Jan '14, 23:44

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum