Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting a global draw_name_mode, as a Preference #282

Open
jidanni opened this issue Jun 30, 2024 · 2 comments
Open

Allow setting a global draw_name_mode, as a Preference #282

jidanni opened this issue Jun 30, 2024 · 2 comments

Comments

@jidanni
Copy link
Contributor

jidanni commented Jun 30, 2024

All I know is currently the only way to set draw_name_mode, at least for routes, is one route at a time, via side panel > Top level > ... > Routes > Properties > Drawing > Draw Name >

So it would make sense to allow it to be set at successively higher layers too, including a global Preference.

@rnorris
Copy link
Collaborator

rnorris commented Jul 8, 2024

There exists the advanced option of setting a global default track_draw_name_mode in your ~/.config/viking/viking.ini.

I seem to have forgotten (or possibly at the time - didn't even think of it) - to make the existence of this more known by including it in the manual. The value is an integer where:
0 = No;
1 = Centre;
2 = Start only;
3 = End only;
4 = Start and End;
5 = Start, Centre and End

This setting applies to both Tracks and Routes.

@jidanni
Copy link
Contributor Author

jidanni commented Jul 13, 2024

OK, that is great news and indeed knowing has shaved off many months of me hacking placemarks along lines to be their labels!

Note however there needs to be a safe file, safe from ever getting written. Where the user can place such directives.

It might seem sane to have the user put them in the same file that Viking is writing to every day, but 1) The user cannot backup their changes without getting them polluted. 2) There is no guarantee that something the user puts in that file won't get destroyed.

Also though thankful that I can now have labels on all my lines, I still have no way to control the font size of those labels.

No tricks I tried worked. Sure, the user can influence the font size of a particular line, but not the global default here.

Another problem is if e.g., KML <name></name> is empty,
then for waypoints, good, no name will be shown.
But for routes, there is no way to stop the name being shown.
Even putting a blank there won't fool it. One gets a RTE123 etc. inserted.
I'm talking about programmatically: I wish I knew what <name> will obtain "no name". I don't want to have to edit individual lines. Perhaps the best I can do is just a ".", at least that won't look too obvious on the map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants