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" <[EMAIL PROTECTED]>
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

_______________________________________________
Dev mailing list
[email protected]
http://openlayers.org/mailman/listinfo/dev

Reply via email to