ArcGIS API for JavaScript: OC_Sheriff/OCSDDrawPoly (FeatureServer)
Built using the ArcGIS API for JavaScript