Last active
May 6, 2016 08:50
-
-
Save pjmartorell/a40fa2cd102f860276c3f2e556181876 to your computer and use it in GitHub Desktop.
Function to fetch the region name from the region ID in mapSVG WordPress plugin Can be used for Global tooltips or popovers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Function to fetch the region name from | |
the region ID in mapSVG WordPress plugin | |
Can be used for Global tooltips or popovers */ | |
function (event, region) { | |
return '<b>' + region.id.replace(/_/g," "); + '</b>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment