Re: [MAPSERVER-USERS] Highlighting query results

shurhen shurhenv at mail.ru
Wed Sep 3 08:54:41 EDT 2008


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


More information about the mapserver-users mailing list