I am working with maps. So far I’ve been able to display the data and the information which is shown on hover is correct.
Now I am looking at click events. I’d like to bind functions to click events in a way that it matters on which country I click.
Currently, I can bind a function to a click anywhere in the map. Is there a way to detect click events in a country-specific way?
Yep… that’s what I mean. I got to that point. The question is if it is possible to distinguish between the different countries. In your example, that you bind one function to Canada, and another to USA and a third one to Russia.