Last updated

API / geotoolkit / map / features / strategies / IdByAttribute / IdByAttribute

Class: IdByAttribute

strategies.IdByAttribute.IdByAttribute

Gets feature ID based on a feature attributes. The implementation returns attributes[attributeName] to use as a feature ID.

Implements

Table of contents

Constructors
Methods

Contents

Constructors

new IdByAttribute(attributeName)

new IdByAttribute(attributeName)

Parameters

Name Type Description
attributeNamestringattribute name to use as a feature ID
Methods

getAttributeName

getAttributeName(): string

Gets the attribute name that is used to identify feature

Returns

string


getClassName

getClassName(): string

Returns

string


getFeatureId

getFeatureId(attributes): string | number

Gets feature ID based on a feature attributes. The implementation returns attributes[attributeName].

Parameters

Name Type Description
attributesAttributesfeature attributes

Returns

string | number

feature ID

Implementation of

IGetId.getFeatureId


getClassName

Static getClassName(): string

Returns

string