A button that allows to draw a geometry on maps, for example polygons.
For other geometries, change the element variable “geometryType”, and of course select another button image.
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>', 'mb_digitize_polygon',1,1,'Digitize a polygon geometry', 'Digitize a polygon geometry','img', '../img/button_digitize/polygon_off.png','',NULL ,NULL ,24,24,NULL ,'', '','','../plugins/mb_digitize_geometry.js','','mapframe1','',''); INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES('<appId>', 'mb_digitize_polygon', 'geometryType', 'polygon', '' ,'var');
http://www.mapbender.org/mb_digitize_geometry
http://www.mapbender.org/User:Christoph_Baudson
geometryType | (String) “polygon”, “line”, “point” (default) or “rectangle” |
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
mb_digitize_geometry | A button that allows to draw a geometry on maps, for example polygons. |
Properties | |
events. | Triggered after the geometry has been completed. |
events. | Triggered if the geometry could not be created. |
events. | Triggered after a point has been added to the geometry. |
events. | Triggered whenever a new point can be added to the geometry. |