Hi, I have a points ArcGISDynamicMapServiceLayer. In my JavaScript API code, is it possible to generate map images by using a geometry (such as a polygon) to intersect with the points?
What I want is to have a polygon as an input geometry, then get the intersecting points back as images - not features/graphics (so using a QueryTask or feature service will not satisfy the requirement). I want images and not graphics/features as potentially there could be almost millions of points.
I know you can use layer definitions on ArcGISDynamicMapServiceLayer but it is essentially a textual where-clause, not a geometry. I am hoping for something like this:
var myMapService = new ArcGISDynamicMapServiceLayer(url, {...});
myMapService.setLayerDefinitionWithGeometry(new Polygon(...)); // Similar to setLayerDefinition() but with geometry.
I am using JavaScript API 3.22 with ArcGIS for Server 10.6.