API / geotoolkit / map / features / strategies / AnnotationByAttribute / AnnotationByAttribute
strategies.AnnotationByAttribute.AnnotationByAttribute
The strategy returns feature's attribute 'attributename' as annotation
Constructors
- [new AnnotationByAttribute(attributeName)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.map.features.strategies.annotationbyattribute.annotationbyattribute.md#new annotationbyattribute(attributename))
Constructors
• new AnnotationByAttribute(attributeName)
| Name | Type | Description |
|---|---|---|
attributeName | string | define attribute name to get from feature for visualization |
Methods
▸ getAnnotation(feature, layer): string
Gets annotation text for a feature.<br> The implementation returns feature.getAttributes()[propertyName].
| Name | Type | Description |
|---|---|---|
feature | AbstractFeature | map feature |
layer | AbstractFeatureLayer | feature layer (not used) |
string
annotation text
▸ getClassName(): string
string
▸ Static getClassName(): string
string