Does Locus Maps 4 still support custom map providers? I moved the mapsOnline directory to the media folder so I can access it and imported providers.xml files are also stored there by Locus but I couldn't find the custom maps anywhere in Locus.
Hello buergi,
app needs to have these config files in the default "mapsOnline" directory. Check app settings > Backup & filesystem > File system manager > Set custom sub-directories > Set "mapsOnline" directory. Do you have the same "media" directory set here?
Hi menion, thanks for your answer. Yes I used the setting you mentioned. The path is set to
/storage/1234-5678/Android/media/menion.android.locus/mapsOnlineIn the folder I placed several xml providers I found. I also noticed that the one-click-installer from here https://github.com/mjk912/LocusMapTweak works and Locus puts the resources in this folder, nevertheless I can't find any of my custom maps in Locus Maps Manager. Where would I find them? Maybe it is also that all providers I found and tested have an invalid xml format or similar. Is there somewhere a reference provider I can test?
Interesting.
You do not see any custom map in the Map manager > "Online" tab? Rather sort maps in this tab by "All maps" (at the top topbar) and now you should have all maps listed at the bottom with "User maps" header. Like on my screenshot.
No, no "User maps" section. I tested it with Android 15. Also tried it on another older device with Android 10 and Locus 4.33.0.
There I have set the path to /sdcard/Locus/mapsOnline
app-folders.jpg
In the custom subfolder of this folder I put, the providers.xml from the docs (https://docs.locusmap.eu/doku.php?id=manual:advanced:customization:online_maps), as /sdcard/Locus/mapsOnline/custom/providers.xml
folder-content.jpg
Even after restarting Locus there is no "User maps"
maps.jpg
I did now manage to get it working. I've no clue what exactly was the problem. I noticed that invalid xml files are just completely ignored and that just closing Locus and restarting it was not sufficient. I force closed it just to make sure the new providers are loaded.
As openpistemap is offline I used OpenTopoMap for testing, maybe it is helpful for someone.
<?xml version="1.0" encoding="UTF-8"?>
<providers>
<provider id="1002" type="0" visible="true" required="true" background="-1">
<name>OSM OpenTopo</name>
<mode>OpenTopo</mode>
<url><![CDATA[http://{s}.tile.opentopomap.org/{z}/{x}/{y}.png?v={ts}]]></url>
<zoomPart>{z}-8</zoomPart>
<zoomMin>8</zoomMin>
<zoomMax>24</zoomMax>
<tileSize>256</tileSize>
<tileScale dpi="0" multi="2.0" replace="19" />
<countries>World</countries>
<usage>hiking</usage>
<serverPart>a;b;c</serverPart>
<extraHeader>Referer#http://locus.asamm.cz/</extraHeader>
</provider>
</providers>
Hmm ... so was there any problem in the XML itself? Not sure, right?