eventInit.register(function () { mod_setBackground_init(); }); var mod_setBackground_active = false; function mod_setBackground_init(){ var map = getMapObjByName(mod_setBackground_target); var setBackgroundSelectBox = document.setBackground.mod_setBackground_list; var ind = setBackgroundSelectBox.options[0].value; var cnt = 0; var selInd; setBackgroundSelectBox.options[setBackgroundSelectBox.length - 1] = null; for(var i=0; i0){ map.wms[ind].gui_wms_visible = 2; setBackgroundSelectBox.selectedIndex = selInd; } mod_setBackground_active = ind; } function mod_setBackground_change(obj){ var map = getMapObjByName(mod_setBackground_target); map.wms[mod_setBackground_active].gui_wms_visible = 0; map.wms[obj.value].gui_wms_visible = 2; mod_setBackground_active = obj.value; zoom(mod_setBackground_target,true, 1.0); }