Mercurial > dive4elements > gnv-client
annotate gnv/src/main/webapp/scripts/gnviewer.js @ 979:96db238fc5ab
Fixed bug that the 'Add Layer'-Button was not correctly displayed if a new WMS-Capabilities-Document was loaded.
gnv/trunk@1155 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Fri, 04 Jun 2010 08:32:29 +0000 |
parents | d2582f75b144 |
children |
rev | line source |
---|---|
26
01e5ae4e7a12
Added existing JavaScripte-Code to the Project
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1 function displayOverlay() { |
01e5ae4e7a12
Added existing JavaScripte-Code to the Project
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
2 adjustOverlaySize(); |
01e5ae4e7a12
Added existing JavaScripte-Code to the Project
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
3 showDiv("overlay"); |
01e5ae4e7a12
Added existing JavaScripte-Code to the Project
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
4 showDiv("overlayContent"); |
01e5ae4e7a12
Added existing JavaScripte-Code to the Project
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
5 } |
01e5ae4e7a12
Added existing JavaScripte-Code to the Project
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
6 |
01e5ae4e7a12
Added existing JavaScripte-Code to the Project
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
7 function adjustOverlaySize() { |
01e5ae4e7a12
Added existing JavaScripte-Code to the Project
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
8 var lHeight = document.getElementById("page").scrollHeight; |
01e5ae4e7a12
Added existing JavaScripte-Code to the Project
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
9 //alert(lHeight); |
01e5ae4e7a12
Added existing JavaScripte-Code to the Project
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
10 var lOverlay = document.getElementById("overlay"); |
01e5ae4e7a12
Added existing JavaScripte-Code to the Project
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
11 lOverlay.style.height = lHeight + 'px'; |
01e5ae4e7a12
Added existing JavaScripte-Code to the Project
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
12 } |
01e5ae4e7a12
Added existing JavaScripte-Code to the Project
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
13 |
01e5ae4e7a12
Added existing JavaScripte-Code to the Project
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
14 function showDiv(pName) { |
01e5ae4e7a12
Added existing JavaScripte-Code to the Project
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
15 var el = document.getElementById(pName); |
01e5ae4e7a12
Added existing JavaScripte-Code to the Project
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
16 el.style.visibility = (el.style.visibility == "visible") ? "hidden" : "visible"; |
697
d2582f75b144
Improved design and added new wms layers as background for 'Horizontalschnitte'.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
28
diff
changeset
|
17 } |