Skip to content
MangoMap Help Centre
Esc
↑↓navigate↵open⌘Jpreview
On this page

How layer styling works in MangoMap

How the Style tab works for point, line, and polygon layers: one colour, colour by a field, geometry-only options, and why raster layers only get opacity.

This page explains the Style tab for point, line, and polygon layers: what every geometry shares, what only one geometry has, and why raster layers offer so little. Read it before the how-to guides.

The Style tab differs by geometry

Every vector layer has a Style tab in the layer settings panel. The main idea is the same for every geometry: a colour driver decides whether all features share one colour or take their colour from a field. The controls around it depend on the geometry:

Point Line Polygon
Top-level picker Marker type (Circle, Icon, Custom Icon, Heatmap) None: every line is a stroke None: every polygon is a fill and a stroke
Colour driver Colour markers by Colour lines by Fill polygons by
One colour for every feature Single colour Uniform colour Uniform colour
Per category or class break Colour, marker type, size, outline Colour, line pattern Colour, fill pattern
Same for the whole layer Opacity, size Width, opacity, cap, join, casing Fill opacity, outline
Only on this geometry Size by a field, zoom stops, heatmap, custom icons Casing, cap, and join Fill patterns

Only points have a top-level picker. It chooses a regular symbol (Circle, Icon, or Custom Icon) or a Heatmap. Lines and polygons go straight to the colour driver.

Line width is one value for the whole layer. You cannot set it from a field.

The Style section of one layer of each geometry, each with one colour for every feature:

Style section of the Places — Uniform layer with Marker type set to Circle and its preview, Colour markers by set to Single colour, the orange fill colour swatch, the outline colour swatch and outline width slider at 1.5 px, Size markers by set to Uniform size, the size slider at 5 px with the Vary size by zoom level button, and the Save button
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
Style section of the Buildings — Uniform layer with Fill polygons by set to Uniform colour, a brown fill swatch, the brush icon and the fill pattern dropdown set to Solid, Stroke set to Solid with a white stroke colour swatch and the stroke width slider at 0.5 px, and the Save button

The colour driver: one colour or by field

The colour driver works the same way on every geometry. It offers these kinds of choice:

  • One colour for every feature. Single colour on points, Uniform colour on lines and polygons. Use it when the layer shows one kind of thing, such as a road network, a set of building outlines, or a set of offices.
  • A text field. Every distinct value gets its own colour from the chosen palette. This is the “category” behaviour. Roads coloured by road class, countries coloured by income group, and airports coloured by airport type all work this way.
  • A numeric field. The Style as select decides what happens. Pick a class count and MangoMap splits the values into class breaks with a graduated colour ramp. Pick Continuous for a smooth gradient. Both are the “quantity” behaviour. Countries coloured by population, buildings coloured by height, and roads coloured by length all work this way. Pick Categories and each distinct number gets its own colour, the same as a text field.
  • Colour by zoom (point layers with Circle markers only). Every marker shares one colour, which changes as the viewer zooms. See Styling that changes with zoom.

A text field is always styled as categories. A numeric field starts as 5 classes with Natural Breaks (Jenks). Change Style as to Categories when the numbers are codes rather than amounts: zone numbers, years, or a 1–5 rating. The controls below the colour driver change to match.

Follow your pick in the colour driver to see what it gives you:

What the colour driver doesFlowchart: no field gives one colour, Single colour or Uniform colour; Colour by zoom, on Circle markers only, gives one colour per zoom stop; a text field gives categories; a numeric field goes to Style as, where Categories gives categories, Continuous gives a smooth gradient, and 3 to 9 classes gives class breaks, starting at 5 classes with Natural Breaks (Jenks).COLOUR BY ZOOMNO FIELDA FIELDTEXTNUMBERCATEGORIESCONTINUOUS3–9 CLASSESOpen the colour driverWhat doyou pick?Text ornumber?Style as?One colour per zoom stopCircle markers onlyOne colourSingle or Uniform colourCategoriesone colour per valueContinuousa smooth gradientClass breaksstarts at 5 classes withNatural Breaks (Jenks)

Colour is not the only way to tell categories apart. Each category or class break can also have its own symbol: a marker type or icon on points, a line pattern on lines, and a fill pattern on polygons. See How to customise category and class break symbology.

Size: points only

Size shows magnitude on points only. Point layers have a second driver below the colour driver, Size markers by, with two kinds of choice:

  • Uniform size. Every marker draws at one size, set with the size slider. This is the default.
  • A numeric field. Each marker is sized by that field’s value, between a minimum and a maximum size across the data range. This makes a proportional-symbol or “bubble” map. The size is continuous only: there are no classes or classification method.

The size driver is separate from the colour driver, so you can use one field for colour and another for size. See How to size points by a number. For both at once, see How to colour and size points by two fields.

Lines and polygons have no size driver. A line layer has one width for every line. A polygon’s size is its shape on the map, so magnitude on a polygon layer is shown with colour.

On Circle markers, either kind of size can also change with zoom. See the next section.

Styling that changes with zoom

A point layer with Circle markers can change its marker size, its colour, or both as the viewer zooms. This is often called scale-dependent styling. Small, pale markers keep a country view readable. Larger, stronger markers stand out at street level. Line and polygon layers do not have this option.

Both features use zoom stops. A zoom stop pairs a zoom level with a value: a size, a size scale, or a colour. You set 2 to 6 stops between zoom 1 and zoom 22. Between two stops, the value changes gradually. Below the first stop, markers keep the first stop’s value. Above the last stop, they keep the last stop’s value.

  • Size. The Vary size by zoom level button next to the size control. With Uniform size, each stop holds a size in pixels. With a size field, each stop holds a scale that grows or shrinks the whole size range. See How to vary marker size by zoom level.
  • Colour. Colour by zoom in Colour markers by. Each stop holds a fill colour and an optional outline. Colour by zoom takes the place of field-based colour, so a layer can colour by zoom or by a field, not both. The stop outlines also replace the layer’s own outline, so a stop without one draws no outline. See How to change marker colour by zoom level.

Zoom stops change how a layer looks. The Visibility range decides whether the layer draws at all, and it works on every geometry. Use stops to keep a point layer readable at every zoom. Use the Visibility range to hide any layer where it does not belong. See How to set the zoom range a layer is visible at.

Zoom stops work on Circle markers only. Switching the marker type to Icon, Custom Icon, or Heatmap deletes them.

Heatmap: a marker type for points

Heatmap is one of the four Marker type options on point layers. Picking it replaces the individual points with a smoothed density gradient. The controls that appear are different from any of the other marker types:

  • Colour gradient: a predefined gradient ramp.
  • Weight by: Equal weight (every point counts the same) or a numeric field (some points contribute more density).
  • Radius and Intensity: control the spread and visual intensity.
  • Opacity: 0–100%.

Classification methods (numeric-field colouring)

When you pick a numeric field in the colour driver and use classes (not the continuous gradient), the classification method dropdown decides how MangoMap splits the data into class breaks. It works the same way on every geometry:

  • Equal Interval: classes of equal width across the data range.
  • Quantile: classes with about the same number of distinct values.
  • Natural Breaks (Jenks): break points fall at gaps in the distribution.
  • Head/Tails on points, Head/Tail Breaks on lines and polygons: classes that get wider from the lowest class to the highest.

The method changes which features go into each class, so the same data can give different maps. See Choosing a classification method for choropleth maps for how to choose, and Classification methods for by-quantity styling for what each method does.

Classes vs continuous gradient (numeric fields only)

Numeric-field colouring has two modes, on every geometry:

  • Classes. The default. The class-count choices (3 classes through 9 classes) split the range into that many class breaks. Every feature draws in the colour of its class. The legend shows one swatch per class.
  • Continuous gradient. Every value maps to a position on the colour ramp. The legend shows a smooth gradient instead of swatches. Use it when small differences across many values matter more than reading off classes.

Switch between them in the Style as select: pick Continuous or a class count.

The same population data in both modes, with the legend a viewer sees:

World Classification Lab with Population — Quantile shown as a viewer sees it: countries in five colours from pale yellow to dark red, and a legend of five swatches labelled >=140, >2494530, >6855713, >16296364, and >39309783
World Classification Lab with Population — Continuous Gradient shown as a viewer sees it: countries shaded smoothly from pale yellow to dark red, and a legend with one yellow-to-red gradient bar from 140 to 39,309,783, labelled pop_est

Saving in the Style tab

The Style tab is one of the few places in MangoMap where changes don’t save on their own. MangoMap keeps your changes in the panel until you click the save button:

  • Vector layers (point, line, polygon): the button reads Save.
  • Raster and WMS layers: the button reads Save Style.

Closing the panel or switching tabs without clicking the button discards every change since the last save. There’s no unsaved-changes warning.

A missed save is a common reason a style change does not show on the map. See My style change isn’t appearing on the map.

Why raster and WMS layers only expose opacity

When you select a raster or WMS layer in the layer panel, the Style tab shows only the Visibility range and an opacity slider. There are no colour or field controls.

This comes from the data, not a missing feature:

  • A raster is a grid of pixels with fixed colour values. There’s no per-feature attribute to drive colour from.
  • A WMS layer is drawn by the source server, so the styling decisions live there.

If you need different colours for a raster, reprocess it before upload (in QGIS or gdaldem). If you need different styling for a WMS, that change has to happen on the WMS provider’s server. See How to adjust raster or WMS layer opacity.

Common confusions

“I switched marker type and lost my outline or size settings.” Some controls only apply to specific marker types. Circle has fill, outline, and size. Icon has fill and size, with no outline. Custom Icon swaps the symbol entirely and has only an Opacity control. Switching to it sets the opacity to 100%. Heatmap has its own gradient, radius, and intensity controls. Switching marker types swaps the visible controls.

“Why doesn’t my line or polygon layer have a Marker type picker?” Marker types are point-only. A line is a stroke, and a polygon is a filled area with an outline. Neither has a marker.

“How do I tell categories apart without colour?” Give each category its own symbol: a line pattern on lines, a fill pattern on polygons, or a marker type or icon on points. See How to customise category and class break symbology.

“My ramp looks wrong for a numeric field.” The classification method, not the ramp, decides which features fall into which class. Try a different method (for example, switch from Equal Interval to Natural Breaks (Jenks)) before you change the colour scheme.

“My numeric field is a code, not an amount.” Set Style as to Categories. Each distinct number then gets its own colour, and the legend lists the values. Class breaks would group codes that have nothing in common, such as zone 4 and zone 5.

For every geometry:

Points only:

Lines only:

Polygons only: