[OpenLayers-Dev] unregister the click event
bartvde at osgis.nl
bartvde at osgis.nl
Tue Jun 24 05:09:29 EDT 2008
I don't think this will work with anonymous functions.
Try something like:
function myfunc(e) {
// do your stuff here
}
map.events.register('click', map, myfunc);
map.events.unregister('click', map, myfunc);
Best regards,
Bart
On Tue, 24 Jun 2008 19:05:33 +1000, "Darko Radiceski" <radiceski at gmail.com>
wrote:
> Greetings all,
>
> I have something like this:
>
> map.events.register('click', map, function (e) {
>
> that would register the click event.
>
> but i would like to be able to unregister that click event.
>
> I seem to not be able to do that.
>
> I tried:
>
> map.events.unregister('click', map, function (e) {});
>
> but that does not work.
>
> Any ideas?
>
> cheers
> Dan
>
> --
> Radiceski Dan
> University of Wollongong
> Australia
> SIFE - UOW Chapter - Alumni
> CASUAL ACADEMIC STAFF TEACHING - UOW SITACS
> (School of Information Technology and Computer Science,University of
> Wollongong)
> Univeristy of Wollongong - Alumni
More information about the Dev
mailing list