Hello
I am trying to create a buffer tool widget and I saw couple of examples. The first example shows creating buffer on point and second is to create buffer on line and polygons. Here are the links.
Buffer a point | ArcGIS API for JavaScript
Geometry Service - Buffer | ArcGIS API for JavaScript
The buffer on point works fine with me, but I have an issue creating the buffer on line and polygon. Below is my code:
var gsvc = new esri.tasks.GeometryService("http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer");
startup: function() {
this.inherited(arguments);
this.toolbar = new Draw(this.map);