Either make the circles with {clickable: false} or capture the click event on the circles also
Getting coordinates by clicking over a circle overlay
-
21-04-2022 - |
Question
I have a script that gets the coordinate of a map by clicking. At the same time, there are circle overlays spread across the map. I can get the coordinate of anywhere but the area covered by the overlays. What is a good work-around for this problem?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow