Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#387 closed enhancement (fixed)

UX of GeoExt.grid.FeatureSelectionModel for Hovering

Reported by: chrismayer Owned by:
Priority: major Milestone: ux
Component: ux Version: 1.0
Keywords: Cc:
State: Complete

Description

An Ext.grid.GridPanel in combination with a GeoExt.grid.FeatureSelectionModel has only interaction possibilities by the select events (rowselect & featureselected / rowdeselect & featureunselected). The reason is that there is no hovering offered within the Ext.grid.GridPanel. By using an ux (http://www.sencha.com/forum/showthread.php?77730-cellmouseenter-and-cellmouseleave-etc-for-GridPanel) it is possible to get hover events for the Ext.grid.GridPanel. This works very well, but the connection to the layers is of course still missing. Therefore we extended the GeoExt.grid.FeatureSelectionModel in that way it binds the hovering events of a OpenLayers.Control.SelectFeature control (hover=true) to the corresponding hover events of the grid. Now it is possible to have a select control, a hover control or both within the GeoExt.grid.FeatureSelectionModel.

To show the functionality we extended the example of the geoext website: http://www.webmapcenter.de/geoext-hover-grid/examples/example-grid.html

See also: http://www.geoext.org/pipermail/dev/2010-December/000915.html

Attachments (3)

Terrestris.FeatureSelectionModel.js (9.7 KB) - added by chrismayer 7 years ago.
GeoExt.ux.grid.FeatureSelectionModel.js (9.8 KB) - added by chrismayer 7 years ago.
geoext-ux-387-001.patch (31.2 KB) - added by chrismayer 6 years ago.
The complete patch with tests and example

Download all attachments as: .zip

Change History (10)

Changed 7 years ago by chrismayer

Changed 7 years ago by chrismayer

comment:1 Changed 7 years ago by chrismayer

The second attachment (GeoExt.ux.grid.FeatureSelectionModel.js) is better than the first. I applied namespace and header to the GeoExt conventions.

comment:2 Changed 6 years ago by ahocevar

  • Milestone changed from 1.1 to ux

@chrismayer: as soon as this fulfills al the ux requirements, we can move this to the ux directory.

Changed 6 years ago by chrismayer

The complete patch with tests and example

comment:3 Changed 6 years ago by chrismayer

I also created the WIKI page needed: https://trac.geoext.org/wiki/ux/FeatureSelectionModel

comment:4 Changed 6 years ago by bartvde

  • Component changed from GeoExt to ux

comment:5 Changed 6 years ago by ahocevar

  • Resolution set to fixed
  • Status changed from new to closed

(In [2867]) new FeatureSelectionModel ux for grid selection of hovered features. Maintained by chrismayer. (closes #387)

comment:6 Changed 6 years ago by ahocevar

  • State changed from Review to Complete

@chrismayer: thanks a lot for your contribution. You are now officially maintainer of the FeatureSelectionModel ux. Please update the wiki page with the new example urls. You also have rw access to http://svn.geoext.org/extensions/geoext.ux/ux/FeatureSelectionModel now.

comment:7 Changed 6 years ago by ahocevar

(In []) new FeatureSelectionModel ux for grid selection of hovered features. Maintained by chrismayer. (closes #387)

Note: See TracTickets for help on using tickets.