16
5

Any way to include pin color in a gpx file?

1y 5mon ago by lemmy.one/u/KenLin in organicmaps@sopuli.xyz

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

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

Thanks, I was afraid of that.

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

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.

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

You're welcome :)