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

Hi, we have 2 ports in our management. We have used 'lines' to put the piers and jetties on the map. Is there any way to change the colour of the lines as we have piers of different lengths?

asked 06 Jan '22, 16:13

Koen%20Prikken's gravatar image

Koen Prikken
11112
accept rate: 0%

2

Can you explain in a bit more detail what software you are asking about?

(06 Jan '22, 21:56) SomeoneElse ♦

Hi.

Usually, the color of a line is only based on the tags applied, that is its typology. Especially on the default tile layer (called osm-carto), which is mainly designed to help mappers validate their work.

Depending on your needs, you could overlay a new color, for example using mapCSS in overpass-turbo or using uMap, or you can design a new map style based on your specific needs (Mapbox Studio does that with a GUI, or you could set up a full rendering server with a modified version of osm-carto).

If you don't understand the propositions, please have a look at the wiki, and ask a more detailed question.

Warning, you can't change the tags of a line to change the color on the map. The tags are meant to represent the on-the-ground truth, renderers (and maps styles' creators) makes their own choice as to how to represent the tags.

That being said, I've never heard of features represented differently based on their length.

Best regards.

permanent link

answered 07 Jan '22, 12:23

H_mlet's gravatar image

H_mlet
5.4k1781
accept rate: 13%

Your answer
toggle preview

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:

×31

question asked: 06 Jan '22, 16:13

question was seen: 1,012 times

last updated: 07 Jan '22, 12:23

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