Assignment 5

Use mobile GIS to edit a layer through a web service

Create an app that can be used on mobile devices to update a dataset through a web service. The dataset will be hosted with ArcGIS Online, and mobile devices will be able to add new records or update existing records. There will be two layers to accomplish this (pretend you are setting this up for an organization): one for private use within your organization and one for public use as a volunteered geographic information (VGI) app.

The example used in this tutorial is for an app to report debris on campus following a tornado. In this example scenario, campus authorities need to quickly deploy a system for identifying debris so maintenance crews can respond. The system is initially set up so that only these crews can make detailed reports, but given the urgency of the situation, a public app is also created to get basic input from anyone on campus who spots downed trees, damaged vehicles, etc.

We will use separate apps to update the private and public layers:

Table of Contents

Data

The dataset will at first be empty, and will only be populated once users start submitting reports through the private and public apps. To create this empty dataset, use the feature layer templates available in ArcGIS Online. This tutorial will use the “Debris Reports” template.
ArcGIS Online feature layer templates

Feature layer templates will include predefined attributes. For example, the “Debris Reports” template will create a feature layer with the following attributes:

Creating a new feature layer will create a new item on your Content page. This layer can be added to maps.
Feature layer item on the Content page

For public access, we will create a “view” of the feature layer.
Layer icons

The new layer “view” is not a copy of the source layer. The view points back to the source layer. Therefore, updates to the data in one layer will be reflected in both the view and the source. The purpose is to be able to set different permissions, styles, and filters for the view and the source. In this tutorial, the source will be private and the view will be public:

Steps

The basic steps in this process are:

Notice the general pattern: Layer/service » Map » App.
The steps in this exercise build on each other
Once again we see the nesting dolls, demonstrating that layers are published as web services, which are added to maps, which are added to apps.

Part 1: Create an empty layer

  1. Sign into your ArcGIS Online account, provided in class by your instructor.
  2. Go to your Content page.
  3. Click New Item > Feature Layer.
  4. Click Use a template, Next, and search for the “Debris Reports” template. Select it and click Next until asked for a title and tags, then click Save. The layer will be created and you will see its Item Details page.
  5. Click the Data tab at the top of the page to see the predefined attributes (there are no features under the attributes yet).
  6. Click the Visualize tab to see the template’s predefined symbology. For the “Debris Reports” template, the symbols correspond to different types of debris (vegetation, hazardous material, etc.). The map should be blank except for the basemap.
  7. Click Settings, and in the Feature Layer (hosted) part of the settings, make sure the Enable editing box is checked. Click Save.

Part 2: Create a web map

  1. Still on the Item Details page of the new feature layer, click the Overview tab, then click Open in Map Viewer Classic to add the layer to a new map.
  2. In the Map Viewer, the empty layer should appear in the Content pane with symbols already.
  3. Pan and zoom the map to your area of interest, such as the campus of LSU.
  4. Save the map and name it with “Private” at the end of the name to distinguish it from the public layer we will make later. Do not share with Everyone, because this map contains the private layer for our pretend organization’s internal use.

Part 3: Set up ArcGIS Collector

  1. On a mobile device (iOS, Android, Windows), install Collector for ArcGIS (Esri) from your device’s app store.
  2. Once installed, sign into Collector with your ArcGIS Online account.
  3. Browse for Maps in Collector to see the maps saved in your account that have an editable feature layer added. Tap your debris report map to open.
  4. Depending on your version of Collector, tap Collect, Capture, or + to add a new feature to the layer. Collector will try to use your current location, but you can tap the map to drop a point marker instead.
  5. Fill out some basic attributes and attach an image. Tap Submit.
  6. The new feature will appear on your map. You can refresh the map on your computer to see the feature you just input from your phone.

Part 4: Create a View Layer for public access

  1. Return to the layer’s Item Details page.
  2. Click Create View Layer. Create View Layer button
    Item Details page showing the Create View Layer button.
  3. On the Create View Layer page, click Next at the Choose layers step.
  4. On the Define view step, click your layer to see options, then click Area of interest. Pan and zoom the map to the area where debris could be reported, then draw a box around the area.
  5. Click the back arrow by Layer definitions and then Next.
  6. Put “view” at the end of the title to distinguish this view layer from the original, then click Create.
  7. Note that this creates another item in your Content:
    Content page with a view layer
    Content page showing a separate item for a feature layer view.
  8. Go to the view layer’s Item Details page and click Settings.
  9. Check Approve this layer to be shared with the public when editing is enabled and Save, then Enable editing and Save. Note that there are several options under Enable editing. You will configure these on your own in the “Try it” section next.

Try it

  1. Think about how you want your public app to be used and set the appropriate editing permissions on the View Layer from Part 4.
    • Should the public be able to only add new features?
    • Only update existing features?
    • Other combinations of permissions?
  2. Add the View Layer to a new map. Set appropriate sharing permissions on the map, considering it will be used in a crowdsourcing app.
  3. Add the map to an app. Set the same sharing permissions.
  4. Choose a configurable app meant for collecting and editing data, such as the “GeoForm” template. When setting up the app, consider which form fields need to be available for public input, e.g., you can hide the “volume” field as it is not realistic to expect people to know that.
  5. Fill out the item information on the Item Details page of your public app. Describe what the app is for and how the audience is supposed to use it.
    Item info progress bar
    A progress bar indicates how much information has been filled out on the Item Details page.

  6. Once finished with the exercise, your Content page should show something like this:
    Content page with items
    Content page with items for private and public layers, private and public maps, a public app, and any supporting files you uploaded.

We have public and private layers, public and private maps, but only a public app, because ArcGIS Collector serves as our private app.

Submit

  1. The URL to the Item Details page of your public web app. Example: https://www.arcgis.com/home/item.html?id=ABC123 or https://arcg.is/ABC123
Top