mac5562
Posts: 9
Joined: Thu Aug 25, 2022 6:59 am

Mappoint not showing on maps

Hi

I try to use the mappoint on my custom maps, but for some reason it not showing in my custom map. It's appering in the legends but the point not.

I using x y for coordinates.

Can you help me that ?
kamil.k
Posts: 458
Joined: Thu Oct 06, 2022 12:49 pm

Re: Mappoint not showing on maps

Hello mac5562!
Thanks for contacting us again with your question!

Unfortunately, It is hard to tell you how to achieve that without better visualization. Could you reproduce the issue in an online editor that I could work on? Would be much helpful to start debugging. You can start here: https://jsfiddle.net/BlackLabel/0pbeym97/ and send me a forked link.

I am looking forward to your response.
Best Regards!
Kamil Kubik
Highcharts Developer
mac5562
Posts: 9
Joined: Thu Aug 25, 2022 6:59 am

Re: Mappoint not showing on maps

kamil.k wrote: Mon Nov 14, 2022 8:46 am Hello mac5562!
Thanks for contacting us again with your question!

Unfortunately, It is hard to tell you how to achieve that without better visualization. Could you reproduce the issue in an online editor that I could work on? Would be much helpful to start debugging. You can start here: https://jsfiddle.net/BlackLabel/0pbeym97/ and send me a forked link.

I am looking forward to your response.
Best Regards!
Hi !

Firstly, thank you for your help. So i upload to jsfidle a brief of my code. It's not the all code only with just the first 2 object because all my series lines would be over 940000. But i hope it shows that what is my problem.

https://jsfiddle.net/mm5562/xfse37Lp/5/
kamil.k
Posts: 458
Joined: Thu Oct 06, 2022 12:49 pm

Re: Mappoint not showing on maps

The problem seems to be with the path you used, the Highcharts configuration is correct. The point renders correctly but it's position is out of the viewport due to path options. What I would recommend is to move the point to the viewport using x and y properties or change the path configuration. I have updated your demo changing both, see:
https://jsfiddle.net/BlackLabel/gj5wbmrh/

Let me know if that works for you,
Regards!
Kamil Kubik
Highcharts Developer
mac5562
Posts: 9
Joined: Thu Aug 25, 2022 6:59 am

Re: Mappoint not showing on maps

kamil.k wrote: Tue Nov 15, 2022 11:18 am The problem seems to be with the path you used, the Highcharts configuration is correct. The point renders correctly but it's position is out of the viewport due to path options. What I would recommend is to move the point to the viewport using x and y properties or change the path configuration. I have updated your demo changing both, see:
https://jsfiddle.net/BlackLabel/gj5wbmrh/

Let me know if that works for you,
Regards!
Hi !

Can you help me on that how i can change viewport please? My problem with the other solution the path changes take much time (i need modify over 100000 path) and i have lack of knowledge how to modify these.
kamil.k
Posts: 458
Joined: Thu Oct 06, 2022 12:49 pm

Re: Mappoint not showing on maps

Unfortunately, the wrong paths configuration positions the points out of the viewport, there is no way to change the viewport to achieve that. My suggestion is to change the paths configuration, you can read more about the paths here: https://developer.mozilla.org/en-US/doc ... rial/Paths

Alternatively, you can change only the x and y values to adjust the correct point's position. I have updated the demo without changing the path, see:
https://jsfiddle.net/BlackLabel/p4dh72ej/

I hope you will find it useful,
Regards!
Kamil Kubik
Highcharts Developer

Return to “Highcharts Maps”