NOTICE: help.openstreetmap.org is no longer in use from 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

Rudy
11224
accept rate: 0%

edited 15 Feb '21, 07:53

scai's gravatar image

scai ♦
33.3k21309459

1

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 https://gis.stackexchange.com/

permanent link

answered 14 Feb '21, 20:03

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

New questions seems to be here: https://gis.stackexchange.com/q/387278/23837

(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

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:

×112
×74
×15

question asked: 14 Feb '21, 10:49

question was seen: 927 times

last updated: 15 Feb '21, 09:16

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