Skip to content
Permalink
Browse files
Remove double content from wmsserver (probably a merging artifact)
  • Loading branch information
mhugent committed Nov 23, 2012
1 parent 3700d84 commit d582f856c59b5d4c2df43daa2ebb6ec1c93f09a2
Showing with 0 additions and 27 deletions.
  1. +0 −27 src/mapserver/qgswmsserver.cpp
@@ -1811,33 +1811,6 @@ QMap<QString, QString> QgsWMSServer::applyRequestedLayerFilters( const QStringLi
}
mMapRenderer->setExtent( filterExtent );
}

//No BBOX parameter in request. We use the union of the filtered layer
//to provide the functionality of zooming to selected records via (enhanced) WMS.
if ( mMapRenderer && mMapRenderer->extent().isEmpty() )
{
QgsRectangle filterExtent;
QMap<QString, QString>::const_iterator filterIt = filterMap.constBegin();
for ( ; filterIt != filterMap.constEnd(); ++filterIt )
{
QgsMapLayer* mapLayer = QgsMapLayerRegistry::instance()->mapLayer( filterIt.key() );
if ( !mapLayer )
{
continue;
}

QgsRectangle layerExtent = mapLayer->extent();
if ( filterExtent.isEmpty() )
{
filterExtent = layerExtent;
}
else
{
filterExtent.combineExtentWith( &layerExtent );
}
}
mMapRenderer->setExtent( filterExtent );
}
}
return filterMap;
}

0 comments on commit d582f85

Please sign in to comment.