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.

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 acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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