# Set default zoom on a canvas in a map

**URL:** <https://discuss.elastic.co/t/set-default-zoom-on-a-canvas-in-a-map/296632>\
**Category:** Kibana\
**Created:** [February 8, 2022, 4:17pm UTC](https://discuss.elastic.co/t/set-default-zoom-on-a-canvas-in-a-map/296632 "2022-02-08T16:17:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Angad\_Panesar1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/angad_panesar1/32/79499_2.png) [@Angad\_Panesar1](https://discuss.elastic.co/u/Angad_Panesar1)\
**Post date:** [February 8, 2022, 4:17pm UTC](https://discuss.elastic.co/t/set-default-zoom-on-a-canvas-in-a-map/296632/1 "2022-02-08T16:17:38Z")

</div>

How would you set the **map** on a **canvas** to a **default zoom** like 4.99 if you refresh the page? Is there anything I have to put in the expression editor?

Also, whenever I click on an ID in the dropdown menu, the map vanishes for no reason? Can you explain that? I have already autofitted the map to the bounds.

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [February 10, 2022, 2:59pm UTC](https://discuss.elastic.co/t/set-default-zoom-on-a-canvas-in-a-map/296632/2 "2022-02-10T14:59:35Z")

</div>

> [@Angad\_Panesar1](#):
>
> How would you set the **map** on a **canvas** to a **default zoom** like 4.99 if you refresh the page? Is there anything I have to put in the expression editor?

The location of the map is saved with the canvas, and there is no way to set a default map location so when the page reloads it will reflect the last state, no matter the workpad was in fullscreen or with the editing controls hidden.

> [@Angad\_Panesar1](#):
>
> Also, whenever I click on an ID in the dropdown menu, the map vanishes for no reason? Can you explain that? I have already autofitted the map to the bounds.

Not sure to understand what's going on. If you could share more details:

- Stack version
- Steps to reproduce the error
- Datasets used, ideally if you could reproduce with one the sample datasets that'd be perfect

Hope it helps.

---

<div class="post-metadata">

**Author:** ![Angad\_Panesar1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/angad_panesar1/32/79499_2.png) [@Angad\_Panesar1](https://discuss.elastic.co/u/Angad_Panesar1)\
**Post date:** [February 10, 2022, 3:11pm UTC](https://discuss.elastic.co/t/set-default-zoom-on-a-canvas-in-a-map/296632/3 "2022-02-10T15:11:34Z")

</div>

I already solved the problem. Do not worry about it. 😀

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [February 10, 2022, 3:13pm UTC](https://discuss.elastic.co/t/set-default-zoom-on-a-canvas-in-a-map/296632/4 "2022-02-10T15:13:25Z")

</div>

![](https://us1.discourse-cdn.com/elastic/original/3X/2/8/282f941004f67d37f0c796234eddddb72465af61.gif)

---

<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:** [March 10, 2022, 3:14pm UTC](https://discuss.elastic.co/t/set-default-zoom-on-a-canvas-in-a-map/296632/5 "2022-03-10T15:14:06Z")

</div>

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