dwjung
Posts: 34
Joined: Fri Dec 04, 2020 3:27 am

merging Europe countries on world map

Hi,

I'm trying to use world map bubble with countries of Europe as one selection and other countries are individual.

I think I can do this with joining regions of Europe countries or customize geo-map data. Is there any other simple way?

Best regards,
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: merging Europe countries on world map

Hello dwjung!

Thanks for contacting us!

I think that we can combine that by importing Europe map with the world-population data that we can paste into bubble series. Check out the demo in the link below and tell me if it meets your expectations. :)

Demo: https://jsfiddle.net/BlackLabel/xbt6k59e/

Best regards!
Dominik Chudy
Highcharts Developer
dwjung
Posts: 34
Joined: Fri Dec 04, 2020 3:27 am

Re: merging Europe countries on world map

Hello dominik.c,

Thanks for your help but I think my explanation was not enough to express my purpose. :(

My purpose is to show European Union as one country on world map like below.

Image

Best regards,
User avatar
KacperMadej
Posts: 4632
Joined: Mon Sep 15, 2014 12:43 pm

Re: merging Europe countries on world map

Hi dwjung,

We currently don't have the map you requested in our map collection.

In general, a custom map could be created as described in general documentation here: https://www.highcharts.com/docs/maps/create-custom-maps

It is possible to add shapes to create a new one. However, country boundaries will show. Border width or color could be set so the borders will not be visible in whole map.

Here's a PoC for adding shapes - https://jsfiddle.net/BlackLabel/9pgtd57w/2/

Important options and changes:
- https://api.highcharts.com/highmaps/series.map.allAreas needs to be set to false (or the underlying countries would have to be removed from the edited map to prevent overlapping)
- countries data for the parts of the merged region should be empty (commented out in the demo)

Only some countries from EU are added there, but you could use the code and extend the list of countries that should be added together. If anything in the code is unclear please let me know and I will add info about it.
Kacper Madej
Highcharts Developer
dwjung
Posts: 34
Joined: Fri Dec 04, 2020 3:27 am

Re: merging Europe countries on world map

Hello Kacper,

It's a great example and it's very helpful for my implementation.

Thank you very much.

Best regards.
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: merging Europe countries on world map

That's great to hear!

In case of any further questions, feel free to contact us again.
Dominik Chudy
Highcharts Developer

Return to “Highcharts Maps”