Author Topic: Map legend shortcut vor vector maps  (Read 5101 times)

Offline freischneider

  • Master of Locus
  • ****
  • Posts: 597
  • Thanked: 45 times
    • View Profile
  • Device: Samsung S8, Locus Pro, always newest official version
Re: Map legend shortcut vor vector maps
« Reply #15 on: May 02, 2020, 13:15:52 »
The aim is to include the function in LM4 in the map content panel.
I now have 2 emergency solutions:
1. Run Task in the sidebar. Then create a task in Tasker to open a file. Several can also be created.
2. With favorites, just copy the URL of the website. At OAM, I clicked the link to the legend for a long time and then copied it. The rest see instructions: https://docs.locusmap.eu/doku.php?id=manual:user_guide:functions:quick_bookmark
Then in the sidebar. But only goes online
« Last Edit: May 02, 2020, 13:27:04 by freischneider »
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11793
  • Thanked: 417 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Map legend shortcut vor vector maps
« Reply #16 on: May 02, 2020, 20:59:30 »
Is it really necessary?  ::)

- https://help.locusmap.eu/topic/wms-overlay-title-wms-legend#comment-83422
- https://help.locusmap.eu/topic/blue-button-choose-legend#comment-83424
- https://help.locusmap.eu/topic/shortcuts-to-legends#comment-83425

We discuss options here so no need to spam with the same message 3 other places!!  :(

Anyway even Andrew even your ideas are not correct solution. Legend have to be dynamically accesible based on selected theme, so it needs to be somewhere close to theme choose and not as another buttons permanently visible in the toolbar.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline freischneider

  • Master of Locus
  • ****
  • Posts: 597
  • Thanked: 45 times
    • View Profile
  • Device: Samsung S8, Locus Pro, always newest official version
Re: Map legend shortcut vor vector maps
« Reply #17 on: May 02, 2020, 23:30:19 »
Is it really necessary?  ::)

- https://help.locusmap.eu/topic/wms-overlay-title-wms-legend#comment-83422
- https://help.locusmap.eu/topic/blue-button-choose-legend#comment-83424
- https://help.locusmap.eu/topic/shortcuts-to-legends#comment-83425

We discuss options here so no need to spam with the same message 3 other places!!  :(

Anyway even Andrew even your ideas are not correct solution. Legend have to be dynamically accesible based on selected theme, so it needs to be somewhere close to theme choose and not as another buttons permanently visible in the toolbar.
The main reason for the news is that these people who voted for the idea have a temporary solution. And so that the topics can be brought together. Sorry
 

Offline Andrew Heard

  • Master of Locus
  • ****
  • Posts: 783
  • Thanked: 46 times
    • View Profile
  • Device: Samsung Galaxy A5 Oreo/8, Lenovo Note 4 Nougat/7.1
Re: Map legend shortcut vor vector maps
« Reply #18 on: May 03, 2020, 00:32:28 »
Anyway even Andrew even your ideas are not correct solution. Legend have to be dynamically accesible based on selected theme, so it needs to be somewhere close to theme choose and not as another buttons permanently visible in the toolbar.
@menion - sure - that is the optimal "Rolls Royce" solution. I mainly use just a few themes; 1 preset = 1 theme. I could have a PDF of each theme, similar to @karlchick beautiful legend from this topic. At times I have opened a legend PDF in Adobe Reader then just task switch between Locus & Reader. As @freischneider says we make do with workarounds & dream for better some day.
« Last Edit: May 03, 2020, 00:34:54 by Andrew Heard »
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11793
  • Thanked: 417 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Map legend shortcut vor vector maps
« Reply #19 on: May 11, 2020, 14:14:59 »
Understand ... searching ... best should be to place a link (to file, URL) directly into the theme. But this makes sense only in case, I add this also into the official MapsForge4 library and it may take some time ...

So in the next version, "temporary" solution: currently PDF (any other format may be useful as well?) file with the same name and location as a theme XML file. In the list of themes, such a theme will have a small badge and long-click offer display of legend.
« Last Edit: May 11, 2020, 14:21:03 by menion »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 
The following users thanked this post: Andrew Heard, freischneider

Offline john_percy

  • Master of Locus
  • ****
  • Posts: 807
  • Thanked: 121 times
    • View Profile
  • Device: MotoG
Re: Map legend shortcut vor vector maps
« Reply #20 on: May 11, 2020, 15:32:00 »
Or possibly a text file with the same name which contains a redirect? I'm just thinking of matching themes which come in sets, like for v3 and v4.

Sent from my moto g(6) plus using Tapatalk

 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11793
  • Thanked: 417 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Map legend shortcut vor vector maps
« Reply #21 on: May 11, 2020, 21:10:55 »
Oki, so give a try to the new version3.45.1.5

Theme file:
../my_theme.xml

Legend file:
../my_theme.pdf
or
../my_theme.lnk > simple text file that may contain a path to legend. By path is currently considered absolute path to file, a relative path within Locus directory, or URL to the web page with the legend.

I've not tested this, so let me know if something won't work.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 
The following users thanked this post: Andrew Heard

Offline john_percy

  • Master of Locus
  • ****
  • Posts: 807
  • Thanked: 121 times
    • View Profile
  • Device: MotoG
Re: Map legend shortcut vor vector maps
« Reply #22 on: May 11, 2020, 22:04:32 »
I have it working via a link to an online PDF. Looks good.
Edit: I can't get a relative path to a file in the theme directory to work. I get "invalid value" orange toast. What format is expected? Is it file:.. as in the theme itself? Relative to the theme file?
« Last Edit: May 11, 2020, 22:17:54 by john_percy »
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11793
  • Thanked: 417 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Map legend shortcut vor vector maps
« Reply #23 on: May 11, 2020, 22:30:47 »
Give a try to something like ... (really just this relative path in the file. App check if text start with http/https to call the browser, or try to find a file in the filesystem).
Code: [Select]
mapsVector/_themes/vol_res/legend/Legend.pdf
If it won't work, I'll look at it tomorrow.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline Tobias

  • Apprentice of Locus
  • **
  • Posts: 102
  • Thanked: 15 times
    • View Profile
    • Elevate themes
Re: Map legend shortcut vor vector maps
« Reply #24 on: May 11, 2020, 22:36:10 »
Oki, so give a try to the new version3.45.1.5

Theme file:
../my_theme.xml

Legend file:
../my_theme.pdf
or
../my_theme.lnk > simple text file that may contain a path to legend. By path is currently considered absolute path to file, a relative path within Locus directory, or URL to the web page with the legend.

I've not tested this, so let me know if something won't work.
I've got an english and a german legend, so something like this would be appreciated:
.../my_theme.en.pdf
.../my_theme.de.lnk
developer of Elevate mapstyle for OpenAndroMaps
 

Offline john_percy

  • Master of Locus
  • ****
  • Posts: 807
  • Thanked: 121 times
    • View Profile
  • Device: MotoG
Re: Map legend shortcut vor vector maps
« Reply #25 on: May 12, 2020, 00:32:46 »


If it won't work, I'll look at it tomorrow.
I'm not getting it to work.



Sent from my moto g(6) plus using Tapatalk

 

Offline freischneider

  • Master of Locus
  • ****
  • Posts: 597
  • Thanked: 45 times
    • View Profile
  • Device: Samsung S8, Locus Pro, always newest official version
Re: Map legend shortcut vor vector maps
« Reply #26 on: May 12, 2020, 09:09:26 »
Oki, so give a try to the new version3.45.1.5

Theme file:
../my_theme.xml

Legend file:
../my_theme.pdf
or
../my_theme.lnk > simple text file that may contain a path to legend. By path is currently considered absolute path to file, a relative path within Locus directory, or URL to the web page with the legend.

I've not tested this, so let me know if something won't work.
Internal PDF stored in theme works.
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11793
  • Thanked: 417 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Map legend shortcut vor vector maps
« Reply #27 on: May 12, 2020, 09:42:41 »
Thanks for tests guys. Oki, few more updates to next version

- hopefully fixed local links, thanks John. This "mapsVector/_themes/freemap_slovakia.pdf" inside X.lnk file works for me now
- support for more legends based on locale. Just add two-letter language code to the end of files, like X_en.pdf, X_de.pdf
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline john_percy

  • Master of Locus
  • ****
  • Posts: 807
  • Thanked: 121 times
    • View Profile
  • Device: MotoG
Re: Map legend shortcut vor vector maps
« Reply #28 on: May 12, 2020, 10:24:56 »
Next version not available for testing yet?

 

Offline john_percy

  • Master of Locus
  • ****
  • Posts: 807
  • Thanked: 121 times
    • View Profile
  • Device: MotoG
Re: Map legend shortcut vor vector maps
« Reply #29 on: May 14, 2020, 00:24:48 »
A link of the form "mapsVector/_themes/freemap_slovakia.pdf" did not work for me even with the new alpha until I realised that I had a blank line following that entry. OK now, but not very forgiving. Or maybe it was the line endings it didn't like? If so, still not very forgiving.
Anyway thanks for this new feature.

Sent from my moto g(6) plus using Tapatalk