mapp.layer.themes.distributed()

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

Methods

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

Parameters:
NameTypeDescription
themeObject

The theme configuration object.

Properties
NameTypeAttributesDefaultDescription
fieldstring<optional>
'id'

The field name used for determining the unique value.

lookupObject<optional>
{}

An object mapping unique values to their assigned styles.

boxesArray<optional>
[]

An array of bounding boxes for the features.

indexnumber<optional>
0

The current index for assigning styles.

categoriesArray

An array of category objects.

featureObject

The feature object.

Properties
NameTypeDescription
propertiesObject

The properties of the feature.

Returns:
Type: 
void