mapfish.GeoStat

Base class for geo-statistics.  This class is not meant to be used directly, it serves as the base for specific geo-statistics implementations.

Summary
mapfish.GeoStatBase class for geo-statistics.
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.
requestSuccess{Function} Function called upon success with the HTTP request.
requestFailure{Function} Function called upon failure with the HTTP request.
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} Defines the attribute to apply classification on
Constructor
mapfish.GeoStat
Functions
applyClassificationTo be overriden by subclasses.
Constants
mapfish.GeoStat.Distribution.CLASSIFY_WITH_BOUNDS
mapfish.GeoStat.Distribution.CLASSIFY_BY_EQUAL_INTERVALS
mapfish.GeoStat.Distribution.CLASSIFY_BY_QUANTILS

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.

requestSuccess

{Function} Function called upon success with the HTTP request.

requestFailure

{Function} Function called upon failure with the HTTP request.

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} Defines the attribute to apply classification on

Constructor

mapfish.GeoStat

Parameters

map{OpenLayers.Map} OpenLayers map object
options{Object} Hashtable of extra options

Functions

applyClassification

applyClassification: function(options)

To be overriden by subclasses.

Parameters

options{Object}

Constants

mapfish.GeoStat.Distribution.CLASSIFY_WITH_BOUNDS

mapfish.GeoStat.Distribution.CLASSIFY_BY_EQUAL_INTERVALS

mapfish.GeoStat.Distribution.CLASSIFY_BY_QUANTILS

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.
applyClassification: function(options)
To be overriden by subclasses.
Instances of OpenLayers.Map are interactive maps embedded in a web page.
Close