[OpenLayers-Trac] [OpenLayers] #2974: OpenLayers.Renderer.Canvas does not support vector dragging

OpenLayers trac-20090302 at openlayers.org
Fri Dec 10 19:01:02 EST 2010


#2974: OpenLayers.Renderer.Canvas does not support vector dragging
--------------------------+-------------------------------------------------
 Reporter:  jscattergood  |       Owner:              
     Type:  feature       |      Status:  new         
 Priority:  major         |   Milestone:  2.11 Release
Component:  general       |     Version:  2.10        
 Keywords:                |       State:              
--------------------------+-------------------------------------------------
 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.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/2974>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list