Skip to content
Last updated

API / geotoolkit / map / features / filters / DonutChartAnnotationOverlap / DonutChartAnnotationOverlap

Class: DonutChartAnnotationOverlap

filters.DonutChartAnnotationOverlap.DonutChartAnnotationOverlap

NoAnnotationOverlap filter that supports point features rendered with DonutChart as SymbolShape painter. Labels should be hidden on the shape itself.

Example

import {SymbolShape} from '@int/geotoolkit/scene/shapes/SymbolShape';
import {PieChart} from '@int/geotoolkit/controls/shapes/PieChart';
import {Point as MapTemplatePoint} from '@int/geotoolkit/map/features/templates/Point';
import {Vector} from '@int/geotoolkit/map/layers/Vector';
import {DonutChartAnnotationOverlap} from '@int/geotoolkit/map/features/filters/DonutChartAnnotationOverlap';

const template = new MapTemplatePoint({
'shape': new SymbolShape({
'sizeisindevicespace': true,
'width': 30,
'height': 30,
// use chart as a painter:
'painter': new PieChart({
'linestyle': {'color': '#e6e9ee', 'width': 2},
'label': {
'visible': false,
'format': (annotation: string, value: number) => ...,
},
// fill colors to use:
'fillstyles': ['#fdd835', '#1565c0']
}, ...)
});
const layer = new Vector({
'templates': [...],
// enable annotations:
'annotations': {
'visible': true,
'filter': [new DonutChartAnnotationOverlap()]
}
});

Hierarchy

Table of contents

Constructors
  • [new DonutChartAnnotationOverlap(options, ignoreTypes)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.map.features.filters-1.donutchartannotationoverlap.donutchartannotationoverlap.md#new donutchartannotationoverlap(options, ignoretypes))
Methods

Contents

Constructors

new DonutChartAnnotationOverlap(options, ignoreTypes)

• new DonutChartAnnotationOverlap(options?, ignoreTypes?)

Parameters

Name Type Description
Optional optionsOptions & Optionsfilter options
Optional ignoreTypestypeof AbstractFeature[]feature types that should be passed without filtering

Overrides

NoAnnotationOverlap.constructor

Methods

filterFeatures

▸ filterFeatures(iterator, context, layer): Iterator<AbstractFeature&gt;

Gets iterator over filtered features

Parameters

Name Type Description
iteratorIterator<AbstractFeature&gt;input features iterator
contextRenderingContextrendering context
layerTemplatefeature layer

Returns

Iterator<AbstractFeature&gt;

iterator over features to render

Overrides

NoAnnotationOverlap.filterFeatures


getClassName

▸ getClassName(): string

Returns

string

Inherited from

NoAnnotationOverlap.getClassName


reset

▸ reset(): DonutChartAnnotationOverlap

Resets itself

Returns

DonutChartAnnotationOverlap

Inherited from

NoAnnotationOverlap.reset


getClassName

▸ Static getClassName(): string

Returns

string

Inherited from

NoAnnotationOverlap.getClassName