okuznetsov
Posts: 3
Joined: Thu Jul 13, 2023 6:46 am

how to solve the problem with markers overlapping each other on mouse hover?

Thu Jul 13, 2023 7:07 am

Hello.

how to make the marker "moscow" by default be placed behind the marker "tula", and also when hovering over the marker "moscow" it remains behind the marker "tula" and is partially highlighted?

okuznetsov
Posts: 3
Joined: Thu Jul 13, 2023 6:46 am

Re: how to solve the problem with markers overlapping each other on mouse hover?

Thu Jul 13, 2023 8:37 am

you can consider other approaches to placing markers on the map, or you can try grouping markers, as well as other options

jakub.s
Posts: 977
Joined: Fri Dec 16, 2022 11:45 am

Re: how to solve the problem with markers overlapping each other on mouse hover?

Thu Jul 13, 2023 10:19 am

Hi,

Welcome to our forum & thanks for the question!

The problem is that we do not have any collision-detection and hiding overlapping for custom markers, but I see that you've already reported this issue here: https://github.com/highcharts/highcharts/issues/19359 so one of our Map Developers will take a look at it.

For now I'd just recommend you use the native marker.symbol = 'mapmarker' like here: https://www.highcharts.com/demo/maps/mappoint-mapmarker

Kind regards!
Jakub
Highcharts Developer

okuznetsov
Posts: 3
Joined: Thu Jul 13, 2023 6:46 am

Re: how to solve the problem with markers overlapping each other on mouse hover?

Thu Jul 13, 2023 11:58 am

Thank you, I will wait for a decision, this is a fundamentally important moment for me.

I would also be satisfied with such a temporary solution: is it possible to somehow hide(remove) the inscription "1k" from the marker "tula" when hovering over the marker "moscow"?

jakub.s
Posts: 977
Joined: Fri Dec 16, 2022 11:45 am

Re: how to solve the problem with markers overlapping each other on mouse hover?

Fri Jul 14, 2023 8:06 am

I see that you've also posted this topic on StackOverflow here: https://stackoverflow.com/questions/766 ... 1#76680381

We're working as a single support team so you'll receive your answer there.

Best regards!
Jakub
Highcharts Developer

Return to “Highcharts Maps”