HSLayers.FeaturesGrid (class)

HSLayers.FeaturesGrid

class HSLayers.FeaturesGrid(config)
param Object config:
 configuration object of the panel
param OpenLayers.Layer.Vector config.layer:
 see OpenLayers

Example usage:

...
var fg = new HSLayers.FeaturesGrid({
             layer:vector_layer,
             renderTo: Ext.getBody()
             });

Properties

HSLayers.FeaturesGrid.layer
Type :OpenLayers.Layer.Vector (static)

HSLayers.FeaturesGrid

Layer, which features will be reflected by this panel

Methods

HSLayers.FeaturesGrid.layer property

HSLayers.FeaturesGrid.updateFeaturesInfo()

update feature informations in the bottom bar

HSLayers.FeaturesGrid.setLayer()
Set layer

HSLayers.FeaturesGrid.layer property

HSLayers.FeaturesGrid.getFeatureType(feature)

get feature type

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

point, line, polygon

Return type:

String

HSLayers.FeaturesGrid.getFeatureTitle(feature)

get feature title

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

Return type:

String

HSLayers.FeaturesGrid.renderLength(v, units)

render length info

Arguments:
  • v – {Float} length in map units
  • units – {String} map units
Returns:

rendered length

Return type:

String

HSLayers.FeaturesGrid.renderArea(v, units)

render area info

Arguments:
  • v – {Float} area in map units
  • units – {String} units
Returns:

rendered area

Return type:

String

Main Menu


Table Of Contents

Previous topic

HSLayers.Embed.GeneratorForm (class)

Next topic

HSLayers.FileDialog (class)

This Page