Hi, regarding the second paragraph of this ticket
> This issue is also related to ticket #55 because when clicking on opacity > up/down the whole tree is closed, even when some branches where opened. I have a question: this problems is due to the fact, that the c_menu needs to be rebuilt and obviously therefore the whole tree needs to be reloaded. When building the c_menu array, could we skip the test "...&& (parseFloat(parent.mb_mapObj[i].wms[ii].gui_wms_mapopacity) < 1)..." of lines 526,527? This test removes or adds either opacity_down or opacity_up from the menu, but in my opinion this is not absolutely necessary, since the final test if the opacity can be changed to values below zero or above 1 is done in handleOpacity. And what happens is that the menu always has the entries opacity up and down (if configured). By doing this there's no need to rebuild the tree anymore, isn't it (opacity handling is the only time when this is done at runtime, i think?)? What do you think Cheers, Michael -- ----------------------------------------------------------- Michael Schulz [EMAIL PROTECTED] in medias res Gesellschaft für Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- _______________________________________________ Mapbender_dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapbender_dev
