[Chameleon] query pop-up with photo?

enns at abacho.de enns at abacho.de
Wed Jan 19 11:59:28 EST 2005


I'm making some headway in this, but I still need some more details.  In particular when using wms layers.
In the function you mentioned 'processWMSGetFeatureInfo() ' .....  :
1. can I set a foreach to assign an image for the record selected?
2. can I show only the fields I want?

Basically I want fieldA, fieldB, fieldC to show up in the query results pop-up and an associated photo that comes from a path in my fieldPhoto for that point (record) selected.

In the faq it provided a sample query.phtml but it is not indicated where this would reside in the code to be launched.

As a newbie, I need as much details as possible.

----- original Nachricht --------



At 02:38 PM 01/14/2005 +0100, enns at abacho.de wrote:
>I am about to embark on the implementation of the query widget.   Upon clicking on an object (point) I would like to display not only the attributes of that object but also a photo associated to the object in the pop-up.  
>How do I go about inserting a photo into the pop-up information?  What will the syntax be like in this case?
>
>Thanks in advance,
>
>David E.

 I assume you are creating a custom Query widget? You will need to edit the QueryResults.phtml script in  widgets/Query/ directory.
In particular the formatQueryResults function.  It's easy enough to add an <img src=XXXX> tag in the output.
QueryResults.phtml is the script which runs to populate the Query Popup window with html.

I'm assuming that this is a "local" mapfile layer.

If it's a WMS layer it's a little different. The results are formatted in the processWMSGetFeatureInfo() function.

Note: you can copy the widgets/Query/ directory to a directory local to your application, make your customizations there and when you start your Chameleon application (index.phtml) add that directory to the CWCExecute() call: eg.

$oApp->CWCExecute( array($gszAppPath."/widgets" ) );
Chameleon will use the local Query before the default Query.

That way only this application will get the custom Query widget.

Eric


_______________________________________________
Chameleon mailing list
Chameleon at lists.maptools.org
<a href='http://lists.maptools.org/mailman/listinfo/chameleon' target='_blank'><u>http://lists.maptools.org/mailman/listinfo/chameleon</u></a>


--- original Nachricht Ende ----



Die Abacho-Surftipps:
- http://www.abacho.com - die pure Suche!
- http://www.abacho.de - Das starke Informationsportal mit taegl. News,
  Stories und starker Suchmaschine

- eBay bietet Ihnen das Beste aus ueber 1,5 Mio.
Angeboten!- http://nl.hi-media.de/?goto=68174.134580.247.1
---------------------------------------------------



More information about the Chameleon mailing list