I'm making a CMV app and trying to make the directions widget work with my own network dataset. I replaced ESRI's street route network service with my own service, so viewer.js looks something like this:

directions: {
    include: true,
    id: 'directions',
    type: 'titlePane',
    path: 'gis/dijit/Directions',
    title: 'Directions',
    open: false,
    position: 7,
    options: {
        map: true,
        mapRightClickMenu: true,
        options: {
            routeTaskUrl: 'https://domain.com/arcgis/rest/services/my_network/NAServer/Route',
            routeParams: {
                directionsLanguage: 'en-US',
                directionsLengthUnits: units.MILES

The app is not using my custom network. I get no results when using the widget--any suggestions as I troubleshoot?

I know the network service is working properly, as I got it to work in ESRI's stand-alone example here.

  • Help people to help you. Please create fiddler so that people can debug it or post browser console errors. Jul 26, 2020 at 6:07

1 Answer 1


The CMV Directions widget is a wrapper for Esri's Directions widget. You can test your own service using this example. The example also demonstrates the use of a proxy. Depending on the location of your service, you may need to do that as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.