Map legend shortcut vor vector maps

Started by Tarantin, January 11, 2014, 01:00:24

0 Members and 1 Guest are viewing this topic.

freischneider

#15
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
Poco F5, Android 13 / Xiaomi Redmi Note 10 Pro, Android 13
Locus Map 4 Gold (always latest version or Beta)
LM4 User-ID: 11cec7cb5  (Devices-ID poco F5)
  •  

Menion

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.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

freischneider

Quote from: menion 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.
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
Poco F5, Android 13 / Xiaomi Redmi Note 10 Pro, Android 13
Locus Map 4 Gold (always latest version or Beta)
LM4 User-ID: 11cec7cb5  (Devices-ID poco F5)
  •  

Andrew Heard

#18
Quote from: menion on May 02, 2020, 20:59:30
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.
LM4.26.3.2 RC12 GOLD user ID:c7d47597a
  •  

Menion

#19
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.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download

john_percy

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

Voluntary and Velocity themes - https://voluntary.nichesite.org
  •  

Menion

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.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download

john_percy

#22
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?
Voluntary and Velocity themes - https://voluntary.nichesite.org
  •  

Menion

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).
mapsVector/_themes/vol_res/legend/Legend.pdf

If it won't work, I'll look at it tomorrow.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

Tobias

Quote from: menion 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.
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
  •  

john_percy



Quote from: menion on May 11, 2020, 22:30:47If 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

Voluntary and Velocity themes - https://voluntary.nichesite.org
  •  

freischneider

Quote from: menion 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.
Internal PDF stored in theme works.
Poco F5, Android 13 / Xiaomi Redmi Note 10 Pro, Android 13
Locus Map 4 Gold (always latest version or Beta)
LM4 User-ID: 11cec7cb5  (Devices-ID poco F5)
  •  

Menion

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
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

john_percy

Next version not available for testing yet?

Voluntary and Velocity themes - https://voluntary.nichesite.org
  •  

john_percy

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

Voluntary and Velocity themes - https://voluntary.nichesite.org
  •