[API](/solutions/geotoolkit/geotoolkit_js/apis/readme) / [geotoolkit](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit) / [schematics](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics) / [labeling](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics#labeling) / [NoLabelOverlapFilter](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics#nolabeloverlapfilter) / NoLabelOverlapFilter

# Class: NoLabelOverlapFilter

[labeling](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics#labeling).[NoLabelOverlapFilter](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics#nolabeloverlapfilter).NoLabelOverlapFilter

**`Deprecated`**

since 4.0. Use [LabelsFilter](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.labelsfilter.labelsfilter) instead.

## Implements

- [`ILabelsFilter`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.ilabelsfilter.ilabelsfilter)


## Table of contents

Constructors
- [new NoLabelOverlapFilter(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.schematics.labeling.nolabeloverlapfilter.nolabeloverlapfilter.md#new nolabeloverlapfilter(options))


Methods
| [filterLabels](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.nolabeloverlapfilter.nolabeloverlapfilter#filterlabels) | [getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.nolabeloverlapfilter.nolabeloverlapfilter#getclassname) | [reset](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.nolabeloverlapfilter.nolabeloverlapfilter#reset) |
|  --- | --- | --- |
| [getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.nolabeloverlapfilter.nolabeloverlapfilter#getclassname-1) |


## Contents

Constructors
#### new NoLabelOverlapFilter(options)

• **new NoLabelOverlapFilter**(`options?`)

#### Parameters

| Name  | Type  |
|  --- | --- |
| `Optional` `options` | [`Options`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.schematics#nolabeloverlapfilter#options) |


Methods
#### filterLabels

▸ **filterLabels**(`labels`, `context`, `labelShape`): [`LabelData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.labeldata.labeldata)[]

Gets filtered labels

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `labels` | [`LabelData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.labeldata.labeldata)[] | input array |
| `context` | [`RenderingContext`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.renderer.renderingcontext.renderingcontext) | rendering context |
| `labelShape` | [`LabelShape`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.labelshape.labelshape) | label shape template |


#### Returns

[`LabelData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.labeldata.labeldata)[]

result filtered labels array

#### Implementation of

[ILabelsFilter](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.ilabelsfilter.ilabelsfilter).[filterLabels](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.ilabelsfilter.ilabelsfilter#filterlabels)

#### getClassName

▸ **getClassName**(): `string`

#### Returns

`string`

#### reset

▸ **reset**(): [`NoLabelOverlapFilter`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.nolabeloverlapfilter.nolabeloverlapfilter)

Resets itself

#### Returns

[`NoLabelOverlapFilter`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.nolabeloverlapfilter.nolabeloverlapfilter)

this

#### Implementation of

[ILabelsFilter](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.ilabelsfilter.ilabelsfilter).[reset](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.schematics.labeling.ilabelsfilter.ilabelsfilter#reset)

#### getClassName

▸ `Static` **getClassName**(): `string`

#### Returns

`string`