ArcGIS API for JavaScript: intersectionindex (MapServer)

Built using the ArcGIS API for JavaScript