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?

Was it helpful?

Solution

Either make the circles with {clickable: false} or capture the click event on the circles also

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top