where I can review sample intersect method, I want to make a method that interceste a service layer and a point specified by the user
try the intersect method of the geometry task. we don't have any sample applications which call this method, but it would probably be helpful to check out our other geometry service samples here.
if (identifyResults.length > 0) { var geometryStack = []; for (var k = 0; k < identifyResults.length; k++) { geometryStack.push(identifyResults.feature.geometry); } var geoService = new esri.tasks.GeometryService("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"); geoService.intersect(geometryStack, geometry, onCompleteFunc, onErrorFunc);
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.