HowTo:  Update the legacy routing services for ArcGIS for Local and State Government (ArcGIS 10.2) applications

相关信息
Article ID: 41593
Software:
ArcGIS for Local Government 10.2
ArcGIS for State Government 10.2
Platforms: N/A

问题描述
Some of the JavaScript applications in ArcGIS for Local Government and ArcGIS for State Government use the legacy routing service by default.

As of December 31, 2013, the
legacy geocoding service has been retired and turned off.

This article describes the steps to disable the routing service functionality. Once disabled, the application is completely functional without using the routing legacy service.

For more information on the legacy geocoding services please read the Esri blog:

Legacy Geocoding and Route Services Will Be Retired on December 31, 2013.

已邀请:

EsriSupport

赞同来自:

解决方案
To turn off the routing service, update the following applications using the steps below:

• Park and Recreation Finder (ArcGIS 10.2)
• Park and Recreation Locator (ArcGIS 10.2)
• Water Access Locator (ArcGIS 10.2)
• Wildlife Management Area Locator (ArcGIS 10.2)
• My Hazard Information (ArcGIS 10.2)
• My Government Services (ArcGIS 10.2)
• Election Polling Place (ArcGIS 10.2)



  1. In Windows Explorer, browse to the location of the application.
  2. Browse to the config.js file.
  3. Copy the file and rename it backup_config.txt.
  4. Open the original config.js file in Microsoft Notepad or another text editor.
  5. Scroll down the config.js file to the code snippet for each application listed below: • Park and Recreation Finder, Park and Recreation Locator, Water Access Locator, and Wildlife Management Area Locator, use this parameter: GetDirections: true, • For My Hazard Information and My Government Services, use this parameter: SearchforDirections: true, • Use this parameter for Election Polling Place: ShowDirection: true
  6. Replace the word 'true' with the word 'false'.
  7. Save the config.js file.
  8. Open a web browser, clear the browsing cache and test the application to ensure it is operating correctly.


其它相关参考
  1. Update legacy routing services for the Park and Recreation Finder, My Government Services, and Election Polling Places
  2. HowTo: Update the legacy geocoding service for the ArcGIS for Local Government ArcGIS Viewer for Flex applications
  3. HowTo: Update the legacy geocoding service for ArcGIS for Local Government JavaScript applications


创建及修改时间
Created: 9/18/2013

Last Modified: 12/30/2013
原文链接
http://support.esri.com/en/kno ... 41593

要回复问题请先登录注册