[OpenLayers-Users] Having problems with custom mouse event handlers

Nick Whitelegg nick at hogweed.org
Mon Aug 28 17:36:18 CDT 2006


On Monday 28 Aug 2006 23:32, Nick Whitelegg wrote:
> Hello everyone,
>
> I am trying to develop custom mouse event handling code so that when the
> user drags on the map in a particular mode, the distance corresponding to
> the drag is calculated and displayed. The mouse down handling code is
> something like this:

Oops, sorry! :-|

Please ignore the last email. I've just realised it was a very silly error :-) 
Namely if mode is 3, it returns false before any of the preventative actions 
occur.

Always seems to work this way, when you're trying to solve something you 
overlook the blindingly obvious....

Nick


More information about the Users mailing list