Open Street Maps .XML file code

Started by twoten, January 20, 2021, 05:18:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

twoten

I am trying to add the OSM maps as displayed here:
https://www.openstreetmap.org/export#map=15/51.6000/-0.4816
This is also the same as displayed on the Viewranger site under Open Street Map view.
https://my.viewranger.com/user/routes/add

It's similar to openstreetmap Mapnik but the footpaths are displayed better. I have tried the latest Vector graphics maps but not all the footpaths are on the map.

Any help would be appreciated.

afgb1977

Quote from: twoten on January 20, 2021, 05:18:21 PM
I am trying to add the OSM maps as displayed here:
https://www.openstreetmap.org/export#map=15/51.6000/-0.4816
This is also the same as displayed on the Viewranger site under Open Street Map view.
https://my.viewranger.com/user/routes/add

It's similar to openstreetmap Mapnik but the footpaths are displayed better. I have tried the latest Vector graphics maps but not all the footpaths are on the map.

Any help would be appreciated.

Hi, try the following OpenStreetMap WiKi URL:
https://wiki.openstreetmap.org/wiki/Tile_servers

The standard OSM map has various styles (French, German) and is also the basis for other maps (MapTiler, MapBox, ThunderForest ...).
Dozens of variations of the original map can be found.

In the previous URL you can find a list with the most characteristic maps and their URLs to connect in OruxMaps.

twoten


Thanks afgb1977 I'll have a play and see if any of these are the same.

twoten

I have added this to the onlinemapsources.xml to try, it shows in the list of online sources but the map doesn't display when selected.

<onlinemapsource uid="1958">
<name>OpenStreetMap Test (UK)</name>
<url>https://b.tile.openstreetmap.org/${z}/${x}/${y}.png</url>
<website><a href="http://www.openstreet.map.org/">OpenStreetMap</a></website>
<minzoom>0</minzoom>
<maxzoom>17</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers>a,b,c</servers>
<httpparam name="User-Agent">{om}</httpparam>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
<maxtilesday>0</maxtilesday>
<maxthreads>0</maxthreads>
<xop/>
<yop/>
<zop/>
<qop/>
<sop/>
</onlinemapsource>


What am I missing?

afgb1977

#4
Quote from: twoten on January 20, 2021, 05:50:47 PM
I have added this to the onlinemapsources.xml to try, it shows in the list of online sources but the map doesn't display when selected.

<onlinemapsource uid="1958">
<name>OpenStreetMap Test (UK)</name>
<url>https://b.tile.openstreetmap.org/${z}/${x}/${y}.png</url>
<website><a href="http://www.openstreet.map.org/">OpenStreetMap</a></website>
<minzoom>0</minzoom>
<maxzoom>17</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers>a,b,c</servers>
<httpparam name="User-Agent">{om}</httpparam>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
<maxtilesday>0</maxtilesday>
<maxthreads>0</maxthreads>
<xop/>
<yop/>
<zop/>
<qop/>
<sop/>
</onlinemapsource>


What am I missing?

This URL is correct, but it is misconfigured. Try the following:

<url><[CDATA[https://{$s}.tile.openstreetmap.org/{$z}/{$x}/{$y}.png]]></url>

You can also use my personal file. I have about 200 maps and layers set up for OruxMaps.
I have a group on Telegram for OruxMaps, anyone can visit us. I leave the link below.

GPS OruxMaps 💬
OruxMaps Users Group. 🌐
https://t.me/OruxMapsGPS

twoten


Thanks again afgb1977, I'll check out the Telegram group.