Skip to content
Permalink
Browse files

remove limitation to print only one extra wms layer through external_…

…wms parameter
  • Loading branch information
uprel committed Nov 24, 2019
1 parent 30018f9 commit 92a76a64acfc5fdee3d4b64bd39d99080fef6a1d
Showing with 3 additions and 3 deletions.
  1. +3 −3 client/site/js/QGISExtensions.js
@@ -443,7 +443,7 @@ Ext.extend(QGIS.PrintProvider, GeoExt.data.PrintProvider, {
var baseDefinition = '';
if(extra.length>0) {
var extraNames = extra.map(function(item){return item.name;});
extraDefinition = extra.map(function(item){return item.definition;})[0]; //get only first one, ok?
extraDefinition = extra.map(function(item){return item.definition;});
layers.unshift(extraNames.join(','));
}

@@ -500,8 +500,8 @@ Ext.extend(QGIS.PrintProvider, GeoExt.data.PrintProvider, {
printUrl += '&OPACITIES='+encodeURIComponent(thematicLayer.params.OPACITIES);
}

if (extraDefinition>'') {
printUrl += '&' + extraDefinition;
if (extraDefinition.length>0) {
printUrl += '&' + extraDefinition.join('&');
}

if (baseDefinition>'') {

0 comments on commit 92a76a6

Please sign in to comment.
You can’t perform that action at this time.