API / geotoolkit / map / features / strategies / AnnotationByRule / AnnotationByRule
strategies.AnnotationByRule.AnnotationByRule
Type Aliases
Type Aliases
Ƭ ExpressionCallback: (feature: AbstractFeature) => string
▸ (feature): string
Expression callback is used to generate feature annotation.
| Name | Type |
|---|---|
feature | AbstractFeature |
string
Ƭ Options: Object
rules options
| Name | Type | Description |
|---|---|---|
expression? | string | ExpressionCallback | string expression to annotate the feature (attribute values may be referenced using braces, for example "{country_name} area: {country_area}") or expression callback to generate annotation labels dynamically. Uses feature id as an annotation by default. |
maxscale? | number | maximum scale to show annotation |
minscale? | number | minimum scale to show annotation |
where? | WhereCallback | where condition callback to determine which features are annotated |
Ƭ WhereCallback: (feature: AbstractFeature) => boolean
▸ (feature): boolean
Where condition callback determines which features are annotated.
| Name | Type |
|---|---|
feature | AbstractFeature |
boolean