Skip to content

Service vs. Layer item

Sometimes people will use the words "service" and "layer" interchangeably. But they are not the same.

Service

A service defines a set of capabilities. What will you be allowed to do with a resource? Will you be able to edit data? Can you upload local data for analysis? Are you allowed to export the data? Any questions about capabilities are answered by the service configuration. In ArcGIS Enterprise, you publish services to an ArcGIS Server site you control. In ArcGIS Online, you publish services to Esri’s servers.

A service makes these capabilities available via a URL that let you use web protocols to access the resource. These URLs are referred to as REST endpoints. Some services also make resources available through a different standard called SOAP, but this is rarely used. In this workshop, you will work only with REST endpoints.

Layer item

A layer item references a particular service, but it does not change that service’s capabilities. You can use a layer item to represent the resource with different symbology, popups, or filters than the service’s default representation. Layer items (unlike services) are items in the portal, so you can also use a layer item to integrate its associated service into the portal’s content management capabilities. In both ArcGIS Online and ArcGIS Enterprise, the typical publishing process involves adding a new layer item to the portal, which automatically creates the associated service for that layer item.

Because a layer item is not a service, it does not have its own REST endpoint. Instead, it has a unique Item ID and it references the REST endpoint of the underlying service. One important implication of the fact that a layer item sits on top of a service is that there might be multiple layer items that all reference the same service. A second implication is that you can create layer items for any service whose REST endpoint you can access, even if that service exists outside your organization.

Exercise: Publish a service (10 minutes)

  1. Log into ArcGIS Online with the workshop credentials you have
  2. In the Home app, click the Content tab
  3. Click the New item button, then click Your device
  4. Navigate to the location where you downloaded the Rain Gauge Sites shapefile
  5. Select the .zip archive then click Open
  6. Select the default option to add the file and create a hosted feature layer
  7. Title the item RainGaugeSites_<your initials>, then click Save
  8. On the item details page, note the item ID in the URL (it is a 32 character hexadecimal value)
  9. Change the sharing options to share this item with everyone
  10. At the bottom of the Overview, copy the URL
  11. Navigate back to the Content tab so you can see all the items owned by your username
  12. In an incognito browser window, navigate to the URL you copied, then click the link to the RainGaugeSites layer
  13. Scroll to the bottom of the page and review the supported operations
  14. Answer these questions:
    1. What is the Item ID of the first layer item you created?
    2. How many new content items were created?
    3. How many of them were layer items?
    4. What is the URL of the REST endpoint for the service you published?
    5. Why is the REST endpoint accessible without logging in?
    6. Among the supported operations for the layer, which editing capabilities are supported?

Summary

Service Layer Item
Define what can be done with a resource ✔️
REST endpoint ✔️
Representation of data ✔️ ✔️
Specify users who can access ✔️
Tags/Categories ✔️
Item ID ✔️