Skip to content

Commit

Permalink
Merge pull request #3655 from camptocamp/sync_print_frame_on_scale_ch…
Browse files Browse the repository at this point in the history
…oose

Update print mask manually on scale selection
  • Loading branch information
ger-benjamin authored Mar 15, 2018
2 parents 82482c7 + 22b5ecc commit 9c5cfcc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contribs/gmf/src/directives/print.js
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,8 @@ gmf.PrintController.prototype.getSetScale = function(opt_scale) {
const res = this.ngeoPrintUtils_.getOptimalResolution(mapSize, this.paperSize_, opt_scale);
const contrainRes = this.map.getView().constrainResolution(res, 0, 1);
this.map.getView().setResolution(contrainRes);
// Render the map to update the postcompose mask manually
this.map.render();
this.scaleManuallySelected_ = true;
}
return this.layoutInfo.scale;
Expand Down

0 comments on commit 9c5cfcc

Please sign in to comment.