When importing a track into a folder, apply the folder's Line style automatically

phil shared this idea 27 days ago
Completed

If I define a Line style for a Folder, obviously I want that style to apply to all tracks in the Folder - including any new Tracks that I import into this folder.

The Line style of a Folder is considered when recording new tracks, so it should be considered when importing new tracks into the folder as well - if not automatically, then at least by switching a new option like "Use style of the folder" on the import dialog screen.

Comments (9)

photo
1

Good day Phil,

I'm quite sure that Locus Map applies folder style to the newly imported tracks. Except: case, when the imported track has own defined style. So please double check, that imported GPX/KML track, does not have own style.

If there is no color/width defined, then it's definitely a bug. Otherwise, the defined style has higher priority and is used by default.

Menion

photo
1

Isn't Phil suggesting Folder style could optionally override track style even when imported track has own defined style?

photo
1

well, my issue is, that when a track is exported automatically after recording is stopped, it is exported before the style of the folder (where it is saved) is applied. If I import this track into another device, it will have some kind of default teal color, which I would like to override.

For Track recording style, I use a 3px red line so that the route is easily visible and does not cover too much.

For viewing recorded tracks, I use Coloring mode = Altitude, line width 4px with outline. This is the style I apply to all tracks in every folder...

photo
1

Hello phil, this really happen?

I'm checking the app source code and the automatically exported track should really have the correct style defined by the folder. I'm checking it and it really works correctly. Give it please a try and check it once more. Please keep in mind, that export to GPX file and reimport back, will not correctly restore track style 1:1. Only track color, opacity and width of basic line is supported with GPX file.

photo
1

all my automatically exported GPX tracks have this style:

	<extensions>
		<gpx_style:line>
			<gpx_style:color>00D7D7</gpx_style:color>
			<gpx_style:opacity>0.59</gpx_style:opacity>
			<gpx_style:width>3.0</gpx_style:width>
		</gpx_style:line>
		<locus:activity>cycling_mountain</locus:activity>
	</extensions>

photo
1

Oki and this is not the style of the folder where these tracks are saved? Try to set in recording profile style to some completely different value (like with 10 and clear red color) to see the difference after export.

photo
1

I think you have already answered what is the issue - "Only track color, opacity and width of basic line is supported with GPX file."I have Coloring mode = Altitude set for the folders, so Locus probably switches to some default basic line when exporting the track. Which means I have to edit the track after I import it to another device in order to get the Altitude Coloring mode back.


An option to override the GPX style during Import with the style of the destination folder would take care of GPX files from other than Locus sources too.

photo
photo
1

Hello guys,

so good news. The feature will be added in next 3.38.0 version of Locus Map.

/090406303415ffb03b9245018369b2fc

photo
1

great! thanks!