---
title: "How to set a uniform line style"
description: "Give every line on a layer the same colour, width, and pattern using the Uniform colour option on the Style tab."
sidebar:
  label: "Set a uniform line style"
---

A uniform line style gives every feature on a line layer the same colour, width, and pattern. Open the layer's `Style` tab, leave `Colour lines by` on `Uniform colour`, pick a colour and a width, and (optionally) adjust line pattern, cap, join, and casing in `More line settings`. Click `Save` to apply.

**[See it on an example map](https://mangomap-staging.com/examples-staging/maps/zlnhacsa/singapore-style-lab)**

Open the Singapore Style Lab. `Roads — Uniform` is on when the map opens. Every road is one blue line of the same width.

## Before you start

- The layer must be a line layer. For points and polygons, see [How to set a uniform style on a point layer](/docs/styling-layers/set-a-uniform-point-style) and [How to set a uniform style on a polygon layer](/docs/styling-layers/set-a-uniform-polygon-style).
- You need edit access to the map.
- Decide whether you want a casing (a wider contrasting line drawn behind the main line). Use casing for major roads on a busy basemap. Skip it for minor or muted lines.

## Open the Style tab

In the layer panel, select your line layer. Click the `Style` tab.

## Leave the colour driver on Uniform colour

`Colour lines by` is the first dropdown. Default is `Uniform colour` — leave it there for a uniform style. The colour, width, and `More line settings` controls are below it:

<img src="/_assets/styling-layers/set-a-uniform-line-style--style.png" alt="Style section of the Roads — Uniform layer with Colour lines by set to Uniform colour, a blue colour swatch, the line width slider at 2 px, More line settings closed, and the Save button" width="1600" height="960" />

Picking a field instead turns the layer into a category- or quantity-driven style — see [How to style features by category](/docs/styling-layers/style-by-category) or [How to style features by quantity](/docs/styling-layers/style-by-quantity).

## Pick a line colour

Click the colour swatch. Pick a hex value or a preset chip. The colour applies to every line on the layer.

To make the lines transparent, lower the transparency in the same colour picker. With `Uniform colour` there is no separate opacity slider.

## Set the line width

Drag the line width slider, or type a value. The range is 0.5 to 20 px; a new layer is 2 px. The width is one value for the whole layer, and it works the same when you colour lines by a field. See [How to set line width and opacity](/docs/styling-layers/set-line-width-and-opacity).

## (Optional) Open More line settings

Expand the `More line settings` collapsible for additional controls:

- **`Line pattern`** — `Solid`, `Dashed`, or `Dotted`. Solid is the default.
- **`Line cap`** — `Butt`, `Round`, or `Square`. Controls how line endpoints are drawn.
- **`Line join`** — `Bevel`, `Round`, or `Miter`. Controls how line corners are drawn.
- **Casing controls** — a wider line drawn behind the main line, useful for route-style maps with a dark casing and a lighter centre. See [How to style line patterns and casing](/docs/styling-layers/style-line-patterns) for how to set casing.

## Save

Click `Save` at the bottom of the panel. The map redraws with the new style.

## Related

- [Line layer style controls](/docs/styling-layers/line-style-reference) — the canonical reference.
- [How to set line width and opacity](/docs/styling-layers/set-line-width-and-opacity) — width and opacity for every line style.
- [How to style line patterns and casing](/docs/styling-layers/style-line-patterns) — for casing recipes and pattern combinations.
- [How to style features by category](/docs/styling-layers/style-by-category) — for one colour per text-field value.
- [How to style features by quantity](/docs/styling-layers/style-by-quantity) — for graduated colour by numeric field.
- [How to set the zoom range a layer is visible at](/docs/styling-layers/set-layer-zoom-visibility)
- [How layer styling works in MangoMap](/docs/styling-layers/concepts-layer-styling)
