API / geotoolkit / map / features / strategies / IdByAttribute / IdByAttribute
strategies.IdByAttribute.IdByAttribute
Gets feature ID based on a feature attributes. The implementation returns attributes[attributeName] to use as a feature ID.
Constructors
Constructors
• new IdByAttribute(attributeName)
| Name | Type | Description |
|---|---|---|
attributeName | string | attribute name to use as a feature ID |
Methods
▸ getAttributeName(): string
Gets the attribute name that is used to identify feature
string
▸ getClassName(): string
string
▸ getFeatureId(attributes): string | number
Gets feature ID based on a feature attributes. The implementation returns attributes[attributeName].
| Name | Type | Description |
|---|---|---|
attributes | Attributes | feature attributes |
string | number
feature ID
▸ Static getClassName(): string
string