API / geotoolkit / map / features / filters / VisibilityArea / VisibilityArea
filters.VisibilityArea.VisibilityArea
VisibilityArea can be applied to the Point features only. It filters out:
- features outside of canvas rendering area
- overlapped map features (optionally)
- Non-point like features
The filter assumes feature geometries having 'x' and 'y' components to use as anchored shape anchor.
Constructors
Constructors
• new VisibilityArea(shape, options?)
| Name | Type | Description |
|---|---|---|
shape | AnchoredShape | anchored shape as a template |
Optional options | Options | options (see "setOptions" method for details) |
Methods
▸ filterFeatures(iterator, context, layer?): Iterator<AbstractFeature>
Gets iterator over filtered features
| Name | Type | Description |
|---|---|---|
iterator | Iterator<AbstractFeature> | input features iterator |
context | RenderingContext | rendering context |
Optional layer | AbstractFeatureLayer | feature layer (not used) |
iterator over features to render
▸ getClassName(): string
string
▸ getOptions(): Required<Options>
Gets options
Required<Options>
options
▸ reset(): VisibilityArea
Resets itself
▸ setOptions(options?): VisibilityArea
Sets options
| Name | Type | Description |
|---|---|---|
Optional options | Options | options |
▸ Static getClassName(): string
string