Querying - that old chestnut?
Davelaar, Hilbert
Hilbert.Davelaar at WUR.NL
Wed Nov 9 11:06:47 PST 2005
No not in that file, in your template-file: ../apps/<app. name>/htdocs/<template name>.html
In this file should be a query-widget:
<!-- QUERY -->
<td>
<cwc2 type="Query" visible="true" imagewidth="24" imageheight="24" imagetip="Identify Feature" PopupWidth="500" PopupHeight="600" Toolbar="false" Status="false" Menubar="false" RADIUS="3" MAXFEATURES="5" toolset="Navigation" popupstyleresource="TextButtons" includeemptyresults="true">
<image state="normal" image="buttons/button_query_1.png"/>
<image state="hover" image="buttons/button_query_2.png"/>
<image state="selected" image="buttons/button_query_3.png"/>
</cwc2>
</td>
If there's a 'popupresults'-attribute set it to false. If there's not a 'popupresults'-attribute as in the example code above add it (POPUPRESULTS = "[TRUE|FALSE]"):
<!-- QUERY -->
<td>
<cwc2 type="Query" visible="true" imagewidth="24" imageheight="24" imagetip="Identify Feature" PopupWidth="500" PopupHeight="600" Toolbar="false" Status="false" Menubar="false" RADIUS="3" MAXFEATURES="5" toolset="Navigation" popupstyleresource="TextButtons" includeemptyresults="true" popupresults="false">
<image state="normal" image="buttons/button_query_1.png"/>
<image state="hover" image="buttons/button_query_2.png"/>
<image state="selected" image="buttons/button_query_3.png"/>
</cwc2>
</td>
Hope this works. Regards,
Hilbert
-----Oorspronkelijk bericht-----
Van: UMN MapServer Users List namens Roland Martin
Verzonden: wo 9-11-2005 18:10
Aan: MAPSERVER-USERS at LISTS.UMN.EDU
CC:
Onderwerp: Re: [UMN_MAPSERVER-USERS] Querying - that old chestnut?
In 'htdocs\widgets\Query\query.widget.php'? I just tried that, and it
doesn't seem to make any difference...
Any other ideas?
Fanx,
Roland.
On 09/11/05, Davelaar, Hilbert <Hilbert.Davelaar at wur.nl> wrote:
> Hi Roland,
>
> Probably you have to change the attribute 'popupresults' of your query-widget to false (instead of true).
>
> Cheers,
> Hilbert
>
> -----Oorspronkelijk bericht-----
> Van: UMN MapServer Users List namens Roland Martin
> Verzonden: wo 9-11-2005 16:35
> Aan: MAPSERVER-USERS at LISTS.UMN.EDU
> CC:
> Onderwerp: [UMN_MAPSERVER-USERS] Querying - that old chestnut?
>
>
>
> Hi MapServer chameleons!
>
> As a relative newbie, I've been having a bit of trouble setting up the
> custom query function. I've followed (as best I could) all the
> instructions on the Wiki and taken "inspiration" from the archives of
> this list, and at last I now have a custom query tool. Hurrah.
>
> One slight (i.e. big) problem, though - when I query, it now pops up
> with 2 separate responses - the custom one AND the original. I can't
> for the life of me see how to prevent it - anyone have any ideas?
>
> The only thing I can think of at the moment is that I've set it up to
> access the widgets in the original (chameleon) folder rather than the
> local customised one - would that have any effect?
>
> Thanks muchly for your thoughts,
> Roland.
>
>
>
More information about the MapServer-users
mailing list