Last updated

API / geotoolkit / map / features / strategies / AnnotationByRule / AnnotationByRule

Namespace: AnnotationByRule

strategies.AnnotationByRule.AnnotationByRule

Table of contents

Type Aliases

Contents

Type Aliases

ExpressionCallback

Ƭ ExpressionCallback: (feature: AbstractFeature) => string

Type declaration

▸ (feature): string

Expression callback is used to generate feature annotation.

Parameters
Name Type
featureAbstractFeature
Returns

string


Options

Ƭ Options: Object

rules options

Type declaration

NameTypeDescription
expression?string | ExpressionCallbackstring 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?numbermaximum scale to show annotation
minscale?numberminimum scale to show annotation
where?WhereCallbackwhere condition callback to determine which features are annotated

WhereCallback

Ƭ WhereCallback: (feature: AbstractFeature) => boolean

Type declaration

▸ (feature): boolean

Where condition callback determines which features are annotated.

Parameters
Name Type
featureAbstractFeature
Returns

boolean