Style line layers
In Layer style
, you can create custom visualizations in your scenes by applying smart mapping styles to your data. Choose styles that use attributes to apply continuous colors or individual colors to lines, or choose styles that apply a single color to all the lines.
2D Line
You can apply the 2D Line style when you want to visualize lines with a single color. You can show a network of transportation lines across a city, for example.
Follow the steps in the Style layers workflow.
For Color, click the color picker.
Do any of the following:
Under Pattern, click the pattern to apply to the line.
Under Marker, click a line marker or select <none>.
Under Marker placement, click begin, end, or begin-end to choose the marker placement.
Click Fill color
to see the fill color options:Choose a color in the color picker.
Create a custom color by the Hex, RGB, or HSV values.
Under Saved, you can apply saved colors. Click
or
to add or remove a color.Click Done to apply the settings and return to the previous pane.
The most recent fill colors are shown.
Click Fill transparency to set the transparency with the slider or by entering values.
Click Cancel to return to the previous pane without applying the color settings.
Click Done to apply the settings and return to the previous pane.
For Width, choose the width of the lines in pixels.
3D Path
Use the 3D Path style when you want to show lines with a single color in real-world measurements by attributes. For example, you can size water main lines across a city by the diameter of the pipes.
Follow the steps in the Style layers workflow.
For Profile, choose how to display the line paths and adjust the real-world line size.
The Profile setting has the following line types:
Tube
Displays lines as tubes, such as water pipes or utility lines; diameters are entered in the Diameter setting.
Wall
Displays lines as walls, such as walls or fences; vertical heights are entered in the Height setting.
Strip
Displays lines as strips, such as streets or railroad tracks; widths are entered in the Width setting.
Square
Displays lines as squares, such as tunnels or canals; heights are entered in the Height setting.
As you change the profile, the measurement type changes accordingly to Diameter, Height, or Width below the Color setting.
For Color, click the color picker.
Do any of the following:
Click Fill color
to see the fill color options:Choose a color in the color picker.
Create a custom color by the Hex, RGB, or HSV values.
Under Saved, you can apply saved colors. Click
or
to add or remove a color.Click Done to apply the settings and return to the previous pane.
The most recent fill colors are shown.
Click Fill transparency to set the transparency with the slider or by entering values.
Click Cancel to return to the previous pane without applying the color settings.
Click Done to apply the settings and return to the previous pane.
For the Diameter, Height, and Width options, set the line sizes. Click the drop-down menu and do any of the following steps:
Under Fixed size, click <Fixed size> to enter a uniform size. As you zoom in and out, click the Fit to view button
to adjust the lines to the appropriate size in the current view. Choose the measurement unit.Under Expression, create an expression to set the line sizes:
Click Create expression to open a window to create an Arcade expression.
Provide a title for the new expression at the top.
Create a custom expression in the editor.
After the expression is created, click Edit
to edit the expression.Choose the measurement unit.
Under Attributes, click an attribute from the list to set line sizes. Choose the measurement unit.
Note:
When an expression or attribute is selected under Choose the main attribute to visualize in the style gallery, the sizes are set to the values of the chosen expression or attribute. The drop-down menu is unavailable. You can still, however, modify the unit.
To enable the Diameter, Height, or Width drop-down menus, return to the style gallery and select <none> under Choose the main attribute to visualize.
2D Counts and Amounts
You can apply the 2D Counts and Amounts style to line data when you want to color lines based on numeric attribute values. You can show a transportation network of lines with continuous color based on traffic volumes, for example.
Follow the steps in the Style layers workflow.
The 2D Counts and Amounts pane appears with the Mapped Attribute box displaying the chosen expression or attribute.
Move the upper and lower slider handles to adjust the coloring based on the specified attribute.
See Counts and Amounts slider considerations for more information.
For Color, click the color picker.
Do any of the following:
Under Pattern, click the pattern to apply to the line.
Under Marker, click a line marker or select <none>.
Under Marker placement, click begin, end, or begin-end to choose the marker placement.
Click Fill color
to see the fill color options:Under Category, select the types of color ramps from which you want to choose.
Click Flip ramp colors
to flip the colors.Click Done to return to the previous pane.
Click Cancel to return to the previous pane without applying the color settings.
Click Done to apply the settings and return to the previous pane.
For Width, choose the width of the lines in pixels.
3D Counts and Amounts
Use the 3D Counts and Amounts style when you want to apply continuous colors to lines based on a numeric attribute and size them with another attribute. For example, you can size water main lines across a city based on a diameter attribute, while applying continuous colors to the pipes with a flow rate attribute.
Follow the steps in the Style layers workflow.
The 3D Counts and Amounts pane appears with the Mapped Attribute box displaying the chosen expression or attribute.
Move the upper and lower slider handles to adjust the coloring based on the specified attribute.
See Counts and Amounts slider considerations for more information.
For Profile, choose how to display the line paths and adjust the real-world line size.
The Profile setting has the following line types:
Tube
Displays lines as tubes, such as water pipes or utility lines; diameters are entered in the Diameter setting.
Wall
Displays lines as walls, such as walls or fences; vertical heights are entered in the Height setting.
Strip
Displays lines as strips, such as streets or railroad tracks; widths are entered in the Width setting.
Square
Displays lines as squares, such as tunnels or canals; heights are entered in the Height setting.
As you change the profile, the measurement type changes accordingly to Diameter, Height, or Width below the Color setting.
For Color, click the color picker.
Do any of the following:
Click Fill color
to see the fill color options:Under Category, select the types of color ramps from which you want to choose.
Click Flip ramp colors
to flip the colors.Click Done to return to the previous pane.
Click Cancel to return to the previous pane without applying the color settings.
Click Done to apply the settings and return to the previous pane.
For the Diameter, Height, and Width options, set the line sizes. Click the drop-down menu and do any of the following steps:
Under Fixed size, click <Fixed size> to enter a uniform size. As you zoom in and out, click the Fit to view button
to adjust the lines to the appropriate size in the current view. Choose the measurement unit.Under Expression, create an expression to set the line sizes:
Click Create expression to open a window to create an Arcade expression.
Provide a title for the new expression at the top.
Create a custom expression in the editor.
After the expression is created, click Edit
to edit the expression.Choose the measurement unit.
Under Attributes, click an attribute from the list to set the size of the size of the lines. Choose the measurement unit.
2D Types
You can apply the 2D Types style to line data to color lines by type based on either text or numeric attributes. You can show a transportation network of lines across a city by type, such as road, rail, bus, or underground.
Follow the steps in the Style layers workflow.
The 2D Types pane appears with the Mapped Attribute box displaying the chosen expression or attribute.
Modify the Attribute Values list.
The most common attribute values are listed. The remaining attribute values are automatically grouped into the Other section. By default, the attribute values are listed in descending order by the number of features, which is listed next to each attribute value. The total number of features is displayed at the top of the list.
Click an attribute value to modify.
Do any of the following:
Change the symbology.
Drag the attribute value to change the order in the list and in the legend.
Rename an attribute value by selecting it and clicking the name.
Click Select all at the top of the list to modify all values.
To return to modifying an individual value, click a value or click Select one at the top of the list.
Modify attribute values in the Other section.
Do any of the following:
Change the symbology.
Drag individual attribute values in and out of the main list
Click Select all to drag all values.
Click the show
or hide
buttons to show or hide features that are in the Other section. By default, these attribute features are hidden. Features that are hidden and dragged to the main list become visible in the scene and in the legend.
Tip:
Ideally, your layer should show fewer than 10 values; more than 10 are difficult for users to distinguish.
For Color, click the color picker.
Do any of the following:
Under Pattern, click the pattern to apply to the line.
Under Marker, click a line marker or select <none>.
Under Marker placement, click begin, end, or begin-end to choose the marker placement.
Click Fill color
to see the fill color options:Choose a color in the color picker.
Create a custom color by the Hex, RGB, or HSV values.
Under Saved, you can apply saved colors. Click
or
to add or remove a color.Click Done to return to the previous pane.
The most recent fill colors are shown.
Click Fill transparency to set the transparency with the slider or by entering values.
Click Cancel to return to the previous pane without applying the color settings.
Click Done to apply the settings and return to the previous pane.
To apply a color ramp to all the attribute values, click Select all at the top of the Attribute Values list.
The solid color picker becomes a color ramp.
Click Fill color
to see the fill color options:Under Category, select the types of color ramps from which you want to choose.
Click Flip ramp colors
to flip the colors.Click Done to return to the previous pane.
Click Solid color to change the ramp to a solid color and display the fill options.
For Width, choose the width of the lines in pixels.
3D Types
Use the 3D Types style when you want to apply individual colors to lines based on a text or numeric attribute and size them with another attribute. For example, you can size water main lines across a city based on a diameter attribute, while applying individual colors to the pipes with a material type attribute.
Follow the steps in the Style layers workflow.
The 3D Types pane appears with the Mapped Attribute box displaying the chosen expression or attribute.
Modify the Attribute Values list.
The most common attribute values are listed. The remaining attribute values are automatically grouped into the Other section. By default, the attribute values are listed in descending order by the number of features, which is listed next to each attribute. The total number of features is displayed at the top of the list.
Click an attribute value to modify.
Do any of the following:
Change the symbology.
Drag the attribute value to change the order in the list and in the legend.
Rename an attribute value by selecting it and clicking the name.
Click Select all at the top of the list to modify all values.
To return to modifying an individual value, click a value or click Select one at the top of the list.
Modify attribute values in the Other section.
Do any of the following:
Change the symbology.
Drag individual attribute values in and out of the main list
Click Select all to drag all values.
Click the show
or hide
buttons to show or hide features that are in the Other section. By default, these attribute features are hidden. Features that are hidden and dragged to the main list become visible in the scene and in the legend.
Tip:
Ideally, your layer should show fewer than 10 values; more than 10 are difficult for users to distinguish.
For Color, click the color picker.
Do any of the following:
Click Fill color
to see the fill color options:Choose a color in the color picker.
Create a custom color by the Hex, RGB, or HSV values.
Under Saved, you can apply saved colors. Click
or
to add or remove a color.
The most recent fill colors are shown.
Click Fill transparency to set the transparency with the slider or by entering values.
Click Cancel to return to the previous pane without applying the color settings.
Click Done to apply the settings and return to the previous pane.
To apply a color ramp to all the attribute values, click Select all at the top of the Attribute Values list.
The solid color picker becomes a color ramp.
Click Fill color
to see the fill color options:Under Category, select the types of color ramps from which you want to choose.
Click Flip ramp colors
to flip the colors.Click Done to return to the previous pane.
Click Solid color to change the ramp to a solid color and display the fill options.
Set the line sizes in the table.
As you change the Profile setting under All lines, the measurement type changes accordingly to the Diameter, Height, or Width options.
As you zoom in and out, you can click the Fit to view button
to adjust the lines to the appropriate size in the current view.When an expression or attribute is selected in the Diameter, Height, or Width options under All lines, you can no longer individually set the line sizes in the table. Change the setting to <None> to set the sizes individually.
Under All lines, choose how to display the line paths in the Profile setting and adjust the real-world line size.
The Profile setting has the following line types:
Tube
Displays lines as tubes, such as water pipes or utility lines; diameters are entered in the Diameter setting.
Wall
Displays lines as walls, such as walls or fences; vertical heights are entered in the Height setting.
Strip
Displays lines as strips, such as streets or railroad tracks; widths are entered in the Width setting.
Square
Displays lines as squares, such as tunnels or canals; heights are entered in the Height setting.
Under All lines, set the line sizes for the Diameter, Height, or Width options. Click the drop-down menu and do any of the following steps:
Under No attribute, click <None> to enter a uniform size.
Under Expression, create an expression to set the size of lines:
Click Create expression to open a window to create an Arcade expression.
Provide a title for the new expression at the top.
Create a custom expression in the editor.
After the expression is created, click Edit
to edit the expression.Choose the measurement unit.
Under Attributes, click an attribute from the list to set the size of the lines. Choose the measurement unit.