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, 10:49

Rudy's gravatar image

Rudy
1124
accept rate: 0%

edited 15 Feb, 07:53

scai's gravatar image

scai ♦
32.4k20296450

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, 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, 20:03

SimonPoole's gravatar image

SimonPoole ♦
42.6k13310671
accept rate: 19%

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

(15 Feb, 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:

×103

question asked: 14 Feb, 10:49

question was seen: 214 times

last updated: 15 Feb, 09:16

powered by OSQA