mb_digitize_geometry

Description

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.

Files

  • http/plugins/mb_digitize_geometry.js

SQL

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');

Help

http://www.mapbender.org/mb_digitize_geometry

Maintainer

http://www.mapbender.org/User:Christoph_Baudson

Parameters

geometryType(String) “polygon”, “line”, “point” (default) or “rectangle”

License

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

Summary
mb_digitize_geometryA button that allows to draw a geometry on maps, for example polygons.
Properties
events.finishedTriggered after the geometry has been completed.
events.abortedTriggered if the geometry could not be created.
events.addedTriggered after a point has been added to the geometry.
events.mousemoveTriggered whenever a new point can be added to the geometry.

Properties

events.finished

Description

Triggered after the geometry has been completed. obj.featureCollection contains the GeoJSON

events.aborted

Description

Triggered if the geometry could not be created.

events.added

Description

Triggered after a point has been added to the geometry. obj.featureCollection contains the feature collection as GeoJSON obj.point contains the last point as Mapbender.Point

events.mousemove

Description

Triggered whenever a new point can be added to the geometry. obj.featureCollection contains the feature collection as GeoJSON obj.point contains the current mouse position as Mapbender.Point

Close