diff --git a/src/gigapixel/GigapixelAnnotationLayer.js b/src/gigapixel/GigapixelAnnotationLayer.js index 03fe4b1..0edc049 100644 --- a/src/gigapixel/GigapixelAnnotationLayer.js +++ b/src/gigapixel/GigapixelAnnotationLayer.js @@ -112,6 +112,9 @@ export default class GigapixelAnnotationLayer extends AnnotationLayer { } resize() { + if (!this.store) + return; + const viewportBounds = this.viewer.viewport.getBounds(true); const bufferedBounds = new OpenSeadragon.Rect(