Ticket #2974 (closed feature: duplicate)

Opened 2 years ago

Last modified 2 years ago

OpenLayers.Renderer.Canvas does not support vector dragging

Reported by: jscattergood Owned by:
Priority: major Milestone: 2.11 Release
Component: general Version: 2.10
Keywords: Cc:
State:

Description

The OpenLayers.Control.ModifyFeature uses the OpenLayers.Control.DragFeature class to allow the manipulation of vectors. This control does not work when the Canvas renderer is being used.

The root cause of the issue is that the canvas renderer's implementation of getFeatureIdFromEvent() only supports a single intersecting feature. In the case of the drag control, the drag handle overlaps the underlying feature. Due to the algorithm in getFeatureIdFromEvent(), it is finding the bottom vector feature and not the drag handle, thus the dragging is prohibited.

There a built in method for filtering overlapping geometries within the canvas renderer.

Change History

Changed 2 years ago by fredj

  • status changed from new to closed
  • resolution set to duplicate

see #3207

Note: See TracTickets for help on using tickets.