This object is in archive! 

OpenRailwayMap custom provider displays incorrectly after downgrade to 3.38

Maciej shared this problem 5 years ago
Solved

Was working fine before 3.38. Tried to adjust tileSize but with no success (actual tile size is 512 but it fits to 256)


<provider id="10930" type="0" visible="true" background="-1">

<name>OpenRailwayMap</name>

<mode>Infrastructure</mode>

<countries>World</countries>

<url><![CDATA[http://{s}.tiles.openrailwaymap.org/standard/{z}/{x}/{y}.png]]></url>;

<serverPart>a;b;c</serverPart>

<zoomPart>{z}-8</zoomPart>

<zoomMin>10</zoomMin>

<zoomMax>27</zoomMax>

<tileSize>256</tileSize>

<usage>overlay</usage>

</provider>

Replies (1)

photo
1

Good day Maciej,

just yesterday I described this problem here. Let me know if all is clear.

Menion

photo
1

Thanks, but I did not manage to do it. I set multi at 2.0 and I do not see the difference. In addition, here there is no parameter {ts} and I do not understand why it is there, since in your example it would have a constant value of 19, what does it mean?

photo
1

Okay, I caught up. {ts} must be and that's it. I replaced it with a piece of the URL and it works now. Thanks.

photo
1

The main purpose of this feature was to offer a dynamic map that changes based on device DPI. So map provider may set that for DPI 120, the parameter will be "2x", for DPI 240, it will be "3x" and so on. Because of this, "ts" is required. In "Strava" example, I used value "19", just to replace something as you correctly understand.

Glad it works now for you.

Replies have been locked on this page!