OruxMaps

Uncategorized Boards => MAPAS/MAPS => Topic started by: twoten on January 20, 2021, 05:18:21 PM

Title: Open Street Maps .XML file code
Post by: 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 (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 (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.
Title: Re: Open Street Maps .XML file code
Post by: afgb1977 on January 20, 2021, 05:28:47 PM
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 (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 (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.
Title: Re: Open Street Maps .XML file code
Post by: twoten on January 20, 2021, 05:35:38 PM

Thanks afgb1977 I'll have a play and see if any of these are the same.
Title: Re: Open Street Maps .XML file code
Post by: 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?
Title: Re: Open Street Maps .XML file code
Post by: afgb1977 on January 21, 2021, 12:21:46 AM
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
Title: Re: Open Street Maps .XML file code
Post by: twoten on January 21, 2021, 09:26:21 AM

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