Code cleaning.

This commit is contained in:
Kasper D. Fischer 2013-02-22 15:26:37 +00:00
parent 23ea60ba31
commit b619bb6a3c
Notes: subgit 2018-03-07 17:58:40 +01:00
r477 www/trunk

View File

@ -2,7 +2,7 @@
* JavaScript code to generate maps used by the * JavaScript code to generate maps used by the
* Seismological Observatory of the Ruhr-University Bochum * Seismological Observatory of the Ruhr-University Bochum
* *
* Copyright 2012 Kasper D. Fischer <kasper.fischer@rub.de> * Copyright 2013 Kasper D. Fischer <kasper.fischer@rub.de>
* *
* License * License
* *
@ -61,8 +61,7 @@ function init(showGoogle, showStations, showQuakes, noFrils) {
new OpenLayers.Control.Navigation(), new OpenLayers.Control.Navigation(),
new OpenLayers.Control.Permalink({anchor: true}), new OpenLayers.Control.Permalink({anchor: true}),
new OpenLayers.Control.ScaleLine({geodesic: true}) new OpenLayers.Control.ScaleLine({geodesic: true})
], ]
zoom: 9
} }
); );
}; };
@ -218,9 +217,6 @@ function init(showGoogle, showStations, showQuakes, noFrils) {
if (!map.getCenter()) { if (!map.getCenter()) {
map.setCenter(new OpenLayers.LonLat(7.5, 51.8).transform('EPSG:4326','EPSG:900913'), 9); map.setCenter(new OpenLayers.LonLat(7.5, 51.8).transform('EPSG:4326','EPSG:900913'), 9);
} }
/* if (!map.getZoom()) {
map.zoomTo(9);
} */
// Enable animated zoom // Enable animated zoom
for (var i=map.layers.length-1; i>=0; --i) { for (var i=map.layers.length-1; i>=0; --i) {