Adding OpenMapQuest basemap.
This commit is contained in:
parent
b528e286d2
commit
3cfb348cd6
Notes:
subgit
2018-03-07 17:59:08 +01:00
r815 www/tags/20131023
@ -136,8 +136,24 @@ function init(showGoogle, showStations, showQuakes, noFrils) {
|
||||
]);
|
||||
};
|
||||
|
||||
// OpenMapQuest
|
||||
var omq_map_layer = new OpenLayers.Layer.OSM(
|
||||
'OpenMapQuest',
|
||||
[
|
||||
"http://otile1.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.jpg",
|
||||
"http://otile2.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.jpg",
|
||||
"http://otile3.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.jpg",
|
||||
"http://otile4.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.jpg"
|
||||
],
|
||||
{
|
||||
attribution: 'Kartenbasis: Daten von <a href="http://www.openstreetmap.org/">OpenStreetMap</a> - Veröffentlicht unter <a href="http://opendatacommons.org/licenses/odbl/">ODbL</a><br />' +
|
||||
'Seismische Daten von <a href="http://www.gmg.ruhr-uni-bochum.de/geophysik/seisobs">Ruhr-Universität Bochum</a> - Veröffentlicht unter <a href="http://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>'
|
||||
}
|
||||
);
|
||||
map.addLayers([omq_map_layer]);
|
||||
|
||||
// ESRI
|
||||
var esri_map_layer = new OpenLayers.Layer.XYZ(
|
||||
/* var esri_map_layer = new OpenLayers.Layer.XYZ(
|
||||
'ESRI',
|
||||
"https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/${z}/${y}/${x}",
|
||||
{
|
||||
@ -146,7 +162,7 @@ function init(showGoogle, showStations, showQuakes, noFrils) {
|
||||
'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]);
|
||||
map.addLayers([esri_map_layer]); */
|
||||
|
||||
// Show quakes
|
||||
quakes_layer = loadKML(OpenLayers.i18n("Events"), 'quakes.kml', false, true);
|
||||
@ -185,7 +201,11 @@ function init(showGoogle, showStations, showQuakes, noFrils) {
|
||||
{
|
||||
context: {
|
||||
pntcolor: function(feature){
|
||||
try {
|
||||
return feature.data.pntcolor.value;
|
||||
} catch (e) {
|
||||
return "#E020F0"
|
||||
}
|
||||
},
|
||||
/* if (timeCoding['ages']) {
|
||||
quakeAge = feature.data.age.value;
|
||||
@ -209,6 +229,7 @@ function init(showGoogle, showStations, showQuakes, noFrils) {
|
||||
//return '#ffffff00';
|
||||
}, */
|
||||
pntsize: function(feature){
|
||||
try {
|
||||
// quakeAge = feature.data.age.value;
|
||||
// quakeAge = timeNow - feature.data.time.value;
|
||||
// if ( timeCoding['ages'] && quakeAge > timeCoding['ages'][timeCoding['ages'].length-1] ) {
|
||||
@ -216,6 +237,9 @@ function init(showGoogle, showStations, showQuakes, noFrils) {
|
||||
// } else {
|
||||
return feature.data.pntsize.value;
|
||||
//}
|
||||
} catch (e) {
|
||||
return 6;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user