ArcGIS API for JavaScript: LayersAsKML/UtilitiesAsKML (MapServer)
Built using the
ArcGIS API for JavaScript