Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Click Function #34

Open
toton6868 opened this Issue · 1 comment

2 participants

@toton6868

Its a very easy question and I am not web professional. I need to create an Interactive Map. I am using JQVMap. Now I need to click region and it will callback an URL of the state. I am giving and function that was given as example in the site. But I dont know how to setup the link with State and URLs. Do I need to store the URLs in a JS and call from there? or I can put the URLs directly under region code. Any Sample code will be enough for me. Please let me know. It will be very helpful to me.

@boron215

onRegionClick: function (event, code, region) {
window.location.replace("http://sample.com/state-map/" + region.toLowerCase() + ". html");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.