summaryrefslogtreecommitdiff
path: root/chimere/static/base.js
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/static/base.js')
-rw-r--r--chimere/static/base.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/chimere/static/base.js b/chimere/static/base.js
index 1eba699..91710af 100644
--- a/chimere/static/base.js
+++ b/chimere/static/base.js
@@ -42,6 +42,17 @@ function hide(id){
document.getElementById(id).style.display = 'None';
}
+/* show or hide a panel */
+function showHide(id){
+ var item = document.getElementById(id);
+ if (item.style.display == 'block'){
+ hide(id);
+ } else {
+ show(id);
+ }
+}
+
+
function saveExtent() {
/* save the current extent in a cookie */
if(!map) return;