You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -193,12 +193,14 @@ From the menu, we can select several categories of symbols. Let's select the `Go
193
193
194
194
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.
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.
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.
198
199
199
200
{#fig-symbolsize width="70%"}
200
201
:::
201
202
203
+
202
204
### Adjust style based on attribute
203
205
204
206
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
218
220
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'
219
221
:::
220
222
221
-
### Adjust layer transparency based on attribute
223
+
### filter layer based on attribute
222
224
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.
224
226
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
+
{#fig-filter-selection fig-align="center"}
230
230
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!
234
234
235
-
{#fig-transparency width="90%" fig-align="center"}
235
+
{#fig-filter-on fig-align="center"}
236
236
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.
238
238
239
-
{#fig-allsymbols width="90%" fig-align="center"}
0 commit comments