SetThemeLineStyles()

Summary

Sets the line styles used to draw a theme.

Syntax

SetThemeLineStyles(string theme_name, array linestyles)

Argument Contents
theme_name The name of the theme
linestyles An array of line styles

Note

  • SetThemeLineStyles() assigns the first line style in the array to the Other class if it exists.

  • If there are fewer line styles in the array than classes in the theme, SetThemeLineStyles() reuses the line styles from the beginning of the array until all classes have a line style. If there is an Other class, it uses the first line style only once.

  • A null in the array indicates that the default line style for the layer is used.

Example

solid = LineStyle({{{1, -1, 0}}}),
dashed = LineStyle({{{1, -1, 0, 1, 2}}}),
ls_array = {solid, dashed}
SetThemeLineStyles("Traffic", ls_array)

Error Codes

Error Type Meaning
NotFound No theme exists with the specified name

See Also

Function Summary
GetThemeLineStyles() Gets the list of line styles that are used to draw a theme
SetThemeLineColors() Sets the line colors used to draw a theme
SetThemeLineWidths() Sets the line widths used to draw a theme
LineStyle() Creates a new line style
SetLineStyle() Sets the line style used to draw line features