Hello,
Sometime I should be good do have the possibility to get a map legend, like on our good old paper maps.
I know it is difficult to do thos with image maps, but for vector maps, themes should be an exploitable data source.
(Like in this link : http://www.openandromaps.org/en/legend/elevate-mountain-hike-theme)
Is it possible then to create a new type of shortcut for displaying this?
Regards
Had the same desire and put it to wishlist
http://forum.locusmap.eu/index.php?topic=3558.msg25429.msg#25429
You can support the wish with the star rating on top of the page.
So we have to wait...
Hi,
Legend for internal vector themes is available in the app:
- Menu > Map > Vector > long tap on map
- below the themes is section "Basic info" which contains link to the Legend
or direct link: http://docs.locusmap.eu/doku.php/maps:legend:vector_maps_legend
Thanx Pet, but the link doesn't exist :(
And i guess the device has to be online to display the legend. ..?
Christian
I also had the wish of convenient way to show legend right in app for any format of raster maps providing the legend is stored somewhere on sdcard as raster image (jpg, png, ...). Leaving locus and locating it into media gallery is sometimes hard (ie. possible app exits, fix is lost etc.)
_____________
Sent from LT22i using Tapatalk
a legend can possibly created 'on the fly' or 'at first sight' from the info provided by the xml file of each theme. that can be stored near by the theme.xml as name_of_the_theme_legend.xml. If the theme is deleted the legend will disappear also :)
And it should be a nomenclature for this legend.xml so a theme designer can create the file by himself and Locus Map can use it.
only a idea...
Christian
yes, we were already thinking about some "Automatically generated legend" based on selected theme - but it won't be so easy and we have currently more important things to do ... but, yes, probably best possible solution
Quote from: Christian on January 11, 2014, 12:00:19
but the link doesn't exist :(
And i guess the device has to be online to display the legend. ..?
Link is available only for Locus vector maps downloaded from store
And yes device has to be online
Another possibility is to create a map file that is actually a legend, this would then automatically show the current theme and would be easy to scroll and zoom around...
Indeed. You can create an OSM syntax XML file with all elements of the theme placed nicely below or besides each other. Short segment of ways, places, amenities, all of them.
Somewhat tedious manually, but doable. Automation is also thinkable.
Yet, I am not a volunteer for either :-)
An year ago, we tried to do something like this with @voldapet directly over Locus Map ...
As I see, I have also a code in the app. But for reason I do not remember, we have canceled this task ...
A pity. This would be a very welcome enhancement.
From a quick search (https://help.locusmap.eu/topics/idea/status/all/category/1/sort/updated/page/1) 2 people have asked a similar question, and one suggestion (https://help.locusmap.eu/topic/shortcuts-to-legends) has 23 votes from 4 years ago.
Yes, it would be nice if you could show it on the map content panel.
Is there a way to save it as a PDF on the phone and then call it up via a link in the sidebar or something like the links in favorites. That would be an acceptable interim solution until there is a good possibility via the Map Content Panel.
An idea: currently there are 2 types of buttons that can be added to function panels:
- Add function button
- Add link to app
How about 3rd type: Add link to file? This could for this discussion be a PDF map legend file, but could be any useful file in practice.
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
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.
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
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 (https://forum.locusmap.eu/index.php?action=dlattach;topic=6924.0;attach=7184) from this topic (https://forum.locusmap.eu/index.php?topic=6924.msg59096#msg59096). 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.
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.
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
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 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?
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.
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
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
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.
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
Next version not available for testing yet?
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
Ah right, not very forgiving. Thanks, improved.
Quote from: menion 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
Thanks, works well, even with
- theme.pdf (engl. for general use)
- theme_de.pdf (only for german)
I've worked out that I can use a .lnk file to map multiple theme files to the same pdf legend file:
- my_theme_v3.xml
- my_theme_v4.xml
- my_theme_legend.pdf
- my_theme_v3.lnk = "mapsVector/_themes/my_theme/my_theme_legend.pdf"
- my_theme_v4.lnk = "mapsVector/_themes/my_theme/my_theme_legend.pdf"
The above would allow to have a version of the theme for v3 maps and a version for v4 maps. But both use the same pdf legend file. (Which menion originally said was not possible...)
I've tested this and it works with the latest release of LM.
Question: Can I rely on this usage of a .lnk file (is this an intended usage)?
I'd like to know that this will remain in future releases of LM before I start to do anything time consuming with theme/legend files.
As far as I know that's one of the points in having this link functionality.
Sent from my moto g(6) plus using Tapatalk
If there aren't any suggestions on how to make it better, consider as a final solution.
This functionality is fine.
I've got somewhat frustrated at trying to set up responsive HTML pages for the legend for my themes. I seem to have forgotten a fair bit of my HTML and got left behind in current developments.
I like the look of the Locus version 3 key. Is there any way to make that available as a template?
Sent from my moto g(6) plus using Tapatalk
@john_percy - I'm sorry but what HTML template do you mean? The page below ? https://docs.locusmap.eu/doku.php?id=manual:user_guide:maps_locusmaps:legend
@voldapet
I had in mind the html page that I find in the app by a long tap on the internal Locus v3 themes in recent versions. I've only just realised it is exactly the same as online knowledge base page and is consequently not what I would want starting from scratch.
I see. This legend is quite obsolete and I'm planning to create the new one because our plans with LoMaps
Quote from: karlchick on June 02, 2020, 14:27:21I've worked out that I can use a .lnk file to map multiple theme files to the same pdf legend file:
- my_theme_v3.xml
- my_theme_v4.xml
- my_theme_legend.pdf
- my_theme_v3.lnk = "mapsVector/_themes/my_theme/my_theme_legend.pdf"
- my_theme_v4.lnk = "mapsVector/_themes/my_theme/my_theme_legend.pdf"
The above would allow to have a version of the theme for v3 maps and a version for v4 maps. But both use the same pdf legend file. (Which menion originally said was not possible...)
I've tested this and it works with the latest release of LM.
Question: Can I rely on this usage of a .lnk file (is this an intended usage)?
I'd like to know that this will remain in future releases of LM before I start to do anything time consuming with theme/legend files.
I've just tried accessing the theme legends for various themes, and it seems the only ones that work are:
- PDF legend in the same directory as the theme.xml with the same name, e.g. Elevate.pdf
- Webpage listed in theme.lnk.
what doesn't work are any PDF legends pointed to by the theme.lnk with a different name. I've tried the above "mapsVector/_themes/my_theme/my_theme_legend.pdf" and also no path i.e. "my_theme_legend.pdf", both result in a toaster message flashing up saying "Invalid value: <content of .lnk file>".
has something changed? Can I no longer map several themes to the same/single PDF legend?
The Elements theme links to Elevate.pdf from a lnk file. That works for me in both Locus Classic and Locus v4, so it still is possible. I think that's what you are wanting to achieve so it's probably worth working from there.