highcharts / map-collection-dist

Other
30 stars 37 forks source link

Malaysia: coordinate bug #56

Closed KacperMadej closed 2 years ago

KacperMadej commented 4 years ago

moved from main Highcharts repo: https://github.com/highcharts/highcharts/issues/12904

In short:

there is a problem with the Malaysian map coordinates.

This is a map bug - the hit-zone had the wrong size for the left (west) side of the map.

This could be fixed with a few lines of custom code added manually (as a workaround) like in the below demo: https://jsfiddle.net/BlackLabel/b831hnt5/2/

Highcharts.maps['countries/my/my-all']['hc-transform']['my-all-west']
  .hitZone.coordinates = [
    [[-2000,9999],[4350,9999],[4350,-999],[-2000,-999],[-2000,9999]]
  ];
KacperMadej commented 2 years ago

Closing as resolved