API / geotoolkit / map / features / strategies / AnnotationById / AnnotationById
strategies.AnnotationById.AnnotationById
The strategy returns feature ID as annotation
Constructors
- [new AnnotationById()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.map.features.strategies.annotationbyid.annotationbyid.md#new annotationbyid())
Methods
▸ getAnnotation(feature, layer): string
Gets annotation text for a feature.<br> The implementation returns feature's ID
| Name | Type | Description |
|---|---|---|
feature | AbstractFeature | map feature |
layer | AbstractFeatureLayer | feature layer (not used) |
string
annotation text
▸ getClassName(): string
string
▸ Static getClassName(): string
string