ale4ko69
Posts: 15
Joined: Thu Jan 23, 2020 4:25 pm

Re: Cluster Expansion when there are multiple points at the same lat/long

Dear jakub.s,
Thank you for the sufficient and clear explanation!
jakub.s
Posts: 1164
Joined: Fri Dec 16, 2022 11:45 am

Re: Cluster Expansion when there are multiple points at the same lat/long

No problem, we're here to help!

Do not hesitate to ask in case any more questions come up.

Regards,
Jakub
Jakub
Highcharts Developer
ale4ko69
Posts: 15
Joined: Thu Jan 23, 2020 4:25 pm

Re: Cluster Expansion when there are multiple points at the same lat/long

I have one more question.
If I get to the last cluster in which there are several points and because of the maximum zoom limit it not opened more, and I click on this cluster. How can I know that this cluster is last and then I can show the point data in a pop-up window
Image
jakub.s
Posts: 1164
Joined: Fri Dec 16, 2022 11:45 am

Re: Cluster Expansion when there are multiple points at the same lat/long

Hi,

On chart.events.render (https://api.highcharts.com/highmaps/chart.events.render) you can check if the chart.mapView.zoom is equal to chart.mapView.options.maxZoom to know whether you have reached the maxZoom.

If yes, you can do something about the clusters (in the demo I've printed out information about the cluster that you'll find useful).

Here's a demo: https://jsfiddle.net/BlackLabel/r8ydsont/

Let me know if that helps!

Best regards!
Jakub
Highcharts Developer

Return to “Highcharts Maps”