viking-gps / viking

Viking is a free/open source program to manage GPS data (inc GPX, FIT, TCX and KML files). You can import and plot tracks, routes and waypoints, show OpenStreetMaps (OSM), Bing Aerial and other maps, generate Mapnik maps, geotag images, make new tracks, routes and waypoints, see real-time GPS position, etc. It is written mostly in C with GTK
http://sourceforge.net/projects/viking/
GNU General Public License v2.0
223 stars 55 forks source link

KML route order thrown away #279

Closed jidanni closed 1 month ago

jidanni commented 3 months ago

Looking at the xinshe.kmz of #278 with a file explorer app, you will see that all the <Placemark>s are in a certain order.

Well, Viking should preserve that order, instead of making a random order, (A).

Why does it matter? Well, Viking uses alternating colors: brown, red, brown, red, ... for each route.

On the map there would have been nice alternating colors. Alas, Viking jumbled the route list. So now on the map we see several brown lines, followed by a red or two, etc.

So now the only place the alternating colors still alternate is when looking at the list of routes in the side panel. (B).

One might say my KMZ had some <MultiGeometry>s, each of which would create several routes. Well yes, they should all be the same color. Or at least keep them adjacent in the route list.

z