Define a fill color (Fill color) for the color of the line, and a line width (Width). Set the distribution of dashes and spacing, by entering the number of pixels that will be filled with color and the number of pixels for spacing between the dashes (Pattern). This example uses 30 pixels with color, then 10 pixels with no color, 30 pixels with color, and so on. Experiment with different values until you’re satisfied.
Example, legend
Example, in map