NOTICE: is being shutdown on 1st March 2024. Please use the OpenStreetMap Community Forum

Hi, I use xml to diplay several tracks at the same time in OSM. Is it possible for OSM to display each track in a different color based on the xml contents ? Thanks

Edit : I use Leaflet to display tracks on OSM map.

To do so I give to Leaflet an XML file URL.

This XML fils contains several tracks.

My question is : is there a color parameter I can set for each track in the XML file so that OSM displays each track with the specified color ?

XML file example : link text

Usage example : link text

asked 14 Feb '21, 10:49

Rudy's gravatar image

accept rate: 0%

edited 15 Feb '21, 07:53

scai's gravatar image

scai ♦


Can you be more specific what you mean by "in OSM"? I can only assume that you try to display a track on top of a OSM base map. From your other question I assume it is about your web site using Leaflet. If so your question should be how to display tracks in different colors in Leaflet. That has nothing to do with OSM itself.

(14 Feb '21, 11:29) TZorn

Leaflet is not an "OSM product" in any sense, you will need to ask in a more suitable venue, for example

permanent link

answered 14 Feb '21, 20:03

SimonPoole's gravatar image

SimonPoole ♦
accept rate: 18%

New questions seems to be here:

(15 Feb '21, 09:16) scai ♦
Your answer
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 14 Feb '21, 10:49

question was seen: 912 times

last updated: 15 Feb '21, 09:16

NOTICE: is being shutdown on 1st March 2024. Please use the OpenStreetMap Community Forum