Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tile urls of NLS (National Library of Scotland) #535

Merged
merged 4 commits into from
Jan 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions leaflet-providers.js
Original file line number Diff line number Diff line change
Expand Up @@ -976,20 +976,28 @@
},
NLS: {
// NLS maps are copyright National library of Scotland.
// http://maps.nls.uk/projects/api/index.html
// http://maps.nls.uk/projects/subscription-api
// Please contact NLS for anything other than non-commercial low volume usage
//
// Map sources: Ordnance Survey 1:1m to 1:63K, 1920s-1940s
// Map sources: Ordnance Survey 1:1m to 1:63K, 1880s-1961
// z0-9 - 1:1m
// z10-11 - quarter inch (1:253440)
// z12-18 - one inch (1:63360)
url: 'https://nls-{s}.tileserver.com/nls/{z}/{x}/{y}.jpg',
url: 'https://api.maptiler.com/tiles/{variant}/{z}/{x}/{y}.jpg?key={apikey}',
options: {
attribution: '<a href="http://geo.nls.uk/maps/">National Library of Scotland Historic Maps</a>',
attribution: '<a href="http://maps.nls.uk/projects/subscription-api">National Library of Scotland Historic Maps</a>',
bounds: [[49.6, -12], [61.7, 3]],
minZoom: 1,
maxZoom: 18,
subdomains: '0123',
maxZoom: 18
},
variants: {
osgb63k1885: 'uk-osgb63k1885',
osgb1888: 'uk-osgb1888',
osgb10k1888: 'uk-osgb10k1888',
osgb1919: 'uk-osgb1919',
osgb25k1937: 'uk-osgb25k1937',
osgb63k1955: 'uk-osgb63k1955',
oslondon1k1893: 'uk-oslondon1k1893'
}
},
JusticeMap: {
Expand Down