Class: chloroplethCreator

chloroplethCreator()

choroplethCreator (choroplethCreator)

Constructor

new chloroplethCreator()

A class to create choropleth maps.
Source:

Methods

createMap(map, vectorSource, wardsSource, colorPerClass, amountOfColorClasses, featureToDisplay, selectedValue, wardsVectorLayer, featureLayer, classArray, featurePropertyKeyName, isDiscrete)

Creates a choropleth layer and adds it to the map
Parameters:
Name Type Description
map ol.map The map
vectorSource ol.source The vector source
wardsSource ol.source The wards source
colorPerClass string The color per class
amountOfColorClasses number The amount of color classes
featureToDisplay string The feature to display
selectedValue string The selected value
wardsVectorLayer ol.layer The wards vector layer
featureLayer ol.layer The feature layer
classArray Array.<number> The class of each feature
featurePropertyKeyName string The feature property key name
isDiscrete boolean Indicates if discrete
Source: