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
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.
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