[Chameleon] Query single Layer
Julien-Samuel Lacroix
jlacroix at mapgears.com
Mon Jul 5 08:57:05 EST 2010
Hi,
You can simply make the layer unqueryable in your mapfile by removing
the TEMPLATE from your layers and classes.
In any cases, the code to look at is in
chameleon/htdocs/widgets/Query/QueryResults.phtml
Hope that helps
Julien
On 10-07-02 03:47 AM, Andreas Douvalis wrote:
> Hi. I want to use query tool for one or two layers instead of all.
> In drawmap.php I found this:
> gszQueryLayers : string
> Comma delimited string of layer indexes to query.
> If not supplied and a query is called for then all
> visible layers will be queried.
> Then I add : "&gszQueryLayers=" + '36' in Query.widget.php at line 406
> to observe if something changes:
> if ({$szHighlightResults})
> {
> var img = CWCDHTML_GetImage( 'MapLayerDivImg' );
>
> img.src = gMapDHTMLURL + "&run_query=1&gszQueryCoords=" + szCoord +
> "&gszPersistentQuery={$szPersistentResults}" + "&gszQueryLayers=" + '36';
> 36 is the layer_index of one of my layers.
> Hovever there is no change;
> How can I take advance of &gszQueryLayers string?
> How can I query one single layer (selected layer for example)?
>
>
>
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
--
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/
More information about the Chameleon
mailing list