I need to disable the drawbox used in Draw widget of and again enable it on check of checkbox .
Please suggest any ideas.
Thanks In Advance.
In the widget use this code "this.drawBox.deactivate();" then you can use "this,drawBox.activate('POINT');
I tried adding the line of code in 'onOpen' method (as I want the drawbox to remain deactivated after opening too), however the drawBox still remains activated and I can draw graphics on the map.
OK, I am not sure I understand what you are doing then. The OTB Draw widget does not have any of the draw tools active when it first opens. So maybe you should go into more detail of your workflow and idea.
Sure , thanks !
Retrieving data ...