Parallel Strokes: Several Colored Lines Side by Side on One Line
Feature availability
- Free
- Lite
- Pro
- Lite Pro
- Pro Business
Parallel is a line style that draws one line as several colored strokes side by side. Use it when one route carries more than one thing: a gas main next to a water main on the same easement, the two edges of a road or a bike lane beside it, twin rail tracks, or two cables in one trench.

By default every stroke becomes a line of its own when you finish drawing, so each cable or lane can carry its own name and data (see "Separate lines" below). If the strokes are only a look, clear Separate lines and the line stays a single shape whose strokes never drift apart.
Parallel is one of the Pro line styles. On a free account, drawing with it uses a line style credit.
Apply Parallel to a line
- Select the line, or pick a line tool (Line, Pen or Draw) to set the style for the next line you draw.
- Click the line type picker (the swatch showing the current line style).
- Choose the Parallel strokes row (three colored lines, below the dashed styles), or click the gear on that row.
- The strokes editor opens under the picker. The line starts with three strokes, red, green and blue, each at 90% opacity. Raise a stroke to 100% in its color picker if you want it solid.

Every change in the strokes editor shows on the map straight away. Lines you draw next keep the same strokes.
Edit the strokes

In the strokes editor you can:
- Recolor a stroke: click its color square and pick a color. The color picker opens under the square. Its opacity slider sets that stroke's opacity on top of the line's, so one cable can be fainter than the others.
- Reorder: use the up and down arrows. The first stroke is on the left side of the line, looking from its start.
- Remove a stroke: click the ×. A line keeps at least one stroke.
- Add stroke: up to 8 strokes. At 8 the editor shows "Up to 8 strokes".
- Width: leave it on Auto to use the line width, or type a width for that stroke only. Strokes sit edge to edge at their own widths, so a wide stroke never covers its neighbor.
- Gap: the space between strokes (2 by default). Pick its unit beside it:
- px (pixels, up to 20): the same space at every zoom level. Best for visualizations, where the bundle should look the same however far you zoom.
- m, km, ft, yd or mi: a distance on the ground. The strokes sit that far apart on the map, so they spread as you zoom in, like lanes on a road or conduits a set distance apart.
- Funnel into ends (off by default): the strokes close in to the line's two end points, useful when the line runs between two boxes or vaults. Taper length sets how far from each end they start to close in, from 1 to 60 pixels (18 by default).
- Separate lines (on by default): draw each stroke as a line of its own. See below.
To reopen the editor later, select the line and click the small gear on the line type swatch.
The line width sets the width of every stroke that has no width of its own, and the Outline draws one casing around the whole bundle.
Separate lines
Separate lines is ticked by default, because the strokes are usually separate things: three cables in one trench that each need their own name, data or legend entry, or lanes of a road that split off at different points. Clear it when you only want the look.
- While drawing: every line you draw with Parallel shows the strokes as you draw. When you finish, it becomes one solid line per stroke, in a new folder called Parallel lines (or the line's title).
- On a line you already drew: select it, click the gear on its line type swatch and tick Separate lines. The line is replaced by one line per stroke and the editor closes.
- Undo: one Undo brings the single line back (or removes the new lines, if you just drew them).
Each separate line is a real line with its own points, placed exactly where its stroke was drawn. A gap in pixels is fixed on the ground at the zoom you drew at, so the lines spread as you zoom in and close up as you zoom out, like any lines. A gap in a ground unit is that distance. Because the points are real, a line stays put when you change its style (to an animated line, say), and it exports to GeoJSON, KML and GPX where you see it.
Click a line to select just that line. To move one line or break it off, drag it or its points. The lines remember which set they came from, and that is saved with the map, so lines you drew yourself never join a set even when they happen to line up with one. Delete one line of a set and the others still work as a set.
Continue a set: with Parallel strokes picked as the line type, start drawing from the end of any line of the set with the Line, Connected Line or Draw tool. The preview shows every line growing, and when you finish, each line of the set is extended beside the others, turning the corners with you. One Undo takes the extension back from all of them. Lines that funnel into one end point can only be continued one at a time.
Continue one line: pick another line type (Solid, for example) and start drawing from the end of the line you want. The snap goes to the end nearest the pointer, and only that line is extended.
Separate lines are plain lines, so the strokes editor, Gap and Add stroke no longer apply to them.
Switch to another style and back
If you switch a Parallel line to Solid or Dashed, its strokes are kept but not drawn. Switch it back to Parallel and the same colors return.
Shapes
Polygon, rectangle and circle borders can be Parallel too. On a closed shape the strokes run all the way around and never funnel. The fill stays inside the border.
Legends
Add to legend from a Parallel line shows the same colors in the legend swatch, and they are kept when the map is saved.
Exports
Images, prints and embedded maps show the strokes exactly as in the editor. KML and GPX have no way to describe several strokes on one line, so they export a single Parallel line in the first stroke's color. Separate lines export as normal lines, each in its own color and at its own position, in GeoJSON, KML and GPX alike.
Developers and Scribble AI
The style keys are lineType: 'parallel', strokes (a list of { color, width, opacity }), strokeGap, strokeGapUnit ('m', 'km', 'ft', 'yd', 'mi' or 'nmi'; leave it out for pixels) and strokeTaper. Separate lines are plain lines with their own points. For example:
overlay.setStyle({ lineType: 'parallel', strokes: [{ color: '#FFD400' }, { color: '#1E88E5' }, { color: '#43A047' }] })
You can also ask Scribble: "make this line yellow, blue and green side by side", "draw the next lines as separate lines" or "split this line into separate lines".
See also
- The article on kite and block arrow line types
- The article on adding an outline to lines and shapes
- The article on animated flow lines
Last updated