-
Notifications
You must be signed in to change notification settings - Fork 31
Configure utility services
This downloaded application can be configured to use your own utility services. Additionally, any other externally facing URLs can be customized to point to URLs within your network, except where otherwise noted. The instructions below detail the steps necessary to configure your application in a disconnected environment.
-
Specify a custom print service. In commonConfig.js, replace the URL value in quotes for the printTask property with your custom print service. For example: printTask:{ url: location + protocol + "//MyServer/../rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task" } Note: If a custom print service is not configured, the application uses the ArcGIS.com default print service.
-
Specify a custom geometry service. In commonConfig.js, replace the URL value in quotes for the geometry property with your custom print service. For example: geometry:{ url: location + protocol + "//MyServer/../rest/services/Geometry/GeometryServer" } Note: If a custom geometry service is not configured, the application uses the ArcGIS.com default geometry service.
-
Specify a custom geocode service. In commonConfig.js, replace the URL value in quotes for the geocode property with your custom print service. For example: geocode:{ url: location + protocol + "//MyServer/../rest/services/World/GeocodeServer" } Note: If a custom geocode service is not configured, the application uses the ArcGIS.com World geocode service by default.
-
Search and replace Javascript API (JSAPI) references. In index.html, use a text search to find all instances of "//js.arcgis.com/. Replace these references with your internally hosted JSAPI. Be aware you may need to modify the search and replace text strings to correctly update the references to point to your hosted JSAPI. If you are using Portal for ArcGIS, you can update the references to use the portal's internally hosted JSAPI, for example:
Search for: //js.arcgis.com/ Replace with: //MyPortalServer.domain.com/arcgis/jsapi/jsapi
Confirm the update was successful by opening one of the updated references in a web browser. If the file contents are displayed properly in the web browser, the update was succesful. For example:
Open in web browser: "http://MyPortalServer.domain.com/arcgis/jsapi/jsapi/js/dojo/dojox/layout/resources/FloatingPane.css"
Note: If JSAPI references are not updated, the application uses the JSAPI hosted by ArcGIS.com.
External URLs that cannot be modified
The application may not function correctly if the references below are modified. However, the application can be configured to disable functionality that uses these external references, detailed as necessary below.
-
Elevation widget. Disabled by default. The elevation widget uses these external references, which cannot be changed: http://help.arcgis.com http://sampleserver4.arcgisonline.com/ArcGIS/rest/services/Elevation/ESRI_Elevation_World/MapServer/exts/ElevationsSOE/ElevationLayers Note: The elevation profile option for this template is no longer supported. Please use the [Elevation Profile template] (https://github.com/Esri/elevation-profile-template) instead.
-
Share button on the menu bar. Enabled by default. To disable, refer to the disableshare option in Step #3 in the above section, Specify Map Options. The share button on the menu bar uses these external references, which cannot be changed: http://www.facebook.com http://www.twitter.com