HSLayers.EditPanel (class)

HSLayers.EditPanel

class HSLayers.EditPanel(config)

EditPanel is special panel with editing functions

param Object config:
 
param String config.title:
 

(optional, default: OpenLayers.i18n(“Edit”))

title for the panel

Example usage:

var infoPanel = new HSLayers.EditPanel({
             renderTo: Ext.get("edit")
     });
TODO

Properties

HSLayers.EditPanel.attributesPanel
Type :Ext.Panel (static)

HSLayers.EditPanel

panel for displayin the attribute form

HSLayers.EditPanel.CLASS_NAME
Type :String (static)

HSLayers.EditPanel

name of this class

HSLayers.EditPanel.editing
Type :HSLayers.Control.Editing (static)

HSLayers.EditPanel

editing

HSLayers.EditPanel.editorUrl
Type :String (static)

HSLayers.EditPanel

url for the server-side editing script

HSLayers.EditPanel.layer
Type :HSLayers.Layer.MapServer (static)

HSLayers.EditPanel

layer

HSLayers.EditPanel.layerCombo
Type :Ext.form.ComboBox (static)

HSLayers.EditPanel

selection of the layer to be edited combox

HSLayers.EditPanel.map
Type :OpenLayers.Map (static)

HSLayers.EditPanel

map

Methods

fired

editing new one

HSLayers.EditPanel.setLayer()
set and initialize this layer object. called, on “layerloaded” event

fired

HSLayers.EditPanel.deleteddisplayResult(result)

display editing operation result

Arguments:
  • result (OBject) – form
HSLayers.EditPanel.onLayerSelected()
layer selected, save the current edited layer, if any, and start to

editing new one

HSLayers.EditPanel.addAttributeForm(project, layer, id)

load attributes form for editing

Arguments:
  • project (String) – name of the MapServer project
  • layer (Object) – edit layer name
  • id (Integer) – record number

Main Menu


Table Of Contents

Previous topic

HSLayers.Control.UserGraphics.ColorField (class)

Next topic

HSLayers.EditPanel.SettingsPanel (class)

This Page