function initToolbar() {          tb = new Draw(map);                   esri.bundle.toolbars.draw.freehand = "new label";                   tb.on("draw-end", addGraphic);          // event delegation so a click handler is not          // needed for each individual button          on(dom.byId("info"), "click", function(evt) {            if ( evt.target.id === "info" ) {              return;            }            var tool = evt.target.id.toLowerCase();            map.disableMapNavigation();            tb.activate(tool);          });        }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.