javascript - SceneNode (layers), Deep Zoom Composer and Seadragon Ajax -
i'm using deepzoom composer layer different images on top of other, each layer on top being smaller. (similar http://msdn.microsoft.com/en-us/expression/cc745977.aspx)
is there easy way using seadragon ajax 0.8.9 zoom each layered image on top (with container showing exact 1:1 ratio of top layered image), instead of manually creating control overlay , assigning click behaviour zoom/pan layered area on overall composition?
update: i've tried use sparseimagescenegraph.xml values set zoomto to:
<x>0.0663816754801515</x> <y>0.0850837639496624</y> <width>0.0322681051707401</width> <height>0.0322681051707415</height> <zorder>2</zorder>
using
viewer.viewport.zoomto(30.990353933356293, new seadragon.point(0.0663816754801515, 0.0850837639496624));
but off 2nd level image.
also tried:
var x = 0.066381675480155; var y = 0.085083763949665; var w = 0.0322681051707403; var h = 0.0322681051707407; var rect = new seadragon.rect(x,y,w,h); viewer.viewport.fitbounds(rect);
but off 2nd layer image too. (even though 2nd image partially visible)
2nd update
i'm investigating using openseadragon test wanted achieve, , here have:
viewer = new openseadragon.viewer("container"); $.extend(true, openseadragon.options, { autohidecontrols: false, defaultzoomlevel : 1, visibilityratio : 1.1, constrainduringpan : true, minzoomimageratio : 1, maxzoompixelratio : 30, animationtime: 1.5, tilesources: [{ id: 'example-overlay', x: 0, y: 0, width: 0.015, height: 0.015, classname: 'highlight' }] }); viewer.shownavigator = false; viewer.open("test4/generatedimages/dzc_output.xml"); viewer.clearcontrols();
i can't overlay show using above, doing wrong? there example of initialising openseadragon xml(dzi) overlays , associated click events overlays ? code sample appreciated!
definitely seems should possible, , seems you're on right track. perhaps there's pattern how off numbers are?
by way, seadragon ajax has evolved deal since 0.8.9, , openseadragon:
http://openseadragon.github.io/
perhaps you're trying works that? if not, file bug there... it's actively being developed.
Comments
Post a Comment