diff --git a/src/viewer.js b/src/viewer.js index 32a18722..a359a9d9 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -1973,12 +1973,11 @@ function openTileSource( viewer, source ) { } if( _this.preserveOverlays ){ - _this.source.overlays = _this.currentOverlays; - } - else{ - _this.source.overlays = _this.source.overlays || []; + _this.overlays = _this.currentOverlays; } + _this.source.overlays = _this.source.overlays || []; + _this.drawer = new $.Drawer({ viewer: _this, source: _this.source,