Opened 16 years ago
Closed 15 years ago
#270 closed defect (fixed)
AddWMSfromFilteredList: Handling of added WMS (from another Gui) is not user-friendly
Reported by: | verenadiewald | Owned by: | astrid_emde |
---|---|---|---|
Priority: | minor | Milestone: | 2.6 release |
Component: | user interface | Version: | 2.5 rc4 |
Keywords: | Cc: |
Description
Adding a WMS from another Gui with module AddWMSFromfilteredList is not really user-friendly. WMS is added and set to on in treemenu automatically, but it is not shown. The user has to set it to off and then set it to on again to see the WMS
Note:
See TracTickets
for help on using tickets.
This is what happened:
DELETE FROM gui_element WHERE fkey_gui_id = 'gui1' and e_id = 'addWMSfromfilteredList_ajax'; INSERT INTO gui_element(fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, 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('gui1','addWMSfromfilteredList_ajax',2,1,'add a WMS to the running application from a filtered list','Adding WMS from filtered list','img','../img/button_gray/add_filtered_list_off.png','onclick=var addWmsFromFilteredListPopup = new mb_popup({title:"add map services",url:"../javascripts/mod_addWMSfromfilteredList_ajax.php?sessionID",width:720, height:600,left:20, top:20});addWmsFromFilteredListPopup.show() onmouseover=this.src = this.src.replace(/_off/,"_over"); onmouseout=this.src = this.src.replace(/_over/, "_off"); title="Adding WMS from filtered list"',620,60,24,24,1,,,,,'mod_addWMSgeneralFunctions.js,popup.js','treeGDE,mapframe1','loadData','http://www.mapbender.org/index.php/Add_WMS_from_filtered_list');
INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES('gui1', 'addWMSfromfilteredList_ajax', 'cssfileAddWMS', '../css/addwms.css', ,'file/css');
INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES('gui1', 'addWMSfromfilteredList_ajax', 'capabilitiesInput', '1', ,'var'); INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES('gui1', 'addWMSfromfilteredList_ajax', 'option_dball', '1', '1 enables option "load configured wms from gui"' ,'var'); INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES('gui1', 'addWMSfromfilteredList_ajax', 'option_dbgroup', '0', '1 enables option "load configured wms from gui"' ,'var'); INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES('gui1', 'addWMSfromfilteredList_ajax', 'option_dbgui', '0', '1 enables option "load configured wms from gui"' ,'var');
-- should be deleted and code should not handle them --INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES('gui1', 'addWMSfromfilteredList_ajax', 'option_group', '0', '1 enables option "load wms from group"' ,'var'); -- INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES('gui1', 'addWMSfromfilteredList_ajax', 'option_gui', '0', '1 enables option "load wms from gui"' ,'var'); --INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES('gui1', 'addWMSfromfilteredList_ajax', 'option_all', '0', '1 enables option "load all wms"' ,'var');