# Filtering map vectors in Canvas

**URL:** https://discuss.elastic.co/t/filtering-map-vectors-in-canvas/221941
**Category:** Kibana
**Created:** [March 3, 2020, 7:44pm UTC](https://discuss.elastic.co/t/filtering-map-vectors-in-canvas/221941 "2020-03-03T19:44:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![TimJMartin](https://avatars.discourse-cdn.com/v4/letter/t/b77776/32.png) [@TimJMartin](https://discuss.elastic.co/u/TimJMartin)
#### Post date: [March 3, 2020, 7:44pm UTC](https://discuss.elastic.co/t/filtering-map-vectors-in-canvas/221941/1 "2020-03-03T19:44:13Z")

</div>

Hi  
I am new to Elastic but getting on really well. I have uploaded a GeoJSON via Kibana and have created a which I have added to my canvas.

In my canvas I also have a dropdown filter which uses SQL to select a list of discrete codes. I would have thought by selecting one of the codes in the drop down the vector features on the map should be filtered too.

Is this not the case? Or do I need to do something special to wire up the two Elements?

Many thanks for your help

---

<div class="post-metadata">

### Author: ![Catherine\_Liu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/catherine_liu/32/34294_2.png) [@Catherine\_Liu](https://discuss.elastic.co/u/Catherine_Liu)
#### Post date: [March 18, 2020, 6:24pm UTC](https://discuss.elastic.co/t/filtering-map-vectors-in-canvas/221941/2 "2020-03-18T18:24:02Z")

</div>

What is the expression on your map element? By default, the expression for the maps saved objects doesn't include the `filters` function which applies filters to the element, so I'm thinking the filters aren't being applied to your map. In your expression you just want to add `filters` to the top of your expression like this:

```auto
filters
| savedMap id="..."
| render

```

---

<div class="post-metadata">

### Author: ![TimJMartin](https://avatars.discourse-cdn.com/v4/letter/t/b77776/32.png) [@TimJMartin](https://discuss.elastic.co/u/TimJMartin)
#### Post date: [March 25, 2020, 8:41pm UTC](https://discuss.elastic.co/t/filtering-map-vectors-in-canvas/221941/3 "2020-03-25T20:41:56Z")

</div>

> [@Catherine\_Liu](#):
>
> filters

Thank you so so much! I would never have figured that out without your help.

---

<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: [April 22, 2020, 8:42pm UTC](https://discuss.elastic.co/t/filtering-map-vectors-in-canvas/221941/4 "2020-04-22T20:42:04Z")

</div>

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