Skip to content

Commit

Permalink
Fix: overview map with print
Browse files Browse the repository at this point in the history
  • Loading branch information
nboisteault authored and github-actions[bot] committed Jul 4, 2024
1 parent 5b1de6d commit e2f3f7b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions assets/src/components/Print.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,15 +380,13 @@ export default class Print extends HTMLElement {
});

// Overview map
if (mainLizmap.config.options.hasOverview && this._overviewMapId) {
if (this._overviewMapId) {
let extent = mainLizmap.config.options.bbox;

if(projectProjection != mapProjection){
extent = transformExtent(extent, mapProjection, projectProjection);
}
wmsParams[this._overviewMapId + ':EXTENT'] = extent.join(',');
wmsParams[this._overviewMapId + ':LAYERS'] = 'Overview';
wmsParams[this._overviewMapId + ':STYLES'] = '';
}

// Display spinner and message while waiting for print
Expand Down

0 comments on commit e2f3f7b

Please sign in to comment.