It's kinda dependent on what client environment you're using. OpenLayers, for 
example, has a hover control that you can use to do this. This site uses that 
technique to provide tooltips.

  http://www.dnr.state.mn.us/waters/csg/index.html

Basically if you pause the mouse for n seconds you fire a hover event which 
does a MapServer query. Watch the above site in firebug and you'll see 'em. If 
the query fails (nothing of interest was found) the no tooltip is displayed. In 
the example you mention is relevant to image map creation and my guess that's 
not what your after. What client environment are you using?

Steve

From: [email protected] 
[mailto:[email protected]] On Behalf Of Chris Green
Sent: Wednesday, February 10, 2010 11:07 AM
To: [email protected]
Subject: [mapserver-users] mouseover with mapserver...?

Hi all

I am using ms4w and have managed to make a number of maps work really well. 
However one thing I would really like to implement is a mouseover function 
which indicates and/or highlights features without requiring a click. There is 
a link to a good example of this on the Mapserver website: 
http://maps.dnr.state.mn.us/cgi-bin/mapserv48?map=/usr/local/www/docs_maps/eco/rsg/search/search_example.map&qlayer=county&mode=nquery&searchmap=true

It is probably my lack of web/javascript design experience but  the fact is 
that I have totally failed to make any kind of  mouseover work with mapserver. 
Can anyone provide the source code of something that works?


Chris




_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to