[mapserver-users] mouseover with mapserver...?

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Wed Feb 10 09:29:04 PST 2010


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: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chris Green
Sent: Wednesday, February 10, 2010 11:07 AM
To: mapserver-users at lists.osgeo.org
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




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100210/81818d70/attachment.htm>


More information about the MapServer-users mailing list