Wrong display with custom OSM-like map source (OpenRailWay)

Started by danida12, May 23, 2020, 02:37:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

danida12

Hi all

I am adding this map source in my oruxmaps\mapfiles\customonlinemaps\onlinemapsources.xml

<onlinemapsource uid="2090004">
<name>OSM OpenRailWay - Infrastructure</name>
<url><![CDATA[https://{$s}.tiles.openrailwaymap.org/standard/{$z}/{$x}/{$y}.png]]></url>
<servers>a,b,c</servers>
<maxzoom>18</maxzoom>
<minzoom>6</minzoom>
<projection>MERCATORESFERICA</projection>
<downloadable>1</downloadable>
<cacheable>1</cacheable>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
</onlinemapsource>

However, when displaying the map in the application, the tiles get wrongly displayed / missplaced, see screenshot attached

Would you have any suggestions on how I can fix this?


orux

Quote from: danida12 on May 23, 2020, 02:37:38 PM
Hi all

I am adding this map source in my oruxmaps\mapfiles\customonlinemaps\onlinemapsources.xml

<onlinemapsource uid="2090004">
<name>OSM OpenRailWay - Infrastructure</name>
<url><![CDATA[https://{$s}.tiles.openrailwaymap.org/standard/{$z}/{$x}/{$y}.png]]></url>
<servers>a,b,c</servers>
<maxzoom>18</maxzoom>
<minzoom>6</minzoom>
<projection>MERCATORESFERICA</projection>
<downloadable>1</downloadable>
<cacheable>1</cacheable>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
</onlinemapsource>

However, when displaying the map in the application, the tiles get wrongly displayed / missplaced, see screenshot attached

Would you have any suggestions on how I can fix this?
Hello!

those maps use 512px tiles, you have to use:
<projection>MERCATORESFERICAx512</projection>


orux




danida12

Quote from: orux on May 23, 2020, 06:00:20 PM
Hello!

those maps use 512px tiles, you have to use:
<projection>MERCATORESFERICAx512</projection>
orux

That works perfectly, thanks!

Now I guess I have to find another 512 pixel base map - I can't seem to be able to create a composite map with something like OpenStreetMap as it has a different projection...