Locus Map - forum

Content & Tools => Maps => Topic started by: axelpix on November 01, 2023, 10:22:06

Title: New OSM tiles Tracetrack won't work in Locus
Post by: axelpix on November 01, 2023, 10:22:06
There's a new OSM style called Tracetrack. One need to create an API key in order to get it work. On openstreetmap.org they obviously have an issue with their referer settings. So Tracetrack is not shown there currently.
Anyway, I quickly created a key and I'm able to view tiles with it:
https://tile.tracestrack.com/topo_de/16/35268/21855.png?key=dba2cf791715cea19906a9ee1593b349

Trying to see it in LocusMap fails with an unknown error. So what's wrong with my providers code:

<provider id="10014" type="0" visible="true" background="-1">
<name>OSM</name>
<mode>Tracetrack Topo DE</mode>
<url><![CDATA[https://tile.tracestrack.com/topo_de/{z}/{x}/{y}.png?key=...&v={ts}]]></url>
<zoomPart>{z}-8</zoomPart>
<zoomMin>10</zoomMin>
<zoomMax>27</zoomMax>
<tileSize>256</tileSize>
<tileScale dpi="0" multi="2.0" replace="19"/>
<extraHeader><![CDATA[User-Agent#Mozilla/5.0 (Windows NT 6.1; rv:36.0) Gecko/20100101 Firefox/36.0]]></extraHeader>
</provider>

It also doesn't work without the scaling.
Also tried to use a referer. No luck.
Any ideas?
Title: Re: New OSM tiles Tracetrack won't work in Locus
Post by: axelpix on November 01, 2023, 10:39:57
Hm, on openstreetmap.org I managed to see the Tracetrack layer by disabling AdGuard in my browser. So looks like a DNS issue.
Unfortunately disabling AdGuard on the phone still doesn't help Locusmap to show Tracetrack.
Title: Re: New OSM tiles Tracetrack won't work in Locus
Post by: Menion on November 10, 2023, 11:56:38
Hi,
interesting. I've simply copied & pasted your definition into Tracetrack.xml file (placed into Locus/mapsOnline/custom directory and after restarting the app and selecting the map > all works without any issue.

It seems to be some block on your side, sorry. Seems anyway, that your config is correct.
(I've removed a key from it to prevent abuse ...)