Skip to content

Commit 6f49555

Browse files
authored
Merge pull request #47 from UCSB-Library-Research-Data-Services/osm-roads
Osm roads
2 parents 3a510f9 + 8cb0275 commit 6f49555

File tree

6 files changed

+16
-17
lines changed

6 files changed

+16
-17
lines changed

01_make_map.qmd

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ With that introduction, you now have the opportunity to start creating your own
116116
From the **Layers** panel, click on the add layer button. Search `My organization` for **OSM_UCSB_Roads**. There should be only one result.
117117

118118

119-
![Adding a layer](images/Workshop1/Step1/add-a-layer.gif){#fig-addinglayer width="90%"}
119+
![Adding a layer](images/Workshop1/Step1/add-a-layer.gif){#fig-addinglayer}
120120

121121
::: {.callout-tip collapse="true"}
122122
## Challenge: Repeat the above steps to add the feature layer `bike_racks_ucsb` to your map.
@@ -156,7 +156,7 @@ For our map, the recommended order from top to bottom should be:
156156

157157
To reorder the layers, click and hold on a layer name in the Layers panel, drag it to the desired position, and release.
158158

159-
![Reorder feature layers](images/Workshop1/Step1/reorder-layers.gif){#fig-reorderlayers width="90%" fig-align="center"}
159+
![Reorder feature layers](images/Workshop1/Step1/reorder-layers.gif){#fig-reorderlayers fig-align="center"}
160160

161161
### Accessing the underlying data
162162

@@ -193,12 +193,14 @@ From the menu, we can select several categories of symbols. Let's select the `Go
193193

194194
To change the size of the symbol, we can use the `Size` slider to reduce it to a more appropriate size. First, select **Adjust size automatically** to ensure the symbols to scale as you zoom in and out of the map. Then, you can use a custom size by moving the slider or entering a value; in our case, we selected 5.68 px.
195195

196-
::: {.callout-warning collapse="true" title="Size slider quirk"}
197-
In ArcGIS Online, every time you select the **Adjust size automatically** option, it will reset the size slider to a default value. So make sure to select your desired size **after** enabling that option.
196+
197+
::: {.callout-warning collapse="false" title="Size slider quirk"}
198+
In ArcGIS Online, every time you select the **Adjust size automatically** option, it will reset the size slider to a default value. So make sure to select your desired size **after** enabling that option. Also note that the size you choose is function of the current scale/zoom you are using on the map when you set this value for the first time.
198199

199200
![Symbol size settings with adjust size automatically option](images/Workshop1/Step2/symbology-point-size.png){#fig-symbolsize width="70%"}
200201
:::
201202

203+
202204
### Adjust style based on attribute
203205

204206
Now, what if we wanted to adjust the symbology based on an attribute? Let's say we wanted to fill each building with a different color based on its use (academic, residential, administrative, etc.). We can do that by changing the style of the `UCSB Campus Buildings` layer.
@@ -218,25 +220,22 @@ As a result, you will see that the buildings are now filled with different color
218220
These field names are pretty cryptic. This is often the case with public data. If you want to learn more about this data, navigate over to the feature layer'
219221
:::
220222

221-
### Adjust layer transparency based on attribute
223+
### filter layer based on attribute
222224

223-
Finally, let's say we wanted to adjust the transparency of cycleways based on the max speed allowed on each bike path. We can do that by changing the style of the `osm_cycleways` layer.
225+
Finally, we are interested in displaying bike paths from the `OSM_UCSB_Roads` layer that also contains roads, pathways and other features. We can filter the categories we are interested in using the filter function on the right sidebar.
224226

225-
- Click on the layer `osm_cycleways` to open its properties panel.
226-
- On the panel `Symbology`, click on `Edit layer style`.
227-
- Look for the `② Pick a style` option and select `Style options`.
228-
- Open the panel `Transparency by attribute` and switch the toggle to set the transparency based on attribute values.
229-
- Select the attribute `maxspeed`.
227+
- Click on the layer `OSM_UCSB_Roads` to select it.
228+
- Click on the `Filter` button on the right sidebar (third from top).
229+
![Adding a filter to the road layer](images/Workshop1/Step2/symbology-filter-road.png){#fig-filter-selection fig-align="center"}
230230

231-
As a result, you will see that the bike paths are now more transparent for higher speed limits and less transparent for lower speed limits.
232-
233-
To increase the visibility of the bike paths, we can increase the width of the lines by editing the `Width` slider on the `Symbol style` panel. We selected 3.75 px for this example.
231+
- Click `Add new`
232+
- In the condition box, choose the `highway` field and the `includes` and select `cycleway`
233+
- Don't forget to save with the button at the bottom!
234234

235-
![Setting transparency by maxspeed attribute](images/Workshop1/Step2/symbology-transparency-by-attribute.png){#fig-transparency width="90%" fig-align="center"}
235+
![Filtering out the bike paths](images/Workshop1/Step2/symbology-road-conditional.png){#fig-filter-on fig-align="center"}
236236

237-
Here is the final result of our symbology adjustments:
237+
As a result, you will see that the bike paths are now more transparent for higher speed limits and less transparent for lower speed limits.
238238

239-
![Map with all symbology adjustments applied](images/Workshop1/Step2/symbology-final-result.png){#fig-allsymbols width="90%" fig-align="center"}
240239

241240
### Select a better basemap
242241

-15.8 MB
Loading
-1.62 MB
Loading
3.42 MB
Loading
3.69 MB
Loading
989 KB
Loading

0 commit comments

Comments
 (0)