# HG changeset patch # User robcast # Date 1390305099 -3600 # Node ID cc1decb4c941d36a6e3cd5839ac457c7096592b6 # Parent 1c26847a2378a1a5010d0546a2ef1f530849278a loading additional (relative coordinate) SVG layers works now. removing more old (svg-related) stuff. diff -r 1c26847a2378 -r cc1decb4c941 webapp/src/main/webapp/jquery/digilib-vector.html --- a/webapp/src/main/webapp/jquery/digilib-vector.html Mon Jan 20 18:38:54 2014 +0100 +++ b/webapp/src/main/webapp/jquery/digilib-vector.html Tue Jan 21 12:51:39 2014 +0100 @@ -54,7 +54,11 @@ }, 'id' : 'myBestRect' }]); - $div.digilib("addVectorLayer", {'projection': 'relative', 'svg': $('#test-squares')[0]}); + $('#test-squares')[0].addEventListener('load', function (evt) { + var layer = {'projection': 'relative', '$elem': $(this), 'svgElem': this.contentDocument.documentElement} + $div.digilib("addVectorLayer", layer); + return false; + }); }); @@ -64,8 +68,8 @@
digilib doesn't work! Please switch on Javascript or notify the server administrator!