point within geojson multipolygon or withing extent of the json features

134
1
03-16-2021 09:41 AM
aidanarcgisDev
New Contributor

using Javascript API, how can comvine the CSV drag and drop example so that when I dropt the points in, it comes back with map of the points that lie withing extent of a multipoygon Gejson layer

 

Here is the point in extent example

https://developers.arcgis.com/javascript/3/jssamples/graphics_extent_query.html

 

Here is the drag drop example

https://developers.arcgis.com/javascript/3/jssamples/exp_dragdrop.html

 

In the drag drop example can I also use a webmap

0 Kudos
1 Reply
nita14
by
Regular Contributor

Hi,

you need to compare geometries of input points with the source polygon features/graphics using GemetryEngine (Contains function)

https://developers.arcgis.com/javascript/3/jsapi/esri.geometry.geometryengine-amd.html#contains

Hope this helps!,

Adam

 

0 Kudos