Sign in to follow this  
eriklindblad

Catch clicks in map

Recommended Posts

Is there any way to catch clicks on the map in JavaScript? I would like to use the maps as a country selector. When you click a country I want it to trigger a JavaScript callback with the identifier of the country (or region) as argument. Ideally this would be coupled with a partial update of that country's color (and other attributes), marking it as selected, but a callback would be sufficient. Is there any way to do this?

 

 

 

Kindest regards

 

 

 

Erik Lindblad

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this