I'm trying to modify Identify Dijit (code gallery example) and add a button so that the identify dijit is activated only once a button is clicked.And deactivate identify dijit when the deactivate button is click.
I also had tried to change this line 'dojo.connect(this.map, "onClick", this._mapClickHandler')' to this line 'dojo.connect(this.toolbar, "onDrawEnd", this._mapClickHandler)'. I'm trying to use 'draw toolbar' for map point instead of 'map onclick' method.But failed.Does anyone have a good example I can follow.Thank you.