A basic WMS layer switcher. You can turn entire WMS on or off by clicking an icon, and additionally change the display order by dragging and dropping.
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('<appId>','wmsTree',1,1,'','', 'div','','',1020,100,200,500,NULL ,'','','div', '../plugins/mb_wmsTree.js','','mapframe1','jq_ui_sortable',''); INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES('<appId>', 'wmsTree', 'css', 'ul.wmstree-list { list-style: none; } span.wmstree-tick { float: right; cursor: pointer; } li.wmstree-handle { cursor: move; }', '' ,'text/css'); INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES('<appId>', 'wmsTree', 'liveUpdate', '1', '1 = change the wms order in the map while dragging, 0 = change after drop' ,'var');
http://www.mapbender.org/<wiki site name>
http://www.mapbender.org/User:Christoph_Baudson
css | text/css |
liveUpdate | [optional] 1 = change the wms order in the map while dragging, 0 = change after drop (default) |
Copyright © 2009, Open Source Geospatial Foundation This program is dual licensed under the GNU General Public License and Simplified BSD license. http://svn.osgeo.org- /mapbender- /trunk- /mapbender- /license- /license.txt