ArcGIS API for JavaScript: Tools/BufferPolygon (MapServer)

Built using the ArcGIS API for JavaScript