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);
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.