[Users] Mouserover Events

Marc Jansen jansen at terrestris.de
Fri Jul 30 12:02:41 CEST 2010


Hi Stefan,

maybe the example 
http://dev.geoext.org/trunk/geoext/examples/feature-grid.html is of use 
for you:

If you define


var aSelectControlThatHasAHoverHandler = new 
OpenLayers.Control.SelectFeature(yourVectorLayer, {hover: true});


and

gridPanel = new Ext.grid.GridPanel({

   ...
   sm: new GeoExt.grid.FeatureSelectionModel({
selectControl: aSelectControlThatHasAHoverHandler
   })
});


You should be able to select features on hover and have them highlighted 
in a grid as well.

Untested.

Regards,
Marc




On 30.07.2010 11:35, Stefan Schwarzer wrote:
> Hi,
>
> the examples I've seen of GeoExt are really nice. There is however one feature I'd like to have, and that I haven't seen in the examples, but which I think should be easy to implement. And that is some kind of mouse-over effect. When a user is moving the mouse over some polygons, would it be possible to highlight the attributes in a grid at the side? Or display a small box next to the cursor?
>
> Thanks for any hints,
>
> Stefan
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
>    


-- 

   .................................................................
    Karten im (Inter|Intra)net?

    OpenLayers - Webentwicklung mit dynamischen Karten und Geodaten
    von M. Jansen und T. Adams, OpenSourcePress, München.

    ISBN: 978-3-937514-92-5
    URL:  http://openlayers-buch.de
   .................................................................


   Dipl.-Geogr. Marc Jansen
   - Anwendungsentwickler -

   terrestris GmbH&  Co. KG
   Irmintrudisstraße 17
   53111 Bonn

   Tel:    ++49 (0)228 / 96 28 99 -53
   Fax:    ++49 (0)228 / 96 28 99 -57

   Email:  jansen at terrestris.de
   Web:    http://www.terrestris.de

   Amtsgericht Bonn, HRA 6835
   Komplementärin:  terrestris Verwaltungsgesellschaft mbH
   vertreten durch: Hinrich Paulsen, Till Adams




More information about the Users mailing list