# Map - Filter by boundary, shape or line

**URL:** https://discuss.elastic.co/t/map-filter-by-boundary-shape-or-line/311682
**Category:** Kibana
**Created:** [August 9, 2022, 1:14am UTC](https://discuss.elastic.co/t/map-filter-by-boundary-shape-or-line/311682 "2022-08-09T01:14:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Matt.Wash](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@Matt.Wash](https://discuss.elastic.co/u/Matt.Wash)
#### Post date: [August 9, 2022, 1:14am UTC](https://discuss.elastic.co/t/map-filter-by-boundary-shape-or-line/311682/1 "2022-08-09T01:14:10Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/3/7/37057d1ef51d6a6db6b6f4ad2b4ac2d8cf0ed92b.png)

creating the filter for heat map geolocation is awesome, but how do i delete a filtered area?

There doesn't appear to have the the same UI as noted below.

I am running 8.3.3

![image](https://us1.discourse-cdn.com/elastic/original/3X/1/1/11d7b70f996218e92686c2d19d2cfe467773b84f.jpeg)

Any ideas?

Cheers,  
Matt

---

<div class="post-metadata">

### Author: ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)
#### Post date: [August 9, 2022, 2:30pm UTC](https://discuss.elastic.co/t/map-filter-by-boundary-shape-or-line/311682/2 "2022-08-09T14:30:36Z")

</div>

Your screen shots are showing 2 different draw modes.

The first shows [drawing features on map to create spatial filters](https://www.elastic.co/guide/en/kibana/current/maps-create-filter-from-map.html#maps-spatial-filters)

The second shows [drawing features on map to index into Elasticsearch](https://www.elastic.co/guide/en/kibana/current/import-geospatial-data.html#_draw_features_in_a_map)

These 2 draw modes result in different results.

Drawing features to create filters adds a filter pill to the search bar. To remove the filter pill, click the "x"

 ![Screen Shot 2022-08-09 at 8.27.28 AM](https://us1.discourse-cdn.com/elastic/original/3X/d/c/dce202f30ee8f96e99953f7939559e798461d92f.jpeg)

Drawing features on map to index into Elasticsearch adds a new document in Elasticsearch. To remove the feature, click the "trash can" icon in the draw tools and then click the feature you wish to delete.

 ![Screen Shot 2022-08-09 at 8.29.46 AM](https://us1.discourse-cdn.com/elastic/original/3X/f/6/f66bd08c6d78085c8dd22dcc5ae8bee0faa77363.jpeg)

---

<div class="post-metadata">

### Author: ![Matt.Wash](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@Matt.Wash](https://discuss.elastic.co/u/Matt.Wash)
#### Post date: [August 10, 2022, 9:35pm UTC](https://discuss.elastic.co/t/map-filter-by-boundary-shape-or-line/311682/3 "2022-08-10T21:35:32Z")

</div>

thanks @Nathan_Reese I come from a CAD/BIM background, so was looking for a way to delete the boundary polygon by selecting it. I didn't realise it added a filter to the top of the screen. Thanks for clarifying.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [September 7, 2022, 9:36pm UTC](https://discuss.elastic.co/t/map-filter-by-boundary-shape-or-line/311682/4 "2022-09-07T21:36:06Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
