• I have a fairly complex imagemap that uses a number of polygons to map out hotspots in the shape of portions of the map. The map works fine, except for this strange little quirk.

    When I preview the map from the edit page, the hotspots are dead-on. I can mouseover the edge of each hotspot perfectly. However, when I display the live page, the hotspots are all shifted to the right and below the actual hotspots on the map. I can’t show you how it works correctly with preview because you would have to be logged in as me, but you can go to: jimrea.com/wp4/pacific-palisades-neighborhoods/ where you will see the target on the map light up in blue and the mouseover pointer is active to the right and below the blue portion.

    I did wrap the html code in a div id=”PPMap” and added the exact dimensions of the overall map in the CSS.

    #PPMap {
    height: 346;
    width: 800;
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jarea

    (@jarea)

    Fixed it -> added position: absolute; to the CSS for #PPMap!

    Drat – it did fix my offset problem but broke my CSS for the footer part of the page.

    Thread Starter jarea

    (@jarea)

    I opened the pages with Firebug and was able to graphically show the actual area of the hotspots in the two situations.

    Here are a couple of screen grabs showing the different behavior

    This is an image of the page generated by WP edit>preview where the hotspot is properly mapped on top of the image.
    img1

    This is an image of the live page showing the offset between the image and the hotspot.
    img2

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Strange Imagemapping Behavior – Hotspot Registration Incorrect’ is closed to new replies.