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

  1. In the ArcGIS Online Portal, click the Content tab
  2. Click the New item button, then click Your device
  3. Navigate to the location where you downloaded the Rain Gauge Sites shapefile
  4. Select the .zip archive then click Open
  5. Select the default option to add the file and create a hosted feature layer
  6. Title the item RainGaugeSites_, then click Save
  7. On the item details page, click the Settings tab and review the configuration
  8. Click the Overview tab, scroll down to the Share section, then click Edit
  9. Change the sharing options to share this item with everyone
  10. Scroll to the bottom of the Overview, then copy the URL
  11. Open a new browser window in Private or Incognito mode, then and paste the URL you copied into the address bar.
  12. Answer these questions:
    1. How many new content items were created? How many of them were layer items?
    2. What is the URL of the REST endpoint for the service you published?
    3. Why is the REST endpoint accessible without logging in?
    4. What is the Item ID of the first layer item you created?
    5. Is the service configured to allow editing?

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 ✔️