Skip to content

Commit

Permalink
Update print-component.js
Browse files Browse the repository at this point in the history
Fixes WMS layers on Print close along with origo-map#1741
  • Loading branch information
Lundqan committed Apr 18, 2023
1 parent 3002196 commit 6622414
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/controls/print/print-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,12 @@ const PrintComponent = function PrintComponent(options = {}) {
printSettings.on('change:resolution', this.changeResolution.bind(this));
printSettings.on('change:scale', this.changeScale.bind(this));
printSettings.on('change:showscale', this.toggleScale.bind(this));
closeButton.on('click', this.close.bind(this));
closeButton.on('click', function() {
this.close();
viewer.getLayersByProperty('type', 'WMS').forEach(function(layer) {
layer.getSource().refresh();
});
}.bind(this));
},
changeDescription(evt) {
description = evt.value;
Expand Down

0 comments on commit 6622414

Please sign in to comment.