[Chameleon] Query single Layer
Andreas Douvalis
anddreas2 at yahoo.gr
Mon Jul 5 11:28:33 EST 2010
Thank you Julien!
--- Στις Δευτ., 05/07/10, ο/η Julien-Samuel Lacroix <jlacroix at mapgears.com> έγραψε:
> Από: Julien-Samuel Lacroix <jlacroix at mapgears.com>
> Θέμα: Re: [Chameleon] Query single Layer
> Προς: chameleon at lists.maptools.org
> Ημερομηνία: Δευτέρα, 5 Ιούλιος 2010, 16:57
> 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/
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
>
More information about the Chameleon
mailing list