# Automatically centre the map around a specified point by dropdown menu

**URL:** https://discuss.elastic.co/t/automatically-centre-the-map-around-a-specified-point-by-dropdown-menu/296281
**Category:** Kibana
**Created:** [February 4, 2022, 11:17am UTC](https://discuss.elastic.co/t/automatically-centre-the-map-around-a-specified-point-by-dropdown-menu/296281 "2022-02-04T11:17:58Z")
**Posts on this page:** 3
**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 4, 2022, 11:17am UTC](https://discuss.elastic.co/t/automatically-centre-the-map-around-a-specified-point-by-dropdown-menu/296281/1 "2022-02-04T11:17:58Z")

</div>

Hi, There is a dropdown menu filter of ID's with each of them having different latitudes and longitudes on the map. Is there any way that I can centre the map around the specified point by clicking on the ID in the dropdown filter?

Here is the expression editor of the map shown below. Is there anything that I need to add there in order to allow the map to be automatically centered.

```auto
filters group="by-user"
| savedMap id="98c7fda0-491f-11ec-b5ab-fbc66f2b8ddf" center={mapCenter lat=51.471 lon=-1.60336 zoom=6.16} timerange={timerange from="now-1h" to="now-5m"}
| 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: [February 4, 2022, 7:44pm UTC](https://discuss.elastic.co/t/automatically-centre-the-map-around-a-specified-point-by-dropdown-menu/296281/2 "2022-02-04T19:44:01Z")

</div>

Click "Map settings" to open settings panel. Then under "navigation", check "Auto fit map to data bounds". Finally embed your map in a dashboard and add Control panel. Interacting with the control panel filter the dashboard for the select and the map will auto navigate to the location.

---

<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 4, 2022, 7:44pm UTC](https://discuss.elastic.co/t/automatically-centre-the-map-around-a-specified-point-by-dropdown-menu/296281/3 "2022-03-04T19:44:39Z")

</div>

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