Skip to content
Last updated

API / geotoolkit / map / features / strategies / AnnotationByAttribute / AnnotationByAttribute

Class: AnnotationByAttribute

strategies.AnnotationByAttribute.AnnotationByAttribute

The strategy returns feature's attribute 'attributename' as annotation

Implements

Table of contents

Constructors
  • [new AnnotationByAttribute(attributeName)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.map.features.strategies.annotationbyattribute.annotationbyattribute.md#new annotationbyattribute(attributename))
Methods

Contents

Constructors

new AnnotationByAttribute(attributeName)

• new AnnotationByAttribute(attributeName)

Parameters

Name Type Description
attributeNamestringdefine attribute name to get from feature for visualization
Methods

getAnnotation

▸ getAnnotation(feature, layer): string

Gets annotation text for a feature.<br> The implementation returns feature.getAttributes()[propertyName].

Parameters

Name Type Description
featureAbstractFeaturemap feature
layerAbstractFeatureLayerfeature layer (not used)

Returns

string

annotation text

Implementation of

IGetAnnotation.getAnnotation


getClassName

▸ getClassName(): string

Returns

string

Implementation of

IGetAnnotation.getClassName


getClassName

▸ Static getClassName(): string

Returns

string