Tag Info

New answers tagged

0

Based on how your code looks, your toolbar variable needs to be global. The error makes it look like your toolbar variable is not global or something else is overwriting it. This is one of the reasons you shouldn't use an element's onClick attribute to set up event listeners. Take a look at either the Add graphics to a map or the Drawing tools sample for ...



Top 50 recent answers are included