This is fork of original SpryMap with IE fix. Demo can be seen here: demo.spidersoft.com.au/SpryMap/index.html
varmap=newSpryMap({// The ID of the element being transformed into a mapid : "",// The width of the map (in px)width: 800,// The height of the map (in px)height: 800,// The X value of the starting map positionstartX: 0,// The Y value of the starting map positionstartY: 0,// Boolean true if the map should animate to a stopscrolling: true,// The time (in ms) that the above scrolling lastsscrollTime: 300,// Boolean true if the map disallows moving past its edgeslockEdges: true,// The CSS class attached to the wrapping map divcssClass: "",// The cursor CSS style rule to apply when the mouse hovers the maphoverCursor: "auto",// The cursor CSS style rule to apply when the mouse is dragged on the mapdragCursor: "[closed hand cursor]"});- Did you have a way to insert some clickable area on the map? I want to insert on two different city on your map the possibility for a user to click and open a link.
<imgid="worldMap" src="map.jpg" alt="A map of the world." usemap="#Map" /><mapname="Map" id="Map"><areaalt="" title="" href="#" shape="rect" coords="432,49,758,425" onclick="alert('Area1');" /><areaalt="" title="" href="#" shape="rect" coords="589,1586,772,1727" onclick="alert('Area2');" /><areaalt="" title="" href="#" shape="rect" coords="435,1259,681,1581" onclick="alert('Area3');" /><areaalt="" title="" href="#" shape="rect" coords="688,1585,780,911" onclick="alert('Area4');" /></map>- The another way to insert clickable on the map(css position)
<style>#worldMap>a {
position:absolute;
width:10px;
height:10px;
}
</style><divid="worldMap"><imgsrc="map.jpg" alt="A map of the world." /><ahref="javascript:void(0)" onclick="alert('clickable demo')" style="top:420px;left:550px;background-color: red;"></a><ahref="javascript:void(0)" onclick="alert('clickable img demo')" style="top:500px;left:320px;"><imgsrc="styles/box.png" alt="" style="width:30px;height:30px;" /></a></div>