Skip to content
Snippets Groups Projects
Commit 39fd888d authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Add code comments

parent d16d6c94
Branches
No related tags found
No related merge requests found
......@@ -193,6 +193,8 @@ msLoadMap(): Unable to access file. (/disks/data01/mapserver/wms/SEPTREFFUM/SEPT
setCurrentDate(todayLayerIndex);
switchLayer(todayLayerIndex);
// Set zoom and center either based on what the user previously had set,
// or fit the map to the layer's extent
var storedMapSettings = getLocalSettings([
"gridmap.longitude",
"gridmap.latitude",
......@@ -225,6 +227,7 @@ msLoadMap(): Unable to access file. (/disks/data01/mapserver/wms/SEPTREFFUM/SEPT
map.on('singleclick', displayQueryResult);
// Store user's zoom/pan preferences for the next browser session
map.on('moveend', function(evt) {
// Store map settings
var centerCoordinate = ol.proj.transform(map.getView().getCenter(), map.getView().getProjection().getCode(),'EPSG:4326');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment