Skip to content
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
  • [new IdByAttribute(attributeName)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.map.features.strategies.idbyattribute.idbyattribute.md#new idbyattribute(attributename))
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