[Users] Mouserover Events

Stefan Schwarzer stefan.schwarzer at grid.unep.ch
Mon Aug 2 08:08:34 CEST 2010


Hi Marc,

thanks a lot for the tips. Just checked it out, but unfortunately I get a "TypeError: Result of expression 'this.map' [null] is not an object." in "OpenLayers.js:803" on the "sm: ....." line. Any idea what that can mean or what to do about it?

Cheers,

Stefan


On Jul 30, 2010, at 12:02 PM, Marc Jansen wrote:

> 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
> 
> 
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users



More information about the Users mailing list