Last updated

API / geotoolkit / map / features / strategies / AnnotationById / AnnotationById

Class: AnnotationById

strategies.AnnotationById.AnnotationById

The strategy returns feature ID as annotation

Implements

Table of contents

Constructors
Methods

Contents

Constructors

new AnnotationById()

new AnnotationById()

Methods

getAnnotation

getAnnotation(feature, layer): string

Gets annotation text for a feature.
The implementation returns feature's ID

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