The toolbar is not a user interface component that you automatically see on the page. Instead, it’s a helper class that you can use to let people sketch geometries on the map. It saves you the effort of writing the code for sketching each geometry type. You just activate the type of geometry you want people to sketch. In this example, each button activates a different geometry type. When a button is clicked, the toolbar activates the corresponding tool. Alternatively you could allow geometry type selection from a dropdown list, a set of radio buttons, or some other control. When the toolbar’s ‘draw-end’ event fires, a function is called and ensures that you see something on the map when you finish sketching a feature.The addGraphic function sets the appropriate symbol for the geometry type.See the API Reference for symbols to learn more about defining different symbols. Source.