Select to view content in your preferred language

ESRI JS API 4.27: RouteLayer barriers not taking into account the 'curbApproach' attribute

363
1
Jump to solution
06-16-2023 08:18 AM
NicolasGIS
Regular Contributor

Hello,

Migrating a routing application from 3.X to 4.X, I am currently facing an issue with the 'curbApproach' attribute of barriers:

https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PointBarrier.html#cu...

I am under the impression that JS API does not take into account this attribute and does not send it to the 'Solve' operation:

https://codepen.io/NicolasGIS/pen/yLQOeGq?editors=100 (copy paste code in RouteLayer sandbox as it requires a token:

https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=layers-routelayer

The 'barriers' parameter is sent with the following value:

 

barriers: {"features":[{"geometry":{"spatialReference":{"wkid":4326},"x":-117.30968,"y":34.06493}}]}

 

and is not taken into account.

 

Did I miss anything or does it look like a BUG ?

 

Thanks,

 

Nicolas

0 Kudos
1 Solution

Accepted Solutions
NicolasGIS
Regular Contributor

Took a while to be logged but here it is:

BUG-000160198- The ‘curbApproach’ property of PointBarrier object is not honored when used in RouteLayer class of the ArcGIS Maps SDK for JavaScript 4.27

View solution in original post

0 Kudos
1 Reply
NicolasGIS
Regular Contributor

Took a while to be logged but here it is:

BUG-000160198- The ‘curbApproach’ property of PointBarrier object is not honored when used in RouteLayer class of the ArcGIS Maps SDK for JavaScript 4.27

0 Kudos