Select to view content in your preferred language

When I use curvePaths, it shows Incorrect geometry type

553
1
02-24-2021 11:21 AM
Robertzhu
New Contributor

my format is :

geometry: {
type: 'polyline',
// paths: [[[ item.from_geo[1], item.from_geo[0] ], [ mid1, mid0 ], [ item.to_geo[1], item.to_geo[0] ]]],
curvePaths: [[[ item.from_geo[1], item.from_geo[0] ], { c: [[ mid1, mid0 ], [ item.to_geo[1], item.to_geo[0] ]] }]],
spatialReference: { wkid: 4326 },
},
 
Any wrong? Thank you all!
0 Kudos
1 Reply
JohnGrayson
Esri Regular Contributor

I don't see 'curvePaths' as a valid property, only 'paths':

https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html

 

0 Kudos