Create a layer and add features

Video

This tutorial is also available as a video.

Create a feature layer

For this project, you want to create a layer of data that you can maintain and use over time. Your immediate need is to advertise beach locations to volunteers, but later, you'll use the layer to record attendance and plan new events. If you only needed to create one map of beach locations, you could create a sketch layer more quickly than a feature layer. But because you anticipate using this layer in future maps and because you need to store multiple attributes for the data, you'll create a blank feature layer in your ArcGIS Online account instead.

Note:

You can learn how to create sketch layers in the documentation.

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

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

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

    New item button

    There are many item types in ArcGIS Online and many ways to add data. For your map, a feature layer is the best option; it can contain one feature for each beach, and store attributes about the name of the beach and the date and time of the event. You can edit the layer as information changes and reuse it in multiple maps.

  4. Click Feature layer.

    Feature layer

    Several options are available for creating a feature layer. You need something simple: one layer of points with only a few fields. It will be easiest to define this yourself rather than edit an existing layer or template.

  5. Choose Define your own layer and click Next.
  6. Under Specify name and type, delete Layer_1 and type Beach Cleanups. From the menu, choose Point layer.

    Specify name and type

    Feature layers can have multiple sublayers, but only one point layer is needed for the beach cleanup map.

  7. Click Next.
  8. For Title, add your name or initials (for example, Beach Cleanups Your Name).
    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.

  9. For Summary, type Locations of beach cleanup events on Panglao Island.
  10. Click Save.

    The item page for the new feature layer appears. The one sublayer—the point layer also named Beach Cleanups—is listed under the Layers section.

    Item page

Add fields

You've created an empty layer. Next, you'll define fields to store attributes for the name of each beach and its cleanup date.

  1. On the ribbon, click the Data tab. Click the Fields button.

    The layer has one field: OBJECTID. The OBJECTID field allows you to uniquely identify each feature in the layer.

  2. Click the Add button.

    Add button

  3. In the Add Field window, for both the Field Name and Display Name properties, type Name.
  4. Ensure that Type is set to String.

    String fields store text. The other types store numbers or dates.

    Add Field window

  5. Click Add New Field.

    The Name field appears in the field list.

    OBJECTID and Name fields

  6. Click the Add button again.
  7. In the Add Field window, set the following properties:
    • For Field Name, type Cleanup_Date.
    • For Display Name, type Cleanup Date.
    • For Type, choose Date.

    Add Field window

  8. Click Add New Field.

    You have added two fields to the feature layer. You'll add more fields later, for example, integer fields to record the number of volunteers who participated and how many bags of trash that were collected.

Add features

You are ready to edit the feature layer and add features to it.

  1. On the ribbon, click the Overview tab. Click Open in Map Viewer.

    Open in Map Viewer button

    A map of the world appears. The Layers pane is open and contains the Beach Cleanups layer.

  2. On the map navigation controls, click the Search button.

    Search button

  3. In the Search tool, type Bolod, Panglao and press Enter.

    The map zooms to Panglao Island in the Philippines. You'll change the basemap to make it easier to identify the beaches.

  4. On the Content (dark) toolbar, click the Basemap button.
  5. In the Basemap pane, click Imagery Hybrid.

    Imagery Hybrid in the Basemap pane

    The beach becomes visible. Next, you'll use the editing tools to add features.

  6. On the Settings (light) toolbar, click the Edit button.

    Edit button

  7. In the Editor pane, under Beach Cleanups, click New Feature.

    New Feature

  8. On the map, click the sandy beach to the south of the Bolod label.

    A point appears on the map.

    Point feature added to the beach near Bolod.

  9. In the Create features pane, for Name, type Bolod Beach.

    You'll choose the dates for each cleanup later. For now, you can leave the Cleanup Date field blank.

    Create features pane

  10. Click Create.
  11. Search for the following locations and add features for the following beaches:
    • Doljo, PanglaoDoljo Beach
    • Bikini Beach, BoholBikini Beach
    • Alona BeachAlona Beach

    Map with four point features

  12. On the Settings toolbar, click the Edit button to close the Editor pane.

    It's not necessary to save the layer or the map. Edits are automatically saved to the layer.

Review the new data

You have created a feature layer of beach cleanup locations on Panglao Island. You'll review your new data on the map and in its item page.

  1. On the map, zoom out until you can see all of the features.
  2. On the map, click one of the features.

    Pop-up for the Alona Beach feature

    A pop-up appears showing the name of the beach. There is an empty field for the cleanup date, which you will define later.

  3. Close the pop-up.

    You'll return to the layer's item page.

  4. On the Settings toolbar, click the Properties button.

    Properties button

  5. In the Properties pane, expand the Information section. Under Source layer, click Beach Cleanups / Beach Cleanups.

    Source layer in the Properties pane

    The item page reappears. It is open to the page for the sublayer.

  6. Click the Data tab.

    The data table appears, listing the beach features you created. The Cleanup Date column is empty.

    Data table with four features

    Once you've created a schedule for the beach cleanups, you can edit the dates here, or in the map. You can add more fields now, or after the beach cleanups have taken place.

    Note:

    To learn how to include images from the cleanup events, try the tutorial Show images in pop-ups.

In this tutorial, you learned how to create a feature layer, define fields, and edit a layer to add features.

You can find more tutorials in the tutorial gallery.