Good Afternoon, There seems to not be a lot of documentation/examples using Nasa's worldwind api especially the web version. So say I have...
let clickRecognizer = new WorldWind.ClickRecognizer(wwd, clickHandler);
where wwd is the name of my WorldWind Canvas/Window and clickHandler is the function called on click. I just want to know if anyone know how do I remove this ClickRecognizer() once I add it? I have tried assigning a new ClickRecognizer() to clickRecognizer variable and setting it to null then assigning but it made no difference; the first/original clickHandler function is being used.
In short I am trying to switch between ClickRecognizer that uses different clickHandler functions but the change isn't reflected when I click (I verified that the variable (let clickRecognizer) is changed and the gestureCallbacks array (see docs) is correctly populated with the second clickHandler function).
Here are the docs, I tried using removeListener(clickHandler) to no avail. (This isn't my actual code (ofcourse) I just wrote the question generally)
Thanks