Percy wrote:
can you describe the exact behavior you are trying to acheive while
using the measure tool and switching to drag?
I'd like to change the measure control so it can be used side by side with the
others control. That means it should not trigger on a single click nor snathing
a drag. That could be achieved by limiting measure triggering to Ctrl-click or
Alt-click (and Ctrl/Alt-doubleclick for ending). Then clicks and drags on the
map won't be snatched by measure. In a second step I'd like to improve it
further that another Ctrl-click on a previous set point will remove it, so
wrongly set points can be removed without canceling the measure.
So far I'm not able to stop the measure control acting on the single click. The
measure control uses its own detection of clicks which I don't figure out. I'm
considering to rewrite it using the click handler yet I don't know how to apply
the modifier key there. The click handler sample of OL doesn't use any modifiers.
Wyo
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users