Clickable World Map Example with Lightbox Effect

With Interactive World Maps Worpress plugin and standalone version it’s possible to create custom javascript actions to ‘on click’ events on active regions of the map. In this example I created a lightbox effect to display a picture when the user clicks in one of the highlighted countries.

To achieve that, I installed Fancybox for wordpress free plugin. After I created a map of the world and created a custom action with the following details:

jQuery.fancybox(
{
type: ‘image’,
href: ivalue_40[selectedRegion]
});

I followed the Fancybox API details to build this code. It says the link type will be an image and I set the href as the Action Value for the entries of the map.

Check this image for more details on how the other option were set up in the administration panel of the Interactive World Maps plugin.

lightbox-fancybox