<!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>Hi Bart,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I had it set up at first with a manually specified
mapfile, but in our setup that was a bit of a security issue. Also, I wanted it
to be more flexible to implement in general.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>How did you actually create a dynamic highlight
layer? Does your approach create a lot of overhead if 10,000s of records are
searched, or if 100s of results are returned?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Have a look at <A
href="http://geo.maunsell.com/chameleondemo/index.phtml">http://geo.maunsell.com/chameleondemo/index.phtml</A> ,
so you know roughly what it does. It's a very ugly demo, but sort of
works. Ideally, after a query, all objects would be highlighted
until a new query is done. Could I just save a copy of every result to a
shapefile, and load that as a dynamic layer?</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> </DIV>
<DIV><FONT face=Arial size=2>-----Original Message-----<BR>From: Bart van den
Eijnden [mailto:BEN@Syncera-ITSolutions.NL] <BR>Sent: 1 June 2005 15:42<BR>To:
<A href="mailto:chameleon@lists.maptools.org">chameleon@lists.maptools.org</A>;
<A
href="mailto:jacob.delfos@maunsell.com">jacob.delfos@maunsell.com</A><BR>Subject:
Re: [Chameleon] Identify information object</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Hi Jacob,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I have followed a slightly different approach to do
this:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>1) I created a generic WFSSearch widget which
provides a dialog for the user in an iframe to search on one or more attributes.
The widget communicates with Mapserver WFS to search, but it actually uses the
same MAP file as the Chameleon app (configured for WFS ofcourse).
Eg:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><cwc2 type="WFSSearch"
styleresource="NavButtons" popupstyleresource="TextButtons"
PopupWidth="460" PopupHeight="550" Toolbar="false" Status="false"
Menubar="false" Image="icons/icon_search.png" ImageTip="Zoek adres"
onlineresource="<A
href="http://localhost:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/westland/map/stragisweb.map">http://localhost:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/westland/map/stragisweb.map</A>"
title="Zoek adres" typename="ACN" namespace_prefix="stragisweb"
targetframe="DynamicFrame" filteritem="ACN"
zoomwidth="50"><BR> <searchField
propertyname="STRAAT_NEN" label="Straat"
/><BR> <searchField
propertyname="PLAATS_NEN" label="Woonplaats"
/><BR> <image
state="normal"/><BR> <image
state="selected"/><BR> <image
state="hover"/><BR> </cwc2></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>2) I extended the JSAPI in order to being able to
highlight items based on a FILTERITEM and FILTER. In my aproach it only
highlights 1 item (by adding a dynamic highlight layer) and zooms to it,
but it could be extended to highlight more items since it uses Mapserver's
FILTER.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Best regards,<BR>Bart</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Bart van den
Eijnden<BR>Syncera-ITSolutions<BR>Postbus 270<BR>2600 AG
DELFT</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>tel.nr.: 015-7512436<BR>email: <A
href="mailto:BEN@Syncera-ITSolutions.nl">BEN@Syncera-ITSolutions.nl</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>>>> "Jacob Delfos" <<A
href="mailto:jacob.delfos@maunsell.com">jacob.delfos@maunsell.com</A>>
06/01/05 06:12am >>><BR>Paul,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Is there a way to manually add objects to a query
result?<BR>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> </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> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>-----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</DIV>
<DIV> </DIV>
<DIV>Jonathon,</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>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?</DIV>
<DIV> </DIV>
<DIV>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)</DIV>
<DIV> </DIV>
<DIV>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.</DIV>
<DIV> </DIV>
<DIV>To do this will be considerable effort for someone new to Chameleon,
<BR>unfortunately.</DIV>
<DIV> </DIV>
<DIV>Cheers</DIV>
<DIV> </DIV>
<DIV>Paul</DIV>
<DIV> </DIV>
<DIV>> <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>>></DIV>
<DIV> </DIV>
<DIV>--
<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></BODY></HTML>