In the previous lesson, you published a layer for fire hydrant inspections to ArcGIS Online or ArcGIS Enterprise. In this lesson, you'll add that layer to a web map. Then, you'll configure the layer's pop-up to show inspections in chronological order. Finally, you'll share your layer and map so your workers can access them.
Add the layer to a map
Before you can send your field crew to inspect hydrants, you need to add your hydrants layer to a web map.
- If necessary, sign in to your ArcGIS organizational account.
- At the top of your organization's home page, click Content.
When viewing all your content, the My Content tab includes two items titled Hydrants_yourname. One is a service definition that contains the drawing specifications for your published service. The other is a feature layer you can add to a map.
- Click the title of the Hydrants_yourname feature layer to view its item page.
On the item page, you'll see the information about the layer, including the summary you provided when publishing the layer in the previous lesson.
- Click the drop-down arrow next to Open in Map Viewer and choose Add to new map.
A map containing the layer opens.
Your default extent may differ from the example depending on your monitor size and resolution.
In the Contents pane are four items: the Hydrants yourname layer; the Topographic basemap; and the Inspections and Violations tables. Their layer names are a little confusing, however. You'll change them to something more readable before continuing.
- Point to the Hydrants yourname layer. Click More Options and choose Rename.
- Rename the layer Hydrants and click OK.
- Rename the Hydrants yourname - Inspections table to Inspections. Rename the Hydrants yourname - Violations table to Violations.
Configure the layer's pop-up
Next, you'll configure the pop-up of the Hydrants layer to show data from the Inspections table. You'll adjust the pop-up's sort options so inspections appear in chronological order.
- Zoom in on the map so that individual hydrant features become distinguishable. Click any hydrant to view its pop-up.
The pop-up shows the attribute information of the Hydrants layer. The formatting is good enough, but there is some information your workforce won't need to see. You also want to make sure you can access related inspections for each hydrant through the pop-up, although currently those tables don't have any records (you'll add records in the next lesson).
- Close the pop-up.
- In the Contents pane, point to the Hydrants layer. Click the More Options button and choose Configure Pop-up.
- For Pop-up Title, type Facility ID: (including the trailing space) before the field value to give it context.
- In the Pop-up Contents section, below the list of field attributes, click Configure Attributes.
- In the Configure Attributes window, in the Display column, uncheck OBJECTID and GlobalID and click OK.
At the bottom of the Configure Pop-up pane are options for showing related data. Show related data is checked by default. There are also options for how related data is sorted.
- In the Related Data section, click Sort Options.
The Sort Options window opens. You'll sort the inspections data chronologically.
- For Field, choose Inspection Date. For Order, choose Ascending.
- Click OK in the Sort Options window. At the bottom of the Configure Pop-up pane, click OK.
- Click any hydrant to view its updated pop-up.
Save and share the map
Now that you've created the map, you'll save and share it. To ensure you share it only with your field workforce, you'll create a group to which you can invite specific members.
- On the ribbon above the map, click Save and choose Save As.
- For the title, type Hydrant Inspections and Violations.
- For the tags, add hydrants, inspections, violations, Naperville, and Illinois.
- For the summary, type A map of fire hydrants and hydrant inspection information in Naperville, Illinois.
- Click Save Map.
The name change is reflected on the map. Now that your map is saved, you'll share it with your workforce. First, you'll exit the map and create a group. Groups allow you to choose who sees the group's content, so you can ensure only your workforce has access to the information.
- At the top of the map, click the Home menu and choose Groups.
The Groups page opens, which shows the groups (if any) of which you are a member.
- Click Create group.
A new page opens, allowing you to set the parameters of your group.
- Name your group Naperville Hydrant Inspectors. For the summary, type Content for hydrant inspectors in Naperville, Illinois. Add search tags that describe the group's content and geography, like the ones you used for the map.
You can drag or upload a thumbnail image. Good ideas for thumbnails are logos or crests of the town or department with which the group is associated. You probably don't have the Naperville city crest, so you can leave the thumbnail blank.
- For Who can view this group, click Only group members.
By making your group private, only users you invite can join and view the group's content. Accept the default for the remaining questions.
- At the bottom of the page, click Create Group.
The group is created. It has no items and no members other than you. If you want to invite members to the group, click Invite Users at the top of the page.
If using ArcGIS Online, you can invite members both inside and outside of your ArcGIS Online organization. As long as your field inspectors have ArcGIS Online accounts, you can invite them to your group.
Next, you'll share your web map with the members of the group.
- At the top of the page, click Content.
- Check the Hydrant Inspections and Violations web map and the Hydrants_yourname feature layer. Click Share.
- In the Share window, check the Naperville Hydrant Inspectors group.
- Click OK.
- On the ribbon at the top of the page, click Groups. Click your Naperville Hydrant Inspectors group.
The web map and Hydrants layer are now accessible through the group.
In this lesson, you created a web map to collect inspection records and shared the map with your field workforce. In the next lesson, you'll test your map's functionality in Collector for ArcGIS by simulating a field inspection of a fire hydrant.