Make a layer editable

Video

This tutorial is also available as a video.

Publish a hosted feature layer

You'll start by adding your data to ArcGIS Online.

  1. Download the London geodatabase.

    A file named London.gdb.zip is downloaded to your computer. Do not unzip it.

    The file geodatabase (.gdb) is a common data format for desktop GIS. It is a container that can store multiple layers of spatial and nonspatial data. To use a file geodatabase in ArcGIS Online, you must upload a zipped copy of the .gdb file.

  2. Sign in to your ArcGIS organizational account.
    Note:

    If you don't have an organizational account, see options for software access.

  3. On the ribbon, click the Content tab.
  4. Click the New item button.

    Content tab and New item button

  5. Drag the London.gdb.zip file to the New item window.
    Tip:

    Alternatively, click Your device and browse to the .zip file.

  6. For File type, choose File geodatabase.
  7. For How would you like to add this file, ensure that Add London.gdb.zip and create a hosted feature layer is selected.

    File type and How would you like to add this file

    This option will create two new items in your ArcGIS Online account. One will be a copy of the file geodatabase. The other will be a feature layer created from the contents of the file geodatabase. You need the data in the feature layer format before it can be used to create maps in ArcGIS Online.

  8. Click Next.
  9. For Title, type London Water Quality (gdb), followed by your name or initials (for example, London Water Quality (gdb) YN).
    Note:

    You cannot create two layers in an ArcGIS organization with the same name. Adding your initials to a layer name ensures that other people in your organization can also complete this tutorial. Once a layer has been created, you can rename it in the map to remove your initials, which will not affect the name of the underlying data layer.

  10. For Summary, type Water quality of London's rivers and other waterbodies from the Environment Agency.

    These details can be modified later.

  11. Click Save.

    The item page for the new feature layer appears. The item's name is London Water Quality (gdb), and the item type is listed as Feature layer (hosted).

    Feature Layer (hosted) item type

    Hosted items are source layer items. They represent a dataset, while items that are not hosted only reference a dataset. If you delete a hosted feature layer, the data is also deleted. If you delete a feature layer that is not hosted, only the layer is deleted, and the data remains accessible for other layers to reference.

    You will only see the (hosted) label when an item is a hosted and it is owned by you.

    Note:

    If you have an administrator account, you will see the (hosted) label for items owned by anyone in your organization.

    You can read more about feature layers and hosted feature layers in the documentation.

    Because this layer is hosted and owned by you, you can manage the capabilities and the schema of the data, rather than just the layer properties. You'll take advantage of this later, when you enable editing.

Enable editing

Because this layer is hosted and owned by you, you can always edit that data. Next, you'll share the layer with the other people in your organization and ensure that they can edit the data too.

  1. On the item page, click the Share button.

    Share button

  2. In the Share window, for Set sharing level, choose Organization.
  3. Click Save.

    Now, anyone in your organization can find and view this layer. You'll update the Description section so they can find more information about the data.

  4. Next to Description, click Edit.
  5. In the text box, copy and paste the following text:

    Source: https://data.london.gov.uk/dataset/water-quality-london-rivers-other-waterbodies

    Date accessed: November 29, 2022

    License: https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/

  6. Click Save.

    Edited Description text

    Next, you'll enable editing on the layer.

  7. On the ribbon, click the Settings tab.
  8. Scroll to the Feature layer (hosted) section and check Enable editing.

    Enable editing checked

    Note:

    To learn more about the editing options, read Manage hosted feature layer editing.

  9. Click Save.

Create a hosted feature layer view

You now have a layer that people in your organization can view and edit. Next, you'll create a layer that the public can view but cannot edit.

  1. On the ribbon, click the Overview tab.

    Since you'll be creating a new version of this layer, you will first change its name to make it clear which layer is for which purpose.

  2. On the ribbon, next to the title, click the edit button.
  3. Rename the item London Water Quality (editing).
  4. Click Save.

    Title edited to London Water Quality (editing)

    Next, you'll create a hosted feature layer view. The new layer view will not be a new dataset. Instead, it will reference the data from the London Water Quality (editing) layer. The layer view allows you to show the same data with different properties and settings. You need a layer view so you can change the sharing and editing settings.

    Note:

    You can only create layer views from hosted feature layers that you own.

    For other feature layers, you can save a copy. This method won't allow you to change editing settings, but it will allow you to change layer properties.

  5. Click the Create View Layer button and choose View layer.

    View layer option under Create View Layer

    The Create View Layer window appears. The London Water Quality (editing) layer is selected in the Layers pane.

    Layers pane in the Create View Layer window

  6. Click Next.

    The second step, Define view, allows you to configure a filter, an area or interest, or fields. You don't need to change any of these properties.

  7. Click Next.
  8. At the end of the Title text, add your name or initials (for example, London Water Quality (editing) view YN).
  9. Click Create.

    The item page for the new layer appears.

  10. Edit the layer's title to London Water Quality. Click Save.

    The item type is listed as Feature Layer (hosted, view).

    Feature Layer (hosted, view) item type

    This layer view references the same data as the London Water Quality (editing) layer it was created from. When you or a coworker make updates to the data in the London Water Quality (editing) layer, those changes will also appear in the London Water Quality layer.

    Next, you'll update the sharing and editing settings.

  11. Click the Share button.
  12. For Set sharing level, choose Everyone (public). Click Save.
  13. On the ribbon, click the Settings tab.
  14. Scroll to the Feature layer (hosted, view) section.

    The Enable editing setting is unchecked and unavailable.

    Disabled editing settings

    This setting became unavailable when you shared the layer with the public. You can still enable editing (if you first enable Public Data Collection), but it is unavailable by default to prevent you from accidentally allowing the public to edit.

Review items

To finish, you'll review the layers you created and confirm they are shared appropriately.

  1. On the ribbon, click the Content tab.

    Content tab on the ribbon

  2. Below Folders, click All my content.

    All my content

    There are three new items at the top of the content list:

    London Water Quality items in the Contents list

    • London Water Quality is a hosted feature layer view. It is shared with everyone. This is the layer you'll expose in a public-facing map so people can check the quality of waterways.
    • London Water Quality (editing) is a hosted feature layer. It is shared with your organization. This is the layer that you and your coworkers will edit as new water quality test results are reported.
    • London water quality (gdb) is a copy of the file geodatabase that you uploaded at the start of the tutorial. You can't visualize this item on a map in ArcGIS Online. Its sharing level is set to Owner. No one needs access to this item except for you.

In this tutorial, you published a file geodatabase as a hosted feature layer and used it to create a layer view. You shared the layer with your organization and enabled editing so your coworkers can update the data. You shared the layer view with the public and did not enable editing.

Next, you can send a link to the London Water Quality (editing) layer to your coworkers to confirm that they can edit the data. To confirm that editing is disabled on the London Water Quality layer, you can sign out of ArcGIS Online to simulate how a member of the public would interact with the layer.