Skip to content
Open
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
167 changes: 155 additions & 12 deletions leaflet-providers.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,86 @@
Dataviz: 'dataviz'
}
},
MapTilerTiles: {
// For the NLS maps, see NLS below
url: 'https://api.maptiler.com/tiles/{variant}/{z}/{x}/{y}{format}?key={apikey}',
options: {
variant: 'satellite',
attribution: '<a href="https://www.maptiler.com/copyright">© MapTiler</a>',
apikey: '<insert your api key here>'
},
variants: {
handdrawnhillshade: {
options: {
variant: 'hand-drawn-hillshade',
format: '.webp',
minZoom: 0,
maxZoom: 7
}
},
satellite: {
options: {
variant: 'satellite-v2',
format: '.jpg',
minZoom: 0,
maxZoom: 22
}
},
satellitemediumres: {
options: {
variant: 'satellite-mediumres',
format: '.jpg',
minZoom: 0,
maxZoom: 13
}
},
satellitemediumres2018: {
options: {
variant: 'satellite-mediumres-2018',
format: '.jpg',
minZoom: 0,
maxZoom: 13
}
},
czsatellite5514: {
options: {
variant: 'cz-satellite-5514',
format: '.jpg',
minZoom: 0,
maxZoom: 9
}
},
jpforest: {
options: {
variant: 'jp-forest',
format: '.png'
}
},
jphillshade: {
options: {
variant: 'jphillshade',
format: '.png'
}
},
nltopraster: {
options: {
variant: 'nl-topraster',
format: '.png',
minZoom: 5,
maxZoom: 16
}
},
nltopraster28992: {
options: {
variant: 'nl-topraster-28992',
format: '.png',
minZoom: 0,
maxZoom: 11
}
}
}
},

TomTom: {
url: 'https://{s}.api.tomtom.com/map/1/tile/{variant}/{style}/{z}/{x}/{y}.{ext}?key={apikey}',
options: {
Expand Down Expand Up @@ -984,30 +1064,93 @@
}
},
NLS: {
// NLS maps are copyright National library of Scotland.
// NLS maps are copyright National Library of Scotland.
// http://maps.nls.uk/projects/subscription-api
// Please contact NLS for anything other than non-commercial low volume usage
// Please contact NLS for anything other than non-commercial low-volume usage
//
// 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://api.maptiler.com/tiles/{variant}/{z}/{x}/{y}.jpg?key={apikey}',
url: 'https://api.maptiler.com/tiles/{variant}/{z}/{x}/{y}{format}?key={apikey}',
options: {
attribution: '<a href="http://maps.nls.uk/projects/subscription-api">National Library of Scotland Historic Maps</a>',
bounds: [[49.6, -12], [61.7, 3]],
attribution: '<a href="http://maps.nls.uk/projects/subscription-api">National Library of Scotland Historic Maps / MapTiler</a>',
format: '.jpg',
minZoom: 1,
maxZoom: 18,
apikey: '<insert your api key here>'
},
variants: {
osgb63k1885: 'uk-osgb63k1885',
osgb1888: 'uk-osgb1888',
osgb10k1888: 'uk-osgb10k1888',
osgb1919: 'uk-osgb1919',
osgb25k1937: 'uk-osgb25k1937',
osgb63k1955: 'uk-osgb63k1955',
oslondon1k1893: 'uk-oslondon1k1893'
osgb63k1885: {
options: {
variant: 'uk-osgb63k1885',
bounds: [[49.6, -12], [61.7, 3]],
format: '.png',
minZoom: 1,
maxZoom: 16
}
},
osgb1888: {
options: {
variant: 'uk-osgb1888',
bounds: [[49.6, -12], [61.7, 3]],
format: '',
minZoom: 1,
maxZoom: 17
}
},
osgb10k1888: {
options: {
variant: 'uk-osgb10k1888',
bounds: [[49.6, -12], [61.7, 3]],
format: '.jpg',
minZoom: 1,
maxZoom: 17
}
},
osgb1919: {
options: {
variant: 'uk-osgb1919',
bounds: [[49.6, -12], [61.7, 3]],
format: '.jpg',
minZoom: 1,
maxZoom: 14
}
},
osgb25k1937: {
options: {
variant: 'uk-osgb25k1937',
bounds: [[49.6, -12], [61.7, 3]],
format: '.jpg',
minZoom: 1,
maxZoom: 16
}
},
osgb63k1955: {
options: {
variant: 'uk-osgb63k1955',
bounds: [[49.6, -12], [61.7, 3]],
format: '.jpg',
minZoom: 1,
maxZoom: 15
}
},
oslondon1k1893: {
options: {
variant: 'uk-oslondon1k1893',
format: '.jpg',
minZoom: 9,
maxZoom: 20
}
},
baire250k1940: {
options: {
variant: 'uk-baire250k1940',
format: '.png',
minZoom: 5,
maxZoom: 12
}
},
}
},
JusticeMap: {
Expand Down