# How to set a filter to a map embedded in canvas

**URL:** https://discuss.elastic.co/t/how-to-set-a-filter-to-a-map-embedded-in-canvas/328820
**Category:** Kibana
**Tags:** canvas
**Created:** [March 29, 2023, 12:32pm UTC](https://discuss.elastic.co/t/how-to-set-a-filter-to-a-map-embedded-in-canvas/328820 "2023-03-29T12:32:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![obelaisk](https://avatars.discourse-cdn.com/v4/letter/o/439d5e/32.png) [@obelaisk](https://discuss.elastic.co/u/obelaisk)
#### Post date: [March 29, 2023, 12:32pm UTC](https://discuss.elastic.co/t/how-to-set-a-filter-to-a-map-embedded-in-canvas/328820/1 "2023-03-29T12:32:13Z")

</div>

Hi, Im new to canvas and i was trying to know if it's possible to set a filter values of a map based in a value that i get from the urlparam function, like this:

```auto
var_set name="var" value={urlparam param="parameter" default="not_found"}
/*set the filter here*/
| savedMap id="..."
| render

```

---

<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: [March 29, 2023, 9:45pm UTC](https://discuss.elastic.co/t/how-to-set-a-filter-to-a-map-embedded-in-canvas/328820/2 "2023-03-29T21:45:32Z")

</div>

That is not possible. Maps do not use expression language.

You can, however, store a filter with your map saved object. To do this, open the map and add query, filter, and time constraints. Save the map. Now anywhere this map is loaded, those query and filter constraints will be applied.

If you are looking to display a map along with other visualizations, I would recommend using [dashboard](https://www.elastic.co/guide/en/kibana/8.6/dashboard.html). Dashboard allows for passing filters to all panels.

---

<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 26, 2023, 9:45pm UTC](https://discuss.elastic.co/t/how-to-set-a-filter-to-a-map-embedded-in-canvas/328820/3 "2023-04-26T21:45:33Z")

</div>

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