Ticket #2408 (new feature)

Opened 3 years ago

Last modified 3 years ago

SelectFeatures control does not allow setting cursors when the cursor is over a feature

Reported by: ksgeograf Owned by: tschaub
Priority: minor Milestone: 2.13 Release
Component: Control.SelectFeature Version: SVN
Keywords: SelectFeature Cursor overFeature outFeature Cc:
State: Needs More Work

Description

The DragFeature sets the [displayClass + "Over"] class whenever the cursor is over a feature. This provides visual feedback to the user, indicating that an action can be performed (drag in this case).

The SelectFeature control does not set these classes, so the same is not possible here.

Attached is a patch for trunk that enables those classes.

The downside to the patch is that the over/out events are now always activated.

The test used to determine if the class should be added (in overFeature) is based on my limited understanding of the Handler.Feature and Handler.Drag, and may be incomplete.

Attachments

SelectFeatureCursorSupport.patch Download (1.4 KB) - added by ksgeograf 3 years ago.

Change History

Changed 3 years ago by ksgeograf

Changed 3 years ago by bartvde

  • milestone changed from 2.10 Release to 2.9 Release

Changed 3 years ago by bartvde

  • milestone changed from 2.9 Release to 2.10 Release

Not a regression so bumping to 2.10.

Changed 3 years ago by crschmidt

  • state changed from Review to Needs More Work

Patch results in a syntax error in SelectFeature. Not applyable.

Note: See TracTickets for help on using tickets.