API / geotoolkit / map / features / strategies / AnnotationByAttribute / AnnotationByAttribute
strategies.AnnotationByAttribute.AnnotationByAttribute
The strategy returns feature's attribute 'attributename' as annotation
Constructors
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.
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