[fusion-commits] r1452 - in trunk/MapGuide: . php
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu Aug 7 16:37:00 EDT 2008
Author: madair
Date: 2008-08-07 16:37:00 -0400 (Thu, 07 Aug 2008)
New Revision: 1452
Modified:
trunk/MapGuide/MapGuide.js
trunk/MapGuide/php/Query.php
Log:
closes #97: add optional queryHiddenLayers param to Query.php
Modified: trunk/MapGuide/MapGuide.js
===================================================================
--- trunk/MapGuide/MapGuide.js 2008-08-07 20:04:53 UTC (rev 1451)
+++ trunk/MapGuide/MapGuide.js 2008-08-07 20:37:00 UTC (rev 1452)
@@ -790,6 +790,7 @@
'mapname': this._sMapname,
'session': this.getSessionID(),
'spatialfilter': options.geometry || '',
+ 'queryHiddenLayers': options.queryHiddenLayers || '',
'maxfeatures': options.maxFeatures || 0, //zero means select all features
'layers': options.layers || '',
'variant': options.selectionType || this.selectionType
Modified: trunk/MapGuide/php/Query.php
===================================================================
--- trunk/MapGuide/php/Query.php 2008-08-07 20:04:53 UTC (rev 1451)
+++ trunk/MapGuide/php/Query.php 2008-08-07 20:37:00 UTC (rev 1452)
@@ -86,6 +86,7 @@
}
$bComputedProperties = isset($_REQUEST['computed']) && strcasecmp($_REQUEST['computed'], 'true') == 0;
+ $bQueryHiddenLayers = isset($_REQUEST['queryHiddenLayers']) && strcasecmp($_REQUEST['queryHiddenLayers'], 'true') == 0;
/*holds selection array*/
$properties = NULL;
@@ -112,9 +113,11 @@
} else {
$layerObj = $mapLayers->GetItem($i);
}
-
+ $bVisFlag = $layerObj->IsVisible() || $bQueryHiddenLayers;
+ echo "/*bVisFlag:".$bVisFlag."*/";
+
$className = $layerObj->GetFeatureClassName();
- if (!$layerObj->GetSelectable() || !$layerObj->IsVisible() ||
+ if (!$layerObj->GetSelectable() || !$bVisFlag ||
$className=='RedlineSchema:Redline' ||
!$className || $className=='rasters:RasterType' ||$className=='') {
continue;
More information about the fusion-commits
mailing list