From 3d3db411564f59aca097e42638b5266fe14bbfb9 Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Tue, 19 Jul 2022 13:36:30 +0200 Subject: [PATCH] Fixes a small race condition issue that happened with WMTS maps --- src/gigapixel/GigapixelAnnotationLayer.js | 3 +++ 1 file changed, 3 insertions(+) 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(