Skip to content

Commit

Permalink
Fixes a small race condition issue that happened with WMTS maps
Browse files Browse the repository at this point in the history
  • Loading branch information
rsimon committed Jul 19, 2022
1 parent ba106e2 commit 3d3db41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gigapixel/GigapixelAnnotationLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 3d3db41

Please sign in to comment.