Skip to content
Permalink
Browse files

Add a scale parameter for maps in the getPrint request

git-svn-id: http://svn.osgeo.org/qgis/trunk@15089 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Jan 27, 2011
1 parent ecdf400 commit 406ce0db4ebaf224f9db901077c86901f9a872a6
Showing with 15 additions and 4 deletions.
  1. +15 −4 src/mapserver/qgsconfigparser.cpp
@@ -343,15 +343,26 @@ QgsComposition* QgsConfigParser::createPrintComposition( const QString& composer
}
}

//get layer list from string
//get forced scale from string
if ( replacementList.size() > 2 )
{
bool conversionOk;
double scale = replacementList.at( 2 ).toDouble( &conversionOk );
if ( conversionOk )
{
currentMap->setNewScale( scale );
}
}

//get layer list from string
if ( replacementList.size() > 3 )
{
QStringList layerSet;
QStringList wmsLayerList = replacementList.at( 2 ).split( "," );
QStringList wmsLayerList = replacementList.at( 3 ).split( "," );
QStringList wmsStyleList;
if ( replacementList.size() > 3 )
if ( replacementList.size() > 4 )
{
wmsStyleList = replacementList.at( 3 ).split( "," );
wmsStyleList = replacementList.at( 4 ).split( "," );
}

for ( int i = 0; i < wmsLayerList.size(); ++i )

0 comments on commit 406ce0d

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