This class provides a panel for editing features.
mapfish. widgets. editing. FeatureEditingPanel | This class provides a panel for editing features. |
Constructor | |
mapfish. widgets. editing. FeatureEditingPanel | |
Constants | |
COMBO_NONE_VALUE | The value of the none entry in the combo. |
COMBO_NONE_NAME | The name (label) of the none entry in the combo. |
Properties | |
map | {OpenLayers.Map} OpenLayers Map object. |
layerConfig | {Object} Hash of layers with config parameters. |
comboConfig | {Object} Optional config parameters for layer selection combo |
the components that are actually added to the feature | editing panel are destroyed in the destroy method of Ext.Panel |
Functions | |
setWindowOnbeforeunload | Convenience method that sets window.onbeforeunload so that when going away from the page a confirm window is displayed if the store includes uncommitted changes. |
{OpenLayers.Map} OpenLayers Map object.
{Object} Hash of layers with config parameters.
(code start) { campfacilities: { text: “Camps”, protocol: new mapfish.Protocol.MapFish({url: “camps”}), featuretypes: { geometry: { type: OpenLayers.Geometry.MultiPolygon }, // See the documentation in the // mapfish.widgets.editing.FeatureProperties classes for more // details properties: [ new mapfish.widgets.editing.StringProperty( {name: ‘comment’}), new mapfish.widgets.editing.IntegerProperty( {name: ‘status’}), new mapfish.widgets.editing.ComboProperty( {name: ‘_type’, url: ‘campfacilitytypes’}), new mapfish.widgets.editing.IntegerProperty( {name: ‘name’, showInGrid: true}), new mapfish.widgets.editing.FloatProperty( {name: ‘camp_id’}) ] } }, refugees: { ... } } (end)
Convenience method that sets window.onbeforeunload so that when going away from the page a confirm window is displayed if the store includes uncommitted changes.
setWindowOnbeforeunload: function()