0

I am working with Directions Widget with arcgis JS version 3.38 and want to display the Save button on the widget, so I have added the ShowSavsButton parameter. But still can't displayed on the widget!

 var directionsW = new Directions({
            map: map,
            routeTaskUrl:                   
             "https://192.168.7.45:6443/arcgis/rest/services/CALCUL_ITINERAIRE/NAServer/Route",
            **showSaveButton: true**

Can anyone help me with this?

5
  • It doesn't even work in their sample
    – kenbuja
    Commented Oct 27, 2021 at 12:46
  • It works you need just to uncomment the following parameters "showSaveButton: true" Commented Oct 27, 2021 at 13:39
  • My mistake...I had uncommented it but didn't provide a route. I was expecting the button to appear before entering an origin/destination
    – kenbuja
    Commented Oct 27, 2021 at 14:39
  • do you have any idea why I cannot see it even if I enter an Origin/Destiniation Commented Oct 27, 2021 at 14:49
  • Is that "Network Analyst Server federated with ArcGIS Online or Portal? If not, it will not know where to save the route, so doesn't display the button. developers.arcgis.com/javascript/3/jsapi/… Commented Nov 9, 2021 at 1:54

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.