jamietre/ImageMapster — Issue #23: Doesn't work if div display is none then shown
Author: twitchsbrew
Created: 2011-10-18 23:23:44+00:00
State: open

First of all I have to say how glad I am I found this plug in. I was trying to figure out how to highlight an image map area over a year ago and somehow I found this pretty quickly on a search.

It is exactly what I was looking for. I am using it to simply highlight the area on mouseover.

$('img').mapster({
mapKey: 'id'
});

However, there is an issue if I have the image map in a div like

When I click the button to show the div the area is not highlighted.

I've tried setting the display:none with jquery after the mapster code is called thinking maybe that would help but it didn't. Is there a way to sort of "re-initiate" the mapster code when the show div button is clicked?

Thanks in advance. Any help is greatly appreciated.

-Twitch