[Chameleon] How to use LinkQuery widget

Julien-Samuel Lacroix jlacroix at dmsolutions.ca
Thu Feb 16 08:29:00 EST 2006


Hi,
Here's an example. In short the LinkQuery widget will open a custom 
popup if you click on the map and your query return a result:

<cwc2 type="LinkQuery" DEFAULT="TRUE" PopupWidth="770" PopupHeight="600" 
SCROLLBARS="FALSE" TOOLBAR="FALSE" MENUBAR="FALSE" STATUS="FALSE" 
RESIZABLE="FALSE"  image="icons/icon_query.png" 
ResultScript="popup.php?id=%id_attribute%&param2=%param2%" 
LinkQueryLayer="LayerName" styleresource="NavButtons" imagewidth="24" 
imageheight="24" toolset="Navigation" imagetip="Clic here">
     <image state="normal"/>
     <image state="hover"/>
     <image state="selected"/>
</cwc2>

In the example above, popup.php will be a custom php script of your own. 
Also replace the "?id=%id_attribute%&param2=%param2%" by what you want 
to pass to the php script. All %param% strings will be replaced by the 
corresponding attributes from your layer. You can see all the attributes 
of ou layer with ogrinfo.

Julien

Vinicio Balducci wrote:
> Hi all,
> could someone shows me an example on how to use the *LinkQuery widget*?
> 
> Thanks.
> Regards
> Vinicio Balducci
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon

-- 
------------------------------------------------------------
Julien-Samuel Lacroix            jlacroix at dmsolutions.ca
DM Solutions Group               http://www.dmsolutions.ca/
------------------------------------------------------------


More information about the Chameleon mailing list