[OpenLayers-Trac] Re: [OpenLayers] #2046: cannot combine draggable
layer and selectable layer on one map
OpenLayers
trac-20090302 at openlayers.org
Sat Jan 15 05:35:53 EST 2011
#2046: cannot combine draggable layer and selectable layer on one map
-----------------------------------------------------------------+----------
Reporter: yourcelf | Owner: tschaub
Type: bug | Status: new
Priority: minor | Milestone: 2.11 Release
Component: Control.SelectFeature | Version: 2.7
Keywords: drag dragfeature selectfeature draggable selectable | State:
-----------------------------------------------------------------+----------
Comment(by bartvde):
The problem here is that events cannot be handled on multiple vector
layers. In order to support multiple vector layers, the SelectFeature
Control uses a RootContainer, but since we are now dealing with both a
SelectFeature and a DragFeature control this is not really an option.
The real solution would be to integrate tschaub's FeatureAgent into
OpenLayers, however this would be a significant effort of multiple days
work at least.
So as a workaround I came up with a temporary patch so that this use case
can be supported in an application. I have tested the approach in FF3,
Safari 5 and IE8. The workaround is a bit hacky at the moment, especially
the part in Handler/Feature for which I need to find some more time to
look into it, maybe then I can come up with a better solution.
For now attaching the patch.
--
Ticket URL: <http://trac.openlayers.org/ticket/2046#comment:1>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list