mapp.layer.themes.categorized()
The module exports the categorized function as a mapp.layer.theme.
Methods
(inner) categorized(theme, feature)
The categorized theme method will assign a style from category matching the features properties.
Cluster features may not be styled by a categorized theme.
A theme can have a fields array to apply an icon style array for the individual property fields.
Parameters:
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
theme | Object | The theme configuration object. Properties
| ||||||||||||||||
feature | Object | Properties
|