These are chat archives for openseadragon/openseadragon

15th
Aug 2016
Flexflexible
@Flexflexible_twitter
Aug 15 2016 12:55

@iangilman For now I'm already glad that Turnjs in combination with OSD works so great. Will in the near future try to set a max-width for resizing and when this is reached, the canvas/osd container should handle further zooming.

What I run into is the following:
Right now I load the Deepzoom Images through the viewer so:

  var openseadragon_viewports = document.querySelectorAll('#flipbook div');
  $(openseadragon_viewports).each(function(index){
    this.id = index;
    var source = $(this).data("picture");
    var source_xml_file = source + "/dzc_output.xml";
    var viewer = OpenSeadragon({
      id: index,
      mouseNavEnabled: false,
      showNavigationControl: false,
      defaultZoomLevel: 1,
      minZoomLevel: 1,
      maxZoomLevel: 1,
      imageLoaderLimit: 4,
      tileSources: source_xml_file
    })
  });

Now I have dzi files with different names for each .xml file. Is there any way to load the viewer without specifying the absolute path to the .xml file?

Ian Gilman
@iangilman
Aug 15 2016 17:23
@Flexflexible_twitter you don't need to specify a tileSources at all when you create the viewer if you don't want to... you can pass the same info to viewer.open() later. Is that what you're asking for?
Of course when you do eventually open you do need to give an accurate path to whatever you want to open...