Hi All,
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.
Iris
Iris,
In the widget use this code "this.drawBox.deactivate();" then you can use "this,drawBox.activate('POINT');
Hi Robert,
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.
Thanks
Iris
Iris,
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 !