view gnv/src/main/webapp/scripts/gnviewer.js @ 1018:4eb7fa8a36ed

Changed OpenLayers MouseDefault control with an OpenLayers Navigation control. Before panning the map, the user needs to activate this control (issue311). gnv/trunk@1248 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 30 Jun 2010 06:30:02 +0000
parents d2582f75b144
children
line wrap: on
line source
function displayOverlay() {
    adjustOverlaySize();
    showDiv("overlay");
    showDiv("overlayContent");
}

function adjustOverlaySize() {
    var lHeight = document.getElementById("page").scrollHeight;
    //alert(lHeight);
    var lOverlay = document.getElementById("overlay");
    lOverlay.style.height = lHeight + 'px';
}

function showDiv(pName) {
    var el = document.getElementById(pName);
    el.style.visibility = (el.style.visibility == "visible") ? "hidden" : "visible";
}

http://dive4elements.wald.intevation.org