Automatic zoom to a specific province on page load

Hi,

I’m wondering if there is a way to have a map of Canada and then on page load it automatically zooms into a specific province/territory, for example, Ontario.

I see there is a section under Advanced to define different options, but I’m not sure how to go about changing the settings to do this.

Any help would be appreciated.

image

Thansk,
Kerry

Happy Sunday Kerry. This one was a bit tricky, but I think I was able to come up with a solution using the Highcharts APIs

Under custom code, I experimented with mapzoom and center attributes like this:

Here’s the code I used:

Highcharts.merge(true, options, {
   
    mapView: {
            center: [6000, 2000],
            zoom: -2.5
        },
});

Hope this helps

Best regards,
Havard

1 Like

Morning Havard,

Thank you for looking into this and on a Sunday. This is what came up with too and it seems to work for or purposes.

Alternatively, it should go in Advanced > Map View, but for some reason the zoom doesn’t work properly.

Kerry