Skip To Content

Connect the ArcGIS Server Services Directory to your portal

The ArcGIS Server Services Directory is a RESTful representation of all the services running on your ArcGIS Server site. One of the links in the Services Directory allows you to preview a service in Map Viewer. You can configure the Services Directory so that this link displays the service in your own Map Viewer instead of the ArcGIS Online Map Viewer.

When the user chooses to view a service with the ArcGIS JavaScript link, the ArcGIS Maps SDK for JavaScript hosted in ArcGIS Online is used to view the service. You can configure the Services Directory to use a locally deployed ArcGIS Maps SDK for JavaScript or the local API installed with your portal.

  1. In a web browser, open the ArcGIS Server Administrator Directory and sign in with an account that has administrative privileges to the site.

    The Administrator Directory is typically available through a URL such as https://gisserver.example.com:6443/arcgis/admin. If your server is federated with the portal, see Access the Administrator Directory on a federated server for more guidance on how to sign in.

  2. In the Administrator Directory, click system > handlers > rest > servicesdirectory > edit.
  3. In the ArcGIS.com URL box, type the URL to your portal's Map Viewer, for example, https://webadaptorhost.example.com/webadaptorname/home/webmap/viewer.html.
  4. In the ArcGIS.com Map Text box, type a label for your Map Viewer URL, for example, ArcGIS Enterprise Map Viewer.
  5. To use a locally deployed version of the ArcGIS Maps SDK for JavaScript, modify the following boxes to contain the local URLs:
    • JavaScript Maps API URL

      Example: https://webadaptorhost.example.com/webadaptorname/jsapi/jsapi4/

      Note:

      When specifying the ArcGIS Maps SDK for JavaScript version, it must be from the 4.x release.

    • JavaScript Maps SDK URL

      This URL is connected to the Built using the ArcGIS JavaScript API link that appears at the top of the page when you view a service using the ArcGIS Maps SDKs. By default, it goes to the online SDK for the ArcGIS Maps SDKs. You can replace this with a link to locally installed ArcGIS Maps SDKs.

    • JavaScript Maps CSS URL

      Example: https://webadaptorhost.domain.com/webadaptorname/jsapi/jsapi4/esri/css/main.css

    Note:

    When specifying the ArcGIS API for JavaScript version, it must be from the 4.x release.

  6. Click Save.