Web maps and ArcGIS services

ArcGIS web maps can display and query web services hosted on ArcGIS Server and ArcGIS Online, as well as other types of servers. Supported ArcGIS service types are:

If you provide the root URL of a map service, the map will be displayed using tiles if they are available. Tiles are the only way you can display an ArcGIS Online hosted map service. If you're working with ArcGIS Server and tiles are not detected, the map will be displayed using an image dynamically drawn by the server.

If you provide the URL of a single layer in a map service, an image is not created; instead, features are retrieved through queries and displayed using client-side graphics, in the same way that you would work with a feature service.

Feature services are always referenced using the URL to a single layer in the service.

Ways to reference services in your web map

There are several approaches for referencing ArcGIS services in your web map. The same service may be referenced in different ways by different maps.

Various ways to reference a service

Determining the URL of an ArcGIS Server service

To reference an ArcGIS Server service, you'll need to know its URL. Web maps always reference the RESTful endpoint of the service, which can be determined using the Services Directory application included with ArcGIS Server. If the server administrator has not explicitly disabled it, you can view the Services Directory by appending /rest/services to the server URL.

You can view an example Services Directory at http://sampleserver6.arcgisonline.com/arcgis/rest/services. As you navigate the links in the Services Directory, you can copy the URLs of individual services from your browser's address bar. For example, here is the URL of a map service from the above Services Directory: http://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer. This URL could be used in your web map JSON to reference the ArcGIS Server map service.

12/11/2012