[OpenLayers-Users] Problem with calling default mouse down handler
(2.4)
Nick Whitelegg
nick at hogweed.org
Thu May 17 18:33:51 EDT 2007
Hello everyone,
I want to override a mouse down event on a map. Previously (in 2.2) I used
code such as:
function mouseDownHandler(e)
{
mouseIsDown = true;
map.controls[0].defaultMouseDown(e);
if(e.preventDefault)
e.preventDefault();
return false;
}
However, now (2.4, trunk SVN version) I get the error:
Error: map.controls[0].defaultMouseDown is not a function
Source File: http://www.free-map.org.uk/freemap/javascript/vector/init.js
Line: 195
What do I need to do now to call the default mouse down action?
Thanks,
Nick
More information about the Users
mailing list