Are you sure the search is returning something? (e.g. it worked)

Steve

>>> On 9/3/2008 at 7:54 AM, in message
<[EMAIL PROTECTED]>, shurhen <[EMAIL PROTECTED]>
wrote:
> Thank you, Steve!
> 
> I tried your way, but I have not got result - selected object still remains 
> same as others. 
> I've added these lines in map-file but there are no results:
> 
> QUERYMAP
>   COLOR 0 0 255
>   STATUS ON
>   STYLE HILITE
> END
> 
> What I've missed?
> 
> 
> 2BrainDrain: Thank you, I'll try and your way too. 
> 
> Steve Lime wrote:
>> 
>> MapServer supports what's called a query map. It basically replaces the
>> color of the top-most
>> style for a layer with one defined in the query map object (default is
>> yellow). Typically in MapScript
>> you'd do:
>> 
>>   a_layer.queryByAttributes(m_map, null, a_query, 1);
>>   img = m_map.drawQuery();
>> 
>> You can of course get fancier and step through the result set by hand but
>> I wouldn't recommend 
>> starting that way.
>> 
>> Steve
> _______________________________________________
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org 
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to