Widget that enables the possibility to draw new features on vector layers on the map. Since the new features drawn are directly linked to a Resource, you must specify the kind of geometry available to draw.
This widget can’t be drawn with the drawWidget template. Instead, it must be added to the GeoExtToolbar widget.
See also
Sample configuration
<editfeature_create>
<name>W_MyEditFeature_Create_LineString</name>
<options>
<geometrytype>LineString</geometrytype>
<featurepanel>W_MyFeaturePanelForm</featurepanel>
</options>
</editfeature_create>
The EditFeature_Create widget must be added to a GeoExtToolbar widget
<geoexttoolbar>
<name>GeoExtToolbar</name>
<options>
<widgets>
<widget>W_MyEditFeature_Create_LineString</widget>
</widgets>
</options>
</geoexttoolbar>
| geometrytype: | The geometry type the widget can draw. The possible values are (case sensitive) :
|
|---|
| featurepanel: | The name of the featurepanel widget (of any kind) to display to edit the attributes (fields) of features. If none was provided, then the attributes can’t be edited. |
|---|---|
| featurecontroloptions: | |
| The options for the OpenLayers control to be created. Can have any <OpenLayers property>value</OpenLayers property> tag of the corresponding Control created, i.e. SelectFeature (editgeom: false) or ModifyFeature (editgeom: true). | |
| drawfeatureoptions: | |
| The options for the OpenLayers DrawFeature controls to be created. Can have any <OpenLayers property>value</OpenLayers property> tag of the DrawFeature control. | |
| text: | The text to display for the item menu of the toolbar. You can also define a text node in the datastore params instead. |
featureserver
create