Adding Komoot tile service.
This commit is contained in:
parent
70f933d8e2
commit
1d286c3f50
Notes:
subgit
2018-03-07 17:59:11 +01:00
r835 www/branches/life
12
www/map.js
12
www/map.js
@ -61,6 +61,12 @@ function addEventMarker(id, lat, lng, mag, type) {
|
|||||||
case 'earthquake':
|
case 'earthquake':
|
||||||
marker = L.starMarker(L.latLng(lat, lng), markerOptions);
|
marker = L.starMarker(L.latLng(lat, lng), markerOptions);
|
||||||
break;
|
break;
|
||||||
|
case 'explosion':
|
||||||
|
markerOptions['numberOfSides'] = 6;
|
||||||
|
markerOptions['radius'] = 2.0*markerOptions['radius'];
|
||||||
|
markerOptions['innerRadius'] = 0.3*markerOptions['radius'];
|
||||||
|
marker = L.regularPolygonMarker(L.latLng(lat, lng), markerOptions);
|
||||||
|
break;
|
||||||
case 'quarry blast':
|
case 'quarry blast':
|
||||||
markerOptions['numberOfPoints'] = 7;
|
markerOptions['numberOfPoints'] = 7;
|
||||||
markerOptions['innerRadius'] = 0.3*markerOptions['radius'];
|
markerOptions['innerRadius'] = 0.3*markerOptions['radius'];
|
||||||
@ -152,6 +158,12 @@ $(document).ready(function() {
|
|||||||
attribution: 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'
|
attribution: 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'
|
||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
break;
|
break;
|
||||||
|
case 'komoot': // add OpenStreetMap.DE tile layer
|
||||||
|
L.tileLayer('//www.komoot.de/tiles/{s}/{z}/{x}/{y}.png',
|
||||||
|
{
|
||||||
|
attribution: 'Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a> | Tiles Courtesy of <a href="http://www.komoot.de/">Komoot</a>',
|
||||||
|
}).addTo(map);
|
||||||
|
break;
|
||||||
case 'mapquestgray': // add MapQuestOSM tile layer
|
case 'mapquestgray': // add MapQuestOSM tile layer
|
||||||
L.tileLayer.grayscale('http://otile{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpg',
|
L.tileLayer.grayscale('http://otile{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpg',
|
||||||
{
|
{
|
||||||
|
@ -158,6 +158,12 @@ $(document).ready(function() {
|
|||||||
attribution: 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'
|
attribution: 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'
|
||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
break;
|
break;
|
||||||
|
case 'komoot': // add OpenStreetMap.DE tile layer
|
||||||
|
L.tileLayer('//www.komoot.de/tiles/{s}/{z}/{x}/{y}.png',
|
||||||
|
{
|
||||||
|
attribution: 'Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a> | Tiles Courtesy of <a href="http://www.komoot.de/">Komoot</a>',
|
||||||
|
}).addTo(map);
|
||||||
|
break;
|
||||||
case 'mapquestgray': // add MapQuestOSM tile layer
|
case 'mapquestgray': // add MapQuestOSM tile layer
|
||||||
L.tileLayer.grayscale('http://otile{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpg',
|
L.tileLayer.grayscale('http://otile{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpg',
|
||||||
{
|
{
|
||||||
@ -214,8 +220,4 @@ $(document).ready(function() {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// print icon
|
|
||||||
// L.easyPrint().addTo(map);
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user