digitize

Description

Allows the user to digitize polygons, lines and points.

Files

  • http/javascripts/mod_digitize_tab.php
  • http/php/mod_digitize_messages.php
  • http/css/digitize.css
  • conf/digitize_default.conf

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>','digitize',
2,1,'Digitize tool.','Digitize','iframe',
'../javascripts/mod_digitize_tab.php?sessionID','frameborder = "0" ',
1,1,1,1,5,'','','iframe','','geometry.js','mapframe1','mapframe1',
'http://www.mapbender.org/Digitize');

INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name,
var_value, context, var_type) VALUES('<appId>', 'digitize', 'cssUrl',
'../css/digitize.css', 'url to the style sheet of the mapframe' ,
'var');

INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name,
var_value, context, var_type) VALUES('<appId>', 'digitize',
'digitize_conf_filename', 'digitize_default.conf', '' ,'php_var');

INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name,
var_value, context, var_type) VALUES('<appId>', 'digitize',
'text css',
'digitizeGeometryList {position:absolute; top:50px; left:0px;} .digitizeGeometryListItem {color:#000000; font-size:10px;} body {font-family: Arial, Helvetica, sans-serif; font-size:12px; color:#ff00ff; background-color:#ffffff; margin-top: 0px; margin-left:0px;} .button {height:18px; width:32px;}',
'text css' ,'text/css');

INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name,
var_value, context, var_type) VALUES('<appId>', 'digitize',
'wfsCssUrl', '../css/mapbender.css', 'var' ,'var');

Help

http://www.mapbender.org/Digitize

Maintainer

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

Parameters

cssUrlpath/filename of CSS which specifies the design of digitize objects in the map do not change the default file, create your own css file from the default file
text cssCSS text for the geometry list
wfsCssUrlpath/filename of CSS which specifies the design of the popup which appears when a feature is saved or updated

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
digitizeAllows the user to digitize polygons, lines and points.
Properties
eventsYour callback functions receive an object with the following attributes
events.closeGeometryThis <Mapbender.Event> is fired after a new geometry has been digitized.
events.beforeUpdateOrInsertThis <Mapbender.Event> is fired before a feature is updated or inserted by WFS-T.
events.beforeUpdateThis <Mapbender.Event> is fired before a feature is updated by WFS-T.
events.beforeInsertThis <Mapbender.Event> is fired before a feature is inserted by WFS-T.
events.openDialogThis <Mapbender.Event> is fired before the user opens the dialog for inserting or updating.
events.clickDeleteThis <Mapbender.Event> is fired when the user clicks the button to delete features by WFS-T
events.geometryInsertedThis <Mapbender.Event> is fired after a feature has been inserted by WFS-T
events.afterWfsThis <Mapbender.Event> is fired after a feature has been inserted, updated or deleted by WFS-T
events.mergeLinesThis <Mapbender.Event> is fired when 2 lines are merged to a single line,

Properties

events

Description

Your callback functions receive an object with the following attributes

  • geometryIndex: index of feature in current feature collection
  • feature: the <Mapbender.MultiGeometry>

events.closeGeometry

Description

This <Mapbender.Event> is fired after a new geometry has been digitized.

events.beforeUpdateOrInsert

Description

This <Mapbender.Event> is fired before a feature is updated or inserted by WFS-T.

events.beforeUpdate

Description

This <Mapbender.Event> is fired before a feature is updated by WFS-T.

events.beforeInsert

Description

This <Mapbender.Event> is fired before a feature is inserted by WFS-T.

events.openDialog

Description

This <Mapbender.Event> is fired before the user opens the dialog for inserting or updating.  Returning false in your callback prevents the default dialog from popping up.

events.clickDelete

Description

This <Mapbender.Event> is fired when the user clicks the button to delete features by WFS-T

events.geometryInserted

Description

This <Mapbender.Event> is fired after a feature has been inserted by WFS-T

events.afterWfs

Description

This <Mapbender.Event> is fired after a feature has been inserted, updated or deleted by WFS-T

events.mergeLines

Description

This <Mapbender.Event> is fired when 2 lines are merged to a single line,

Close