mapfish.GeoStat.Choropleth

Use this class to create choropleths on a map.

Inherits from

Summary
mapfish.GeoStat.ChoroplethUse this class to create choropleths on a map.
Properties
colors{Array(<mapfish.Color>}} Array of 2 colors to be applied to features We should use styles instead
method{Integer} Specifies the distribution method to use.
numClasses{Integer} Number of classes
Constructor
mapfish.GeoStat.Choropleth
Functions
updateOptionsMethod used to update the properties method, indicator, numClasses and colors.
applyClassificationStyle the features based on the classification

Properties

colors

{Array(<mapfish.Color>}} Array of 2 colors to be applied to features We should use styles instead

method

{Integer} Specifies the distribution method to use.  Possible values are: mapfish.GeoStat.Distribution.CLASSIFY_BY_QUANTILS and mapfish.GeoStat.Distribution.CLASSIFY_BY_EQUAL_INTERVALS

numClasses

{Integer} Number of classes

Constructor

mapfish.GeoStat.Choropleth

Parameters

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

Functions

updateOptions

updateOptions: function(newOptions)

Method used to update the properties method, indicator, numClasses and colors.

Parameters

newOptions{Object} options object

applyClassification

applyClassification: function(options)

Style the features based on the classification

Parameters

options{Object}
updateOptions: function(newOptions)
Method used to update the properties method, indicator, numClasses and colors.
applyClassification: function(options)
Style the features based on the classification
Base class for geo-statistics.
Instances of OpenLayers.Map are interactive maps embedded in a web page.
Close