Skip to content

Commit 131033e

Browse files
committed
examples/deepzoom: Avoid loading smallest Deep Zoom levels
in deepzoom_server and deepzoom_tile. The smallest levels are a waste of network round trips.
1 parent 12d35bb commit 131033e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/deepzoom/templates/slide-multipane.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,13 @@ <h1>Slide properties</h1>
124124
visibilityRatio: 1,
125125
zoomPerScroll: 2,
126126
});
127+
viewer.addHandler("open", function() {
128+
// To improve load times, ignore the lowest-resolution Deep Zoom
129+
// levels. This is a hack: we can't configure the minLevel via
130+
// OpenSeadragon configuration options when the viewer is created
131+
// from DZI XML.
132+
viewer.source.minLevel = 8;
133+
});
127134

128135
function open_slide(url) {
129136
var tile_source;

0 commit comments

Comments
 (0)