[Mapbender-users] Overviewmap activating/deactivating

Len Kne knex0001 at umn.edu
Mon Feb 11 15:30:04 EST 2008


Not sure if this is the most elegant way to do this, but it works for us.
You can try it at:
http://hegis.geog.umn.edu/mapbender_2.4.2/http/frames/login.php?&mb_user_myG
ui=MIIM%20Green&name=guest&password=hegis

We created the following GUI elements:

INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment,
e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index,
e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target,
e_requires,e_url) VALUES ('MIIM
Green','overviewFrame',2,1,'OverviewFrame','div','','',303,65,171,141,99,'ba
ckground-color:#12195D;','<img id=''arrow_nw''
style=''position:relative;top:129;left:160''
src=''../img/arrows/arrow_nw.gif'' width=''10'' height=''10'' title=''Hide
overview map''
onClick="toggleBox(''overview'',0);toggleBox(''overviewFrame'',0)"/>','div',
'mod_hegis.js','"','mapframe1','"','');

INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment,
e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index,
e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target,
e_requires,e_url) VALUES ('MIIM
Green','overviewOpen',2,1,'OverviewOpen','div','','',303,65,15,22,98,'backgr
ound-color:#12195D;','<img id=''arrow_se''
style=''position:relative;top:8;left:1'' src=''../img/arrows/arrow_se.gif''
width=''10'' height=''10'' title=''Show overview map''
onClick="toggleBox(''overview'',1);toggleBox(''overviewFrame'',1)"/>','div',
'mod_hegis.js','"','mapframe1','"',''); 

and this javascript:

function toggleBox(szDivID, iState) // 1 visible, 0 hidden
{
    if(document.layers)	   //NN4+
    {
       document.layers[szDivID].visibility = iState ? "show" : "hide";
    }
    else if(document.getElementById)	  //gecko(NN6) + IE 5+
    {
        var obj = document.getElementById(szDivID);
        obj.style.visibility = iState ? "visible" : "hidden";
    }
    else if(document.all)	// IE 4
    {
        document.all[szDivID].style.visibility = iState ? "visible" :
"hidden";
    }
}

Len

-----Original Message-----
From: mapbender_users-bounces at lists.osgeo.org
[mailto:mapbender_users-bounces at lists.osgeo.org] On Behalf Of Kai Behncke
Sent: Monday, February 11, 2008 5:00 AM
To: mapbender_users at lists.osgeo.org
Subject: [Mapbender-users] Overviewmap activating/deactivating

Dear list,
I`m looking for a solution to activate/deactivate the overview-map in
mapbender. Does anybody have a solution for that or ideas how to programme
it?

Thank you very much, Kai
--
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen
downloaden: http://www.gmx.net/de/go/browser
_______________________________________________
Mapbender_users mailing list
Mapbender_users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapbender_users



More information about the Mapbender_users mailing list