# Filter Elements on the Map

You can configure filters to display only some elements of the layer. To configure and apply filters:

1. Click on <img src="https://2098443701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcA9CuUnY5hTYroiPhD1w%2Fuploads%2FlSmRBPB3DsrMUpewQwXy%2Fmenu.png?alt=media&#x26;token=ebc2a5e9-3a5c-4872-8977-d4e65295ddaa" alt="" data-size="line"> and then on ![img](https://2098443701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcA9CuUnY5hTYroiPhD1w%2Fuploads%2FuTfNbWgOMfe88Osxhpau%2Flayer-filter.png?alt=media\&token=873bc868-3e74-4366-b8e5-55a77028e1b9) **Filter elements on the map** to open **FILTER(S)** panel.
2. Click on <img src="https://2098443701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcA9CuUnY5hTYroiPhD1w%2Fuploads%2F6csi84DZ7VyY9Wkc7ICt%2Ffilter-add.png?alt=media&#x26;token=fdef0a7a-c9b1-4fd8-ad1e-4303b52b6ceb" alt="img" data-size="line"> to open the **Add filter** interface.
3. Select the attribute, the [operator](#filter-operators) and the attribute value(s).
4. Press **Add**. Only items in the layer that pass the filter are displayed on the map.

   <figure><img src="https://2098443701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcA9CuUnY5hTYroiPhD1w%2Fuploads%2Fcrm01sxwpDh5wGMfzw9N%2Fclip087.png?alt=media&#x26;token=ec0d9623-4097-4579-9a15-be18a4016a27" alt=""><figcaption></figcaption></figure>
5. Click on the filter to open the **Update Filter** interface.
6. Click on <img src="https://2098443701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcA9CuUnY5hTYroiPhD1w%2Fuploads%2F6csi84DZ7VyY9Wkc7ICt%2Ffilter-add.png?alt=media&#x26;token=fdef0a7a-c9b1-4fd8-ad1e-4303b52b6ceb" alt="img" data-size="line"> to add a filter.
7. Check a filter to select it.
8. Click on <img src="https://2098443701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcA9CuUnY5hTYroiPhD1w%2Fuploads%2FjkidCAzQK1R35LGmyxg1%2Ffilter-less.png?alt=media&#x26;token=23529e64-8eb3-40e1-a493-8bceedb4df00" alt="img" data-size="line"> to clear it or on <img src="https://2098443701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcA9CuUnY5hTYroiPhD1w%2Fuploads%2FIn0Fh3IRl5cufK9TVNzf%2Ffilter-interruptor-on.png?alt=media&#x26;token=6cefc78a-62a7-46fd-8e23-5c00a44b136b" alt="img" data-size="line"> to disable.

The icon <img src="https://2098443701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcA9CuUnY5hTYroiPhD1w%2Fuploads%2FMRYgHQXuj8Ck6BA77TDx%2Ffilter-layer.png?alt=media&#x26;token=0fa8fc9e-1ece-406f-a51b-50634c9d6423" alt="img" data-size="line"> displayed in the layer card indicates that this one has an active filter. Configured filters are enabled by default.

<figure><img src="https://2098443701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcA9CuUnY5hTYroiPhD1w%2Fuploads%2FCFUHuZPTz5zXVexUaS2e%2Fclip088.png?alt=media&#x26;token=e08cb4b3-6992-4f74-9058-3e521542959b" alt=""><figcaption></figcaption></figure>

## **Filter operators**

**equal to**: This operator filters a layer’s elements to display the elements whose attribute value (regardless of its type) is equal to one of the values selected by the user.

**not equal to**: This operator filters a layer’s elements to display the elements whose attribute value (regardless of its type) is different from the values selected by the user.

**contains**: This operator filters a layer’s elements to display the elements whose attribute value (text) contains the value selected by the user.

**does not contain**: This operator filters a layer's elements to display the elements whose attribute value (text) does not contain the value selected by the user.

**is empty**: This operator filters a layer’s elements to display the elements whose attribute (text) does not have a value.

**is not empty**: This operator filters a layer’s elements to display the elements whose attribute (text) has a value.

**is null**: This operator filters a layer’s elements to display the elements whose attribute value (regardless of its type) is null.

**is not null**: This operator filters a layer’s elements to display the elements whose attribute value (regardless of its type) is not null.

**interval**: This operator filters a layer's data based on time ranges defined using a start date, an end date and a reference date. The user therefore has a tool to display data that varies over time.

The layer must contain at least two date and/or timestamp attributes, one of these being the start Date/Time, and the other being the end Date/Time. The values of these dates can be NULL to indicate a start date that goes a long way back or an end date that is very far in the future.

A reference date is also needed. This date can be a specific date (in the past or in the future) or a current Date/Time, which indicates the present moment.

Only layer elements whose reference date is between the start and end date are displayed in the map.

The following figure illustrates this filter.

<figure><img src="https://2098443701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcA9CuUnY5hTYroiPhD1w%2Fuploads%2F74L88mQTvRCXXAH8dWzv%2Fclip_0082.png?alt=media&#x26;token=23da825b-4ae0-4bab-922b-a017f932d42e" alt=""><figcaption></figcaption></figure>
