Skip to content

Commit

Permalink
Align with #587
Browse files Browse the repository at this point in the history
  • Loading branch information
volterra79 committed Feb 29, 2024
1 parent 37d9ab9 commit 7d98161
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/Print.vue
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ export default {
.closeContent()
.then(component => {
setTimeout(() => {
const map = GUI.getService('map');
const map = component.getService();
map.getMap().once('postrender', e => {
if (!show) {
return this._clearPrint();
Expand All @@ -449,6 +449,11 @@ export default {
},

_setPrintArea() {
//No maps set. Only attributes label
if (!this.has_maps) {
this._clearPrint();
return;
}
const map = GUI.getService('map').viewer.map;
this.state.size = map.getSize();
const resolution = map.getView().getResolution();
Expand Down

0 comments on commit 7d98161

Please sign in to comment.