HSLayers.Control.UserGraphics (class)

class HSLayers.Control.UserGraphics(options)
param Object options:
 options for OpenLayers.Control.Panel
param options.featuresGridCfg:
 {Object} configuration for the HSLayers.FeaturesGrid()

Properties

HSLayers.Control.UserGraphics.editAttributes

HSLayers.Control.UserGraphics

config option - display/do not display form for attributes editing

Default Value:
true
HSLayers.Control.UserGraphics.editing

HSLayers.Control.UserGraphics

editing

HSLayers.Control.UserGraphics.eventListeners
Type :Object (static)

HSLayers.Control.UserGraphics

listeners for activate and deactivate control events

HSLayers.Control.UserGraphics.formFields
Type :[{Object}] (static)

HSLayers.Control.UserGraphics

schema, which will be used for generating of the editing form

HSLayers.Control.UserGraphics.grid

HSLayers.Control.UserGraphics

grid

HSLayers.Control.UserGraphics.layer

HSLayers.Control.UserGraphics

layer

Methods

HSLayers.Control.UserGraphics.formFields

HSLayers.Control.UserGraphics.addPopup(feature)

create popup with edit form for given feature and add it to the map

Arguments:
Returns:

Return type:

HSLayers.Popup

HSLayers.Control.UserGraphics.getEditForm(feature, configuration)
create and return Ext.Form.Panel usable for feature editing based on

HSLayers.Control.UserGraphics.formFields

param OpenLayers.Feature feature:
 OpenLayers.Feature
param Object configuration:
 object
returns:Ext.form.FormPanel editing form
HSLayers.Control.UserGraphics.getFeatureFormFields(feature)

generate list of form fields for particular feature

Arguments:
  • feature – {OpenLayers.Feature} feature
Returns:

[{Object}] object with form items configuration