Maud
Posts: 4
Joined: Mon Oct 04, 2021 9:27 am

focusing map on certain point

Hi,

I want to create a Europe map as attached, but the standard Europe option excludes Azarbaijan. I don't know what the best way is to create such a map? I was wondering whether it was possible to use the worldmap but to zoom it in to the area as the Europe map shows area, and exclude the rest. Or do I need to create a new custom made map? Is there an easy way to do that?

I am using Everviz and I can manage fine as long I do not need to use the custom code, so if I need to work with the custom code I would be really grateful to get some help with that!

Thanks.
Attachments
map europe .png
map europe .png (90.58 KiB) Viewed 991 times
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: focusing map on certain point

Hello,

Welcome to our forum and thanks for contacting us with your question!

You can use the world map and zoom to point to the part of the map you want to show using xAxis.max, xAxis.min, yAxis.max and yAxis.min properties.

Demo: https://jsfiddle.net/BlackLabel/ybauLnwm/
API: https://api.highcharts.com/highmaps/xAxis.max

Let me know if you have any further questions!
Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/
Maud
Posts: 4
Joined: Mon Oct 04, 2021 9:27 am

Re: focusing map on certain point

Thank you for your reply!

Like I said I'm an extreme newbie to this, so I find it hard to find my way around. To just to try it out, I copied the code (except the beginning) from the example in the everviz custom code option, but nothing happened, or rather the whole map became hard to scroll around as it zoomed in on the wrong region, not the one the example provides. Is it because I did not refer to the map I used? If I just use the standard world option, how do I refer to it then?
And how do I find the right minimum maximum coordinates/values to refer to?
Attachments
everviz .png
everviz .png (23.88 KiB) Viewed 952 times
Maud
Posts: 4
Joined: Mon Oct 04, 2021 9:27 am

Re: focusing map on certain point

Nevermind! I fixed it.
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: focusing map on certain point

Hi,

Ok, but feel free to ask any further questions!
Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/

Return to “Highcharts Maps”