mapp.layer.themes.graduates()

This module exports a function that applies a graduated theme to a feature based on a specified field value.

Methods

(inner) graduated(theme, feature) → {void}

Parameters:
NameTypeDescription
themeObject

The theme configuration object.

Properties
NameTypeDescription
fieldstring

The field name used for determining the category.

categoriesArray

An array of category objects.

graduated_breaksstring

The comparison operator ("less" or "more").

featureObject

The feature object.

Properties
NameTypeDescription
propertiesObject

The properties of the feature.

Properties
NameTypeAttributesDescription
featuresArray<optional>

An array of sub-features.

Returns:
Type: 
void