Most maps are going to require labels in order to identify features and orient the map reader. Text labels can be applied to the map by pulling information directly from the attribute tables.
- [Instructor] Most maps are going to require labels in order to identify features and orient the map reader to your area of focus. Text labels can be applied to your map by pulling information directly from the attribute tables attached to each layer in the map. For this map of San Francisco, I want to start labeling our parks. I'll first need to review the attribute table for our parks, in order to find out which field I want to use. You can get to the attribute table either by selecting the parks layer and then going up to the Data tab and choosing Attribute Table from the list. Or we can right-click on the layer and choose Attribute Table from this popup menu.
One of the fields is called Name, and this is the field that we're going to use to label our parks. Let's go ahead and close down the attribute table. And then we'll switch over to the Labeling tab on the ribbon. On the far left side in this section called layer there's a button called Label, and when we toggle that on, it'll label all the features in this layer. When the map redraws, we'll see that this is actually way too many labels since ArcGIS Pro is trying to place a label for every park on the map. We need to find a way to limit the labeling to only the largest parks. Let's take another quick look at the attribute table for this parks layer.
I'll right-click on it and choose Attribute Table one more time. Notice that we also have a field called Area. And if I right-click on it, I can sort this field descending so that that largest parks appear at the top of the list. The units that are displayed here are in degrees so they don't actually conform to a real-world measurement of area, but we can still scroll through this list and find a somewhat arbitrary cut-off point. I'm going to come down here and make a decision that our large parks are going to be anything above .0001. That'll include this Mulholland Ridge Park but it won't include Lakeside Park or anything smaller.
Let's go ahead and close the attribute table. In order to define labels based off of the size of our park we're going to create two classes, and we can get to that in this label class section of the Labeling tab. Right now we have a single class and all of our features are currently in this class. To change that, press the SQL button to the right. That'll load up the Label Class pane on the right side of the interface. And we can come down to the bottom and add a new clause. The filter that I want to apply is going to read the area is greater than or equal to .0001.
We'll go ahead and add that clause and then we'll apply that. Now we can see that only the largest parks on the map are getting a name. Instead of just the name Class 1 for this particular class, we can actually rename it. We can change that by visiting this menu button here and choosing Rename Label Class. I'll name this "Large Parks." And you can see that that updates in the tab on the ribbon as well. So now we've effectively filtered out all of the smaller parks. But what if we did want to label the smaller parks, we just wanted to handle their labels differently? In that case, we can create another class for the small parks.
Let's go to this drop-down menu in the Labeling tab and we'll choose Create a label class. This will create a new label class and this time I'll call it "Small Parks." Notice that the class changes in this list and now we're looking at the label class for our small parks label. We can add another clause at the bottom here. This time the area is going to be less than, and I'll type in that same number .0001. We'll add that clause, and then Apply. Now we have two different classifications for our labels.
If we visit this menu on the labeling tab of the ribbon we can see large parks and small parks. If we switch it to large parks, we can see that this checked box is currently turned on to Label Features in This Class. Now I'll just change it to Small Parks, and uncheck this checkbox. Now we're effectively labeling the large parks but not the small parks. So now we have two different classes created for our park labels. We could toggle them on and off independently and as we'll see in the next movie, we can actually modify other attributes independently as well. By splitting the labels into classes we can gain fine control over their display on the map.
- Creating a new map project
- Adding data sources to the project
- Managing data layers on the map
- Saving a project template
- Drawing new map features
- Querying and extracting features
- Creating geoprocessing models and packages
- Modifying the look and feel of the map through symbology options
- Adding map labels
- Working with 3D scenes
- Developing a map layout
- Sharing the map and data