Select to view content in your preferred language

Display route in Polling Place Locator App

2275
1
08-25-2014 10:19 AM
Labels (1)
KendellRyan
Occasional Contributor

We are testing the polling place locator app. We are using our own geocoding, geometry and routing services.  Everything is working fine except with the directions function, the blue line showing the route does not display (as it does with the ESRI world routing service).  The textual information is shown correctly on the tab.  I didn't modify anything in the code for that section other than replace the URL for the service. Do we need to modify something in our closest facility service? Or do I need to modify something in the application. Any suggestions are appreciated.

0 Kudos
1 Reply
KendellRyan
Occasional Contributor

Someone from ESRI support finally figured this out. He said it had to do with some differences in our services and ESRI's.  Below are the changes he had me make and now it works with our own routing service.  So in case this helps anyone else (line numbers may not be exact, but are close) here it is:

1. At line 89 in route.js, Add:   
directions.mergedGeometry.paths =
solveResult.routeResults[0].route.geometry.paths;

2. At line 48 in route.js, Change:      
routeParams.returnRoutes = false;

to true

3. At line 300 in config.js, Change:      
ShowDirection: false

to true

0 Kudos