This object is in archive! 

maps.nls.uk (historic Ordnance Survey maps)

Will Dashwood shared this question 22 months ago
Answered

Hello,

Does anyone know how to create a providers.xml that would allow access to maps.nls.uk in Locus? It would be a fantastic and valuable addition! There's some information on their API here but it doesn't mean much to me I'm afraid.

https://maps.nls.uk/projects/api/

Thanks in advance!

Will

Replies (2)

photo
1

Hi Will,

I quickly checked the mentioned service and it's complicated to create some general providers.xml because the API key for MapTiler service is required. It's needed:

- register to Map Tiler Cloud

- open section Tiles > UK > select service (type of his. map) you'd like to display in Locus

- copy URL from Raster tiles section - eq. https://api.maptiler.com/tiles/uk-osgb63k1955/{z}/{x}/{y}.jpg?key=xxxThisIsYourSecretApiKeyxxx The last part of URL is your private API key
- use this URL for providers.xml file as described at https://docs.locusmap.app/doku.php?id=manual:advanced:customization:online_maps

Thanks, Petr

EDIT: It should be possible to add map as WMTS service into Locus but a higher plan at Map Tiler Cloud is required.

photo
1

Thank you. I didn't think it would be that easy! Much easier than adding Bing maps. I got it working with the attached. It also includes my Bing maps code for modern OS maps but that could be ignored. I've also stripped my API key out of course.


I think zoom levels need tweaking and probably other variables too but it does the job. Any feedback welcome!

Thanks

photo
1

great, but please remove the Bing part. I guess it brakes their terms of use
Thanks, Petr

photo
1

Sorry about that. Here's an updated file. Not sure how to delete the previous one.

photo
1

Thank you. I removed the old one.

Replies have been locked on this page!