Geographic Information Systems Asked by user2094378 on September 4, 2021
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.
Answered by tmcgee on September 4, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP