This object is in archive! 

Setting an X/Y offset in providers.xml

Tim Haeusermann shared this question 9 years ago
Answered

Looking at http://docs.locusmap.eu/doku.php?id=manual:advanced:customization:online_maps I've seen that I can use for example <zoomPart>{z}-8</zoomPart> to correct for zoom offsets, how can I do the same for X and Y? I.e. subtract/add a number to convert from Locus' coordinates to the one the tile server is using?


Thanks in advance!

Replies (2)

photo
1

I tried using the map offset feature, but it would offset all my maps. Also it seems to have some inaccuracy issues, floating point rounding errors maybe(Offset is around 1e7 meters)?

photo
1

Good day Tim,


this is unfortunately not possible over configuration XML file.


Issue in offset over internal feature - it is highly possible as offset feature works for a small values as it's defined in metres in WGS84 system and is not recomputed to current map projection. So on longer distances, there may be an inaccuracy.


So generally, system of custom map providers is made for simple Google-like map servers, not some special servers with custom/shifted map projections.


Thanks for understanding.

photo
1

Thanks for your quick reply. I've now set up a proxy server to convert between the different projections.

Replies have been locked on this page!