Hi,
While implementing the Turf with the Arcgis, below error is coming:
Argument of type '{ type: string; properties: { stroke: string; }; features: { type: string; properties: { color: string; }; geometry: { type: string; coordinates: number[][]; }; }[]; }' is not assignable to parameter of type 'Position[]'.
PFB the code snippet:
Turf isn't an Esri product. You can get support on the github page for turf https://github.com/Turfjs/turf/
Hi,
I checked this link as well. I just wanna used the properties to show the nearby points on the map for a given route. So that is why i am using TUrf.
Is there any way to do that in Arcgis using Turf.
You'll need to covert the GeoJSON result to an ArcGIS geometry.
https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html
Point takes a latitude and longitude you can use. I have no samples for this.