[OpenLayers-Users] vector graphics: displaying mouseovers with attributes

Christopher Schmidt crschmidt at metacarta.com
Wed Mar 14 10:24:58 EDT 2007


On Wed, Mar 14, 2007 at 09:41:18AM +0100, Bart van den Eijnden (OSGIS) wrote:
> Hi list,
> 
> a quick question about the vector branch, is it currently possible to
> implement mouseovers on the features which will display the attribute values
> coming from the GML?
> 
> Any pointers greatly appreciated.

Bart: 

If you look at the OpenMNND demo, at
http://dev.openlayers.org/sandbox/vector-2.4/examples/openmnnd.html ,
you can see how we've used the SelectFeature control to do something of
this nature. I've just added support for displaying the features on
hover via the 'mousemove' callback on the Select Handler in r2757. This
will let see how to do an attribute display on hover.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list