Closed AdrienAdB closed 6 years ago
Solved, I added this
var mapL = new Datamap({ ...... ...... done: function(datamap) { datamap.svg.selectAll('.datamaps-subunit').on('click', function(geography) { link = geography.properties.name; location.href = link; });
Hi, I wish to add a link when I click on a country. Below is my code and I don't where and how to add link url for each country? I believe I should add onClick event somewhere?
Thanks for help.