10bestdesign / jqvmap

jQuery Vector Map Library
https://www.10bestdesign.com/jqvmap/
Other
1.82k stars 681 forks source link

List of selections as region labels, not codes #348

Open croaker000 opened 4 years ago

croaker000 commented 4 years ago

So:

onRegionSelect: function(event, code, region){
   console.log(vmap.selectedRegions);
}

Gives me the full list of all the currently selected region codes as an array. How can I get the label for each code? Does jqvmap expose a list of codes/labels?