ArcGIS API for JavaScript: Medians__Calculate_Polygon_Width__MIL1 (MapServer)
Built using the ArcGIS API for JavaScript