Skip to content
Permalink
Browse files

Set wms groups always as identifiable

  • Loading branch information
marco
marco committed Jul 31, 2011
1 parent 016d3a2 commit 557a12466aaef2e97934cbb83867df792afb1928
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/mapserver/qgsprojectparser.cpp
@@ -92,6 +92,7 @@ void QgsProjectParser::layersAndStylesCapabilities( QDomElement& parentElement,
//So we create an artificial one here to be in accordance with the schema
QString projTitle = projectTitle();
QDomElement layerParentElem = doc.createElement( "Layer" );
layerParentElem.setAttribute( "queryable", "1" );
QDomElement layerParentNameElem = doc.createElement( "Name" );
QDomText layerParentNameText = doc.createTextNode( projTitle );
layerParentNameElem.appendChild( layerParentNameText );
@@ -144,6 +145,7 @@ void QgsProjectParser::addLayers( QDomDocument &doc,

if ( currentChildElem.tagName() == "legendgroup" )
{
layerElem.setAttribute( "queryable", "1" );
QString name = currentChildElem.attribute( "name" );
QDomElement nameElem = doc.createElement( "Name" );
QDomText nameText = doc.createTextNode( name );

0 comments on commit 557a124

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