OpenLayers OpenLayers

Ticket #544 (closed feature: fixed)

Opened 2 years ago

Last modified 1 year ago

replace select handler with more full featured feature handler

Reported by: tschaub Assigned to: tschaub
Priority: minor Milestone: 2.4 Release
Component: general Version:
Keywords: Cc:
State:

Description

The select handler can be used for more than selecting features. I'd like to replace this with a Handler/Feature that calls callbacks for more mouse events - move, up, down, over, and out. The latter two can be handled by the former event callbacks instead of registering for two more callbacks. Instead of forcing controls to listen for every move and decide whether the mouse has moved over a new feature or out of an old one, this can be abstracted to the handler.

The change from Handler/Select to Handler/Feature would only affect the Control/SelectFeature.

Patch to follow.

Attachments

feature_handler.patch (18.4 kB) - added by tschaub on 03/20/07 18:27:31.
creates a feature handler and updates an example to show its use

Change History

03/20/07 18:27:31 changed by tschaub

  • attachment feature_handler.patch added.

creates a feature handler and updates an example to show its use

03/20/07 18:46:58 changed by tschaub

  • keywords set to review.

Will commit if reviewed - I notice that the example is missing an <li> tag, I'll add that with the commit (it all works as is).

03/21/07 17:21:15 changed by sderle

  • keywords changed from review to commit.

looks good. go ahead and commit.

03/21/07 19:31:53 changed by tschaub

  • status changed from new to closed.
  • resolution set to fixed.

committed in r2843 (wms and tms tests were failing in 2842)

07/05/07 16:55:39 changed by euzuro

  • keywords deleted.