Use this class to create an editable grid of features.
mapfish. widgets. editing. FeatureList | Use this class to create an editable grid of features. |
Constructor | |
mapfish. widgets. editing. FeatureList | |
Properties | |
featureType | {Ext.data.Record} Definition of a feature record, created by Ext.data.Record.create() |
map | {OpenLayers.Map} Where to display the selected geometries |
layer | {OpenLayers.Layer.Vector} The Vector layer to use to draw the selected geometries. |
automaticMode | {Boolean} If true, the geometry to edit can be selected on click. |
autoFocusMode | {Integer} If 0, don’t change the visible extent of the map. |
displayNotEdited | {Boolean} If “false”, display only the edited feature. |
Functions | |
editGeometryVisual | How to represent a geometry in the grid. |
editFirstGeometry | Start to edit the first geometry of the given feature. |
setAutomaticMode | Change the mode. |
setDisplayNotEdited | Change the configuration of what should be displayed. |
createRecord | Generate a Record constructor for a specific record layout and with support for the ‘geo’ type. |
{OpenLayers.Map} Where to display the selected geometries
{OpenLayers.Layer.Vector} The Vector layer to use to draw the selected geometries.
editGeometryVisual: function( geometry, record, edited )
How to represent a geometry in the grid. It will be the thing the user will have to click in order to edit the geometry.
geometry | {OpenLayers.Geometry} |
record | {<Ext.data.Record>} |
edited | {Boolean} true if the geometry is being edited on the map. |
mapfish.widgets.editing.FeatureList.createRecord = function( cols )
Generate a Record constructor for a specific record layout and with support for the ‘geo’ type. This function wraps Ext.data.Record.create.
cols | {Array} An Array of field definition objects which specify field names, and optionally, data types, and a mapping for an Ext.data.Reader to extract the field’s value from a data object. For further information see the Ext API reference (Ext.data.Record.create). |
Returns {Function} - Record constructor
How to represent a geometry in the grid.
editGeometryVisual: function( geometry, record, edited )
Start to edit the first geometry of the given feature.
editFirstGeometry: function( record )
Change the mode.
setAutomaticMode: function( automatic )
Change the configuration of what should be displayed.
setDisplayNotEdited: function( value )
Generate a Record constructor for a specific record layout and with support for the ‘geo’ type.
mapfish.widgets.editing.FeatureList.createRecord = function( cols )