Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - tipichris

#1
Troubles & Questions / providers.xml and Android 11
December 24, 2021, 17:06:17
Hi guys
I've just acquired a new phone, with Android 11 installed. I'm trying to set up my LocusPro installation, but I can't find any way to install my custom providers.xml. How can do this?
#2
The opendata 1:50,000 mapping is not the OS Landranger maps that we all know and love. I'm also not aware of it having been reprojected in a way that is usable by Locus, unlike the Streetview data (but see here for a demo of using the data).

Locus used to include OS Landranger and Explorer maps but had to withdraw them because of copyright issues. You may find an addon in the market that puts these maps back. Just to look at with your browser, you can find these map series on Bing maps.
#3
Quote from: "mickey_megabyte"one of the online maps in oruxmaps is "streetview 1:10000 (UK)"

That's interesting. These appear to be the Ordnance Survey Street View mapping. This is published under the OS Open Licence, which is aligned with the Creative Commons Attribution licence. So in licencing terms it should be possible for Locus to include this in its distribution, with some attribution. The tiles have been reprojected to suit the Open Street Map system and are available at http://os.openstreetmap.org/. A suitable stanza for providers.xml seems to be

<provider id="10200" type="0" visible="true" required="true" background="-1">
<name>OS Street View</name>
<mode>Classic</mode>
<url><![CDATA[http://a.os.openstreetmap.org/sv/{z}/{x}/{y}.png]]></url>
<zoomPart>{z}-8</zoomPart>
<zoomMin>14</zoomMin>
<zoomMax>25</zoomMax>
<tileSize>256</tileSize>
  <extraHeader>Referer#http://os.openstreetmap.org/</extraHeader>
</provider>
#4
Hi Menion

Is there any way to tell Locus not to cache tiles, or to cache for only a limited period? For example, I would like to try adding some traffic information, but obviously this changes quickly so I would need to disable, or limit, caching.
#5
Jaime

The URLs you give look like they contain 'quadkeys', as in Locus type 5, but split up into a directory structure. There may be alternative URLs, eg

http://ecn.t0.tiles.virtualearth.net/ti ... ctSet=mmCB
http://ecn.t0.tiles.virtualearth.net/ti ... ctSet=mmOS

Using type 5 these can be constructed something like
http://ecn.t0.tiles.virtualearth.net/tiles/r{c}.png?g=677&productSet=mmOS
#6
Hi Menion

Thanks for the great work. There seems to be a small problem with the quadkeys (type 5). Locus is adding an additional leading 0 to the key. For example, for a tile not far from my house, the quadkey should be 031313101123333, in central England. But Locus is generating 0031313101123333. Which is somewhere in the Arctic Ocean! This is using 1.5.2.2
#7
Hi Berkley

Any clues how to add the maps that aren't in your providers.xml file? The one I really used a lot is missing, and their URLs don't use {x} and {y}, but some other thing I mentioned at viewtopic.php?f=21&t=45#p2458
#8
So as I understand the placeholders {z}, {x} and {y} are available for constructing the URL in the XML file. But is it possible to construct 'quadkeys' used by Bing and such, as described here: http://msdn.microsoft.com/en-us/library/bb259689.aspx