Hi everyone, it's my first time posting even if I've lurked on the mailing list's discussion for a while now :) I hope to be of use in the future to other people as well as I gain more experience on the use of OpenLayers.
I'd appreciate it if someone could give me some good ideas for the following problem (I've been bashing my head to the imaginary wall with it for some time now and forum lurking really didn't pay off this time): The web service I'm working with previously contained a custom control for center crosshair but as of the OL 2.11 RC1 the controls interrupt the basic dragging of the map[*] and don't let me start the dragging action when clicked on them (it really hinders the usability of the service only in the crosshair control's case). The documentDrag attribute doesn't really solve the problem as it doesn't let me start the dragging over the crosshair and the dragging has a nasty habit of not detecting the 'mouseout' at times[**]. Is there a way to implement a crosshair properly without it necessarily being a Control class instance? I tried making the crosshair with a vector layer (in which I center the marker/vector as I move the map) but the cross browser compability really suffers from it: the renderers (aside from SVG2) don't render the crosshair if I move the map too much at once. This would also be easily avoided just by reverting back to 2.10 but the following feature couldn't really be implemented as easily with the 2.11 RC1 (easier to find a workaround to the crosshair problem, I think): I use dragFeature, drawFeature and Snapping controls to implement a GoogleMaps -ish feature of dragging existing map features (midpoints on a route) and creating new ones by dragging a linestring vector feature (the route) to another point on the map. The DrawFeature is there just for the point handler to draw the sketch point when inside a predetermined snapping distance to the aforementioned linestring geometry and the sketch layer is thus hidden most of the time (kind of ugly way to do it probably). Apologies for the possibly confusing explanation, English isn't my first (nor my second) language. Thanks beforehand :] Regards, Tommi [*] Ticket #3363 http://trac.osgeo.org/openlayers/ticket/3363 [**] Ticket #3399 http://trac.osgeo.org/openlayers/ticket/3399 -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Dragging-features-crosshair-control-and-OpenLayers-2-11-RC-1-tp6644502p6644502.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
