lolob

Identify dijit

Discussion created by lolob on Apr 12, 2010
Latest reply on Feb 17, 2011 by danyim
I download identify dijit sample from code gallery and tested okay.I want to add a button where it will only enable identify dijit when the button is clicked.Please help.

Following is the idea:

----
--------
----------
function btnEnable(val) {
identifyDijit = new dijits.identify.Indentify( { map: map } );

   if(val =="option 1"){
     identifyDijit.startup();
   }

   if(val=="option 2")(
     identifyDijit.destroy();
   }
}

Outcomes