-
Notifications
You must be signed in to change notification settings - Fork 26
Description
Hi,
I'm quite new to OpenSeadragon so I'm currently trying to set up a small example page with OpenSeadragon and SVG-Overlay to gain better understanding of it. Applying an overlay with d3 (like the one on the example page) works just as it should.
But the overlay does not show at all when I try and load a external file. It is correctly loaded and appended to the <g>
-Element as seen here:
<svg style="position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;" width="721" height="966">
<g transform="translate(36.0480700651691,64.99999999999946) scale(618.7738610903659) rotate(0)">
<svg width="200" height="600" xmlns="http://www.w3.org/2000/svg">
<circle id="greencircle" cx="30" cy="30" r="30" fill="green"></circle>
</svg>
</g>
</svg>
I accidentally dragged and dropped the inner <svg>
-Node out of the <g>
-Element and then it suddenly displayed the overlay, but of course it won't zoom and pan with the image like that. I tried the same with larger, more complex SVG-Files from across the internet and they all behave the same.
Do you have any idea what I am doing wrong or what is causing this. There must be something I overlooked because the SVGs all seem to be OK...
Thanks in advance for any help!