Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.one
organicmaps·Organic Maps (Unofficial)byKenLin

Any way to include pin color in a gpx file?

I have a side project, a travel planner. I just added gpx export so I can use Organic Maps offline while traveling. Is there any way for me to include a color within the gpx file that organic maps will understand?

Thanks

View original on lemmy.one
16

5 replies

discuss.tchncs.de

Just did some messing around in OM and it doesn't look like it is supported (at the moment).

GPX waypoints have an atrribute called "symbol", which can name a symbol or icon to display. It looks like this attribute can also, in theory, contain a color.

But it doesn't get recognized on import into OM.

When setting the color of a waypoint in OM and exporting as GPX, the color info is stripped from the resulting file.

GPX specification : https://www.topografix.com/GPX/1/1/#type_wptType

Support for GPX in OM : https://github.com/organicmaps/organicmaps/pull/5166

2
KenLinreply
lemmy.one

Thanks, I was afraid of that.

With no way to change colors for a whole list, this is less than ideal.

1
breakcorereply
discuss.tchncs.de

Just tested, and colors work if you use kMZ file format.

At least if I pick colors of waypoints in OM, export the waypoints and import them again, the color remains.

1
KenLinreply
lemmy.one

OK, I looked in the kml file and see how they include the colors. I should be able to work with that.

Thank you for your help

2

You reached the end

Any way to include pin color in a gpx file? | Spyke