API / geotoolkit / map / features / formatters / SingleField / SingleField
formatters.SingleField.SingleField
Features info formatter based on the one attribute field.
Constructors
Constructors
• new SingleField(field?, separator?, limit?, unique?)
Features info formatter based on the one attribute field.
| Name | Type | Description |
|---|---|---|
Optional field | string | field to show, id is used if no value provided |
Optional separator | string | html separator between different features info (e.g use ', ' for comma-separated list) |
Optional limit | number | upper limit for the aggregated features are shown |
Optional unique | boolean | true to filter repeating fields |
Methods
▸ format(features, text): string
Formats html text based on the provided features attribute field
| Name | Type | Description |
|---|---|---|
features | AbstractFeature[] | features list to format |
text | string | text created by the previous formatters from other layers |
string
text the formatted text result
▸ getClassName(): string
string
▸ Static getClassName(): string
string