Added ESRI layer.

This commit is contained in:
Kasper D. Fischer 2013-02-22 13:44:00 +00:00
parent 4c02b4c2d8
commit 539dd5240d
Notes: subgit 2018-03-07 17:58:39 +01:00
r474 www/trunk

View File

@ -72,9 +72,9 @@ function init(showGoogle, showStations, showQuakes, noFrils) {
var osmde_map_layer = new OpenLayers.Layer.OSM( var osmde_map_layer = new OpenLayers.Layer.OSM(
'OpenStreetMap (DE)', 'OpenStreetMap (DE)',
[ [
"http://a.tile.openstreetmap.de/tiles/osmde/${z}/${x}/${y}.png", "https://a.tile.openstreetmap.de/tiles/osmde/${z}/${x}/${y}.png",
"http://b.tile.openstreetmap.de/tiles/osmde/${z}/${x}/${y}.png", "https://b.tile.openstreetmap.de/tiles/osmde/${z}/${x}/${y}.png",
"http://c.tile.openstreetmap.de/tiles/osmde/${z}/${x}/${y}.png" "https://c.tile.openstreetmap.de/tiles/osmde/${z}/${x}/${y}.png"
], ],
{ {
attribution: 'Geobasisdaten: Copyright &copy; 2013 <a href="http://www.openstreetmap.org/">OpenStreetMap</a> und Mitwirkende;' + attribution: 'Geobasisdaten: Copyright &copy; 2013 <a href="http://www.openstreetmap.org/">OpenStreetMap</a> und Mitwirkende;' +
@ -113,6 +113,18 @@ function init(showGoogle, showStations, showQuakes, noFrils) {
]); ]);
}; };
// ESRI
var esri_map_layer = new OpenLayers.Layer.XYZ(
'ESRI',
"https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/${z}/${y}/${x}",
{
sphericalMercator: true,
attribution: 'Copyright &copy; 2013 by ESRI. ' +
'This work is licensed under the Web Services and API <a href="http://links.esri.com/agol_tou" target="_blank">Terms of Use</a>.'
}
);
map.addLayers([esri_map_layer]);
// Show quakes // Show quakes
quakes_layer = loadKML(OpenLayers.i18n("Events"), 'quakes.kml', false, true); quakes_layer = loadKML(OpenLayers.i18n("Events"), 'quakes.kml', false, true);
map.addLayer(quakes_layer); map.addLayer(quakes_layer);