<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1498" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Paul,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Is there a way to manually add objects to a query
result?</FONT></DIV>
<DIV><FONT face=Arial size=2>My widget searches by attribute, but I am not
using the query mechanism. Reason is I want more control over what is
queryable or not, and what is returned (also because we use customisations
with different levels of information depending on who is logged in), so I don't
want to depend on the "template" mechanism. Also, I don't want to be limited to
a current map-extent (even though I guess I could get around that).
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Could I use the "layerObj" class, and use
"addfeature" for each shape in the iteration? Sorry for my ignorance, just that
I haven't worked with dynamic layers before.... I need need to find a simple way
to highlight shape objects on the fly.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>-----Original Message-----<BR>From: <A
href="mailto:chameleon-bounces@lists.maptools.org">chameleon-bounces@lists.maptools.org</A>
[mailto:chameleon-bounces@lists.maptools.org] On Behalf Of Paul Spencer<BR>Sent:
31 May 2005 22:34<BR>To: Jonathon Coombes; <A
href="mailto:'chameleon@lists.maptools.org'">'chameleon@lists.maptools.org'</A><BR>Subject:
Re: [Chameleon] Identify information object</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Jonathon,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Jonathon Coombes wrote:<BR>> On Mon, 2005-05-30
at 22:27 -0400, Paul Spencer wrote:<BR>> <BR>>>You can use the
following attributes on CWC2 type="Query" to add this
<BR>>>functionality<BR>>><BR>>>highlightresults="true"<BR>>
<BR>> <BR>> Hi Paul,<BR>> <BR>> Thanks for the quick reply. The
above details make sense.<BR>> <BR>> <BR>>>if you want the result to
stay highlighted until cleared (you need a <BR>>>ClearQueryResults widget
in this case)
set:<BR>>><BR>>>persistentresults="true"<BR>>><BR>>>otherwise,
the highlight will disappear on the next map draw<BR>> <BR>> <BR>>
Again, this makes sense.<BR>> <BR>> However, I have one slight problem.
How would I use the functionality<BR>> of a Query widget, in a customised
widget like the LocateByAttribute<BR>> that was mentioned a week ago? Do I
have to go to a mapserver level<BR>> for something like this? Do I create a
subclass of the main class<BR>> and inherit from Query? <BR>> <BR>>
What would be the recommended approach for this?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I think this would be a new widget. The query
widget is a <BR>point-and-click widget whereas I think you are describing a
widget that <BR>the user would enter some text and pick an attribute to search,
and the <BR>code would highlight the result(s)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I would do this by creating a new widget (or using
something posted on <BR>this list) not based on Query at all (since no direct
map interaction is <BR>required). It would take the user input and perform
a queryByAttribute <BR>then save the query results using saveQuery ... the query
results should <BR>be saved in the same location that drawmap.php would look for
them.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>To do this will be considerable effort for someone
new to Chameleon, <BR>unfortunately.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Cheers</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Paul</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>> <BR>> Regards<BR>> Jonathon<BR>>
<BR>> <BR>>>Jonathon Coombes
wrote:<BR>>><BR>>>>Hi,<BR>>>><BR>>>>In the
mapscript demos in the past, when you clicked on a feature<BR>>>>within
your map, it highlighted it red. Is this possible
within<BR>>>>Chameleon widgets? That is, when I select a feature or
click within<BR>>>>an object of a certain layer, it will be altered or
enhanced in
some<BR>>>>way?<BR>>>><BR>>>>Regards<BR>>>>Jonathon<BR>>></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>--
<BR>+-----------------------------------------------------------------+<BR>|Paul
Spencer
<A href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</A>
|<BR>+-----------------------------------------------------------------+<BR>|Applications
& Software
Development
|<BR>|DM Solutions Group
Inc
<A
href="http://www.dmsolutions.ca/">http://www.dmsolutions.ca/</A>|<BR>+-----------------------------------------------------------------+<BR>_______________________________________________<BR>Chameleon
mailing list<BR><A
href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</A><BR><A
href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon</A><BR></FONT></DIV></FONT></DIV></BODY></HTML>