Skip to content

Commit bc6260e

Browse files
boldtrnkarussell
authored andcommitted
Add Kurviger Liberty and remove old Openmapsurfer Tiles (graphhopper#1714)
1 parent f9a16ed commit bc6260e

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

web/src/main/resources/assets/js/config/options.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ exports.options = {
1313
routing: {host: '', api_key: ''},
1414
geocoding: {host: '', api_key: ''},
1515
thunderforest: {api_key: ''},
16-
omniscale: {api_key: ''}
16+
omniscale: {api_key: ''},
17+
mapilion: {api_key: ''}
1718
};

web/src/main/resources/assets/js/config/tileLayers.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ var tfAddition = '';
33
if (ghenv.thunderforest.api_key)
44
tfAddition = '?apikey=' + ghenv.thunderforest.api_key;
55

6+
var mapilionAddition = '';
7+
if (ghenv.mapilion.api_key)
8+
mapilionAddition = '?key=' + ghenv.mapilion.api_key;
9+
610
var osAPIKey = 'mapsgraph-bf48cc0b';
711
if (ghenv.omniscale.api_key)
812
osAPIKey = ghenv.omniscale.api_key;
@@ -21,10 +25,6 @@ var omniscale = L.tileLayer('https://maps.omniscale.net/v2/' +osAPIKey + '/style
2125
attribution: osmAttr + ', &copy; <a href="https://maps.omniscale.com/">Omniscale</a>'
2226
});
2327

24-
var openMapSurfer = L.tileLayer('http://korona.geog.uni-heidelberg.de/tiles/roads/x={x}&y={y}&z={z}', {
25-
attribution: osmAttr + ', <a href="http://korona.geog.uni-heidelberg.de/contact.html">GIScience Heidelberg</a>'
26-
});
27-
2828
// Not an option as too fast over limit.
2929
// var mapbox= L.tileLayer('https://{s}.tiles.mapbox.com/v4/peterk.map-vkt0kusv/{z}/{x}/{y}' + (retinaTiles ? '@2x' : '') + '.png?access_token=pk.eyJ1IjoicGV0ZXJrIiwiYSI6IkdFc2FJd2MifQ.YUd7dS_gOpT3xrQnB8_K-w', {
3030
// attribution: osmAttr + ', <a href="https://www.mapbox.com/about/maps/">&copy; MapBox</a>'
@@ -50,6 +50,11 @@ var thunderNeighbourhood = L.tileLayer('https://{s}.tile.thunderforest.com/neigh
5050
attribution: osmAttr + ', <a href="https://thunderforest.com/maps/neighbourhood/" target="_blank">Thunderforest Neighbourhood</a>'
5151
});
5252

53+
var kurvigerLiberty = L.tileLayer('https://{s}-tiles.mapilion.com/raster/styles/kurviger-liberty/{z}/{x}/{y}{r}.png'+mapilionAddition, {
54+
subdomains: ['a', 'b', 'c', 'd', 'e'],
55+
attribution: osmAttr + ',&copy; <a href="https://kurviger.de/" target="_blank">Kurviger</a> &copy; <a href="https://mapilion.com/attribution" target="_blank">Mapilion</a> <a href="http://www.openmaptiles.org/" target="_blank">&copy; OpenMapTiles</a>'
56+
});
57+
5358
var wrk = L.tileLayer('http://{s}.wanderreitkarte.de/topo/{z}/{x}/{y}.png', {
5459
attribution: osmAttr + ', <a href="http://wanderreitkarte.de" target="_blank">WanderReitKarte</a>',
5560
subdomains: ['topo4', 'topo', 'topo2', 'topo3']
@@ -78,9 +83,9 @@ var availableTileLayers = {
7883
"TF Cycle": thunderCycle,
7984
"TF Outdoors": thunderOutdoors,
8085
"TF Neighbourhood": thunderNeighbourhood,
86+
"Kurviger Liberty": kurvigerLiberty,
8187
"Lyrk": lyrk,
8288
"WanderReitKarte": wrk,
83-
"OpenMapSurfer": openMapSurfer,
8489
"Sorbian Language": sorbianLang,
8590
"OpenStreetMap.de": osmde
8691
};

0 commit comments

Comments
 (0)