# \[Vega\] Visualisation with multiple maps

**URL:** <https://discuss.elastic.co/t/vega-visualisation-with-multiple-maps/296824>\
**Category:** Kibana\
**Tags:** vega, maps\
**Created:** [February 10, 2022, 9:32am UTC](https://discuss.elastic.co/t/vega-visualisation-with-multiple-maps/296824 "2022-02-10T09:32:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kayak007](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kayak007/32/147597_2.png) [@Kayak007](https://discuss.elastic.co/u/Kayak007)\
**Post date:** [February 10, 2022, 9:32am UTC](https://discuss.elastic.co/t/vega-visualisation-with-multiple-maps/296824/1 "2022-02-10T09:32:50Z")

</div>

Hi,

I'm trying to create a Vega visualization with a main map of a country and several zoomed maps on cities.

Something like this:

 ![VegaMap](https://us1.discourse-cdn.com/elastic/original/3X/6/b/6ba20f41ead68a71e98d5f158aff4b38de001344.png)

I could do that through a dashboard and four visualizations, but the data visualized in each area is the same.  
The dashboard would update the datasets for each visualization (at least it seems so) whereas with Vega it's just one update.  
Should be quicker just to present the same data in four different ways.

It seems to be possible playing with projections in different mark groups, but having no access to map data other than the ones of the EMS I'm a bit stuck.

Anybody knows if it's possible?

Thanks.

Regards.

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [February 24, 2022, 12:23pm UTC](https://discuss.elastic.co/t/vega-visualisation-with-multiple-maps/296824/2 "2022-02-24T12:23:48Z")

</div>

Hello,

If the data is the same then - can you please check out our maps app and the layers & then embed it in a dashboard?

> **[Maps | Kibana Guide \[8.0\] | Elastic](https://www.elastic.co/guide/en/kibana/current/maps.html)**
>
> Add interactive capabilities to your dashboard, such as controls that allow you to apply dashboard-level filters, and drilldowns that allow you to navigate to other dashboards and external websites.

Thanks,  
Bhavya

---

<div class="post-metadata">

**Author:** ![Kayak007](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kayak007/32/147597_2.png) [@Kayak007](https://discuss.elastic.co/u/Kayak007)\
**Post date:** [February 24, 2022, 1:37pm UTC](https://discuss.elastic.co/t/vega-visualisation-with-multiple-maps/296824/3 "2022-02-24T13:37:57Z")

</div>

Hi,

Thanks for your answer.

Yes, using a dashboard is the solution I'm using.  
But my understanding is that, even if the source is the same, each visualisation is going to issue a query to refresh the data.  
So instead of querying the data once with a Vega visualisation, going through a dashboard will launch four queries (one for each visualisation).  
Correct?

In my opinion, Vega allows much more flexibility at the moment.  
The problem with the Kibana embedded map visualisations, it's that you can't map rates (only counts, min, max...).  
If it's possible please tell me how, it will be very helpful.

Regards.

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [February 24, 2022, 3:50pm UTC](https://discuss.elastic.co/t/vega-visualisation-with-multiple-maps/296824/4 "2022-02-24T15:50:38Z")

</div>

Currently, Vega in Kibana only supports a single map per visualization. You may wish to [open a feature request](https://github.com/elastic/kibana/issues/new/choose).

---

<div class="post-metadata">

**Author:** ![Kayak007](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kayak007/32/147597_2.png) [@Kayak007](https://discuss.elastic.co/u/Kayak007)\
**Post date:** [February 24, 2022, 4:12pm UTC](https://discuss.elastic.co/t/vega-visualisation-with-multiple-maps/296824/5 "2022-02-24T16:12:46Z")

</div>

Thanks.

I'll try that.

---

<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 24, 2022, 4:13pm UTC](https://discuss.elastic.co/t/vega-visualisation-with-multiple-maps/296824/6 "2022-03-24T16:13:10Z")

</div>

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