mapfish.widgets.editing.FeatureEditingPanel

This class provides a panel for editing features.

Inherits from

  • {Ext.Panel}
Summary
mapfish.widgets.editing.FeatureEditingPanelThis class provides a panel for editing features.
Constructor
mapfish.widgets.editing.FeatureEditingPanel
Constants
COMBO_NONE_VALUEThe value of the none entry in the combo.
COMBO_NONE_NAMEThe 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
Functions
setWindowOnbeforeunloadConvenience method that sets window.onbeforeunload so that when going away from the page a confirm window is displayed if the store includes uncommitted changes.

Constructor

mapfish.widgets.editing.FeatureEditingPanel

Parameters

config{Object} Config object, see the possible Ext.Panel config options, and those specific to this panel documented below.

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.

Example

(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)

comboConfig

{Object} Optional config parameters for layer selection combo

Functions

setWindowOnbeforeunload

setWindowOnbeforeunload: function()

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.

Instances of OpenLayers.Map are interactive maps embedded in a web page.
setWindowOnbeforeunload: function()
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.
Close