mapfish. widgets. geostat. Choropleth

Use this class to create a widget allowing to display choropleths on the map.

Inherits from

  • {Ext.FormPanel}
Summary
mapfish. widgets. geostat. ChoroplethUse this class to create a widget allowing to display choropleths on the map.
Properties
layer{OpenLayers.Layer.Vector} The vector layer containing the features that are styled based on statistical values.
format{OpenLayers.Format} The OpenLayers format used to get features from the HTTP request response.
url{String} The URL to the web service.
featureSelection{Boolean} A boolean value specifying whether feature selection must be put in place.
nameAttribute{String} The feature attribute that will be used as the popup title.
indicator{String} (read-only) The feature attribute currently chosen Useful if callbacks are registered on ‘featureselected’ and ‘featureunselected’ events
indicatorText{String} (read-only) The raw value of the currently chosen indicator (ie.
loadMaskAn Ext.LoadMask config or true to mask the widget while loading (defaults to false).
labelGeneratorGenerator for bin labels
Constructor
mapfish. widgets. geostat. Choropleth

Properties

layer

{OpenLayers.Layer.Vector} The vector layer containing the features that are styled based on statistical values.  If none is provided, one will be created.

format

{OpenLayers.Format} The OpenLayers format used to get features from the HTTP request response.  GeoJSON is used if none is provided.

url

{String} The URL to the web service.  If none is provided, the features found in the provided vector layer will be used.

featureSelection

{Boolean} A boolean value specifying whether feature selection must be put in place.  If true a popup will be displayed when the mouse goes over a feature.

nameAttribute

{String} The feature attribute that will be used as the popup title.  Only applies if featureSelection is true.

indicator

{String} (read-only) The feature attribute currently chosen Useful if callbacks are registered on ‘featureselected’ and ‘featureunselected’ events

indicatorText

{String} (read-only) The raw value of the currently chosen indicator (ie. human readable) Useful if callbacks are registered on ‘featureselected’ and ‘featureunselected’ events

loadMask

An Ext.LoadMask config or true to mask the widget while loading (defaults to false).

labelGenerator

Generator for bin labels

Constructor

mapfish. widgets. geostat. Choropleth

Parameters

config{Object} Config object.
Instances of OpenLayers.Layer.Vector are used to render vector data from a variety of sources.
Base class for format reading/writing a variety of formats.
Close