[MAPSERVER-USERS] Highlighting query results

Steve Lime Steve.Lime at dnr.state.mn.us
Wed Sep 3 14:00:12 EDT 2008


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

Steve

>>> On 9/3/2008 at 7:54 AM, in message
<E1Karsf-0003Qy-00.shurhenv-mail-ru at f114.mail.ru>, shurhen <shurhenv at mail.ru>
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 at lists.osgeo.org 
> http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list