I'm importing the map like this
Code: Select all
import usAndCanada from '@highcharts/map-collection/custom/usa-and-canada.topo.json'
Code: Select all
const pos = chartRef.current.chart.fromLatLonToPoint({ lat: 40, lon: -74 })
chartRef.current.chart.mapZoom(0.5, pos.x, pos.y)
Any help would be appreciated.