Get your own customer support community
 

Seadragon Ajax Overlays & HREF

Hello, I'm having trouble with overlays! I've added the following functions (based off of the example given on the seadragon site) and they display fine, but I cannot actually click on the link which appears - it is only accessible by right click open link in.... Clicking just zooms in on the image (normal navigation).

Is there another way for adding a link on top of an overlay (other than innerHTML - isn't compatible with IE anyway!) which I will be able to click on? I know it must be possible to create links using Seadragon Ajax as it is shown here: http://www.wdl.org/en/

function init() {
viewer = new Seadragon.Viewer("container");
viewer.addEventListener("open", addOverlays);
viewer.openDzi("GeneratedImages/dzc_output.xml");
}

function addOverlays(viewer) {

var harry = document.createElement("div");
var pointharry = new Seadragon.Point(
0.6479860647626986, 0.21632549161594064);

var placementharry = Seadragon.OverlayPlacement.BOTTOM;

harry.className = "overlay";
harry.innerHTML = "Microsoft";

viewer.drawer.addOverlay(harry, pointharry, placementharry);

Many thanks in advance!
 
sad I’m confused
Inappropriate?
3 people have this question

The company marked this question as answered.


User_default_medium