a slightly more flexible way would be to set a session variable at start up, eg. at the end of /init/init.php, like
$_SESSION["defaultQueryGroups"] = array("deflayer_1", "deflayer_2"); Then in /query/query.php in function function Query($map) below the lines } else { $this->querygroups = $_SESSION["groups"]; } add something like if (isset($_SESSION["defaultQueryGroups"])) { foreach ($_SESSION["defaultQueryGroups"] as $dg) { if (!in_array($dg, $this->querygroups)) { $this->querygroups[] = $dg; } } } armin Tuku Man wrote: > I find a way to solve it, not a good way, but it works > > in query.php, add the following code to Function Query > > //quick and dirty fix > if (! isset($this->querygroups["precip_q24"])){ > $this->querygroups[]="xxxx"; > } > > > Thanks. > > On 11/1/07, Tuku Man <[EMAIL PROTECTED]> wrote: >> Dear pmapper developer: >> >> >> I have a problem about query here, >> when user uses "Identify" tools, there are some layers which must >> be include in the query group, it doesn't matter users turn on them or >> not. >> >> I use the following code to do the job in one of small application, >> before call "@$theMap->queryByPoint" >> $qLayer = $theMap->GetLayerByName("xxxx"); >> $qLayer->set("status",MS_ON); >> >> However, I am not sure where to insert this code to pmapper. >> >> Is there any other way to do it in pmapper? >> >> Thanks very much! >> >> Tuku Man >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > pmapper-users mailing list > pmapper-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pmapper-users > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users