Skip to main content

Polygon Styling

Control how GeoJSON polygon layers are displayed — fill colour, classification, extrusion (3D height), stroke, and labels.

note

Classification, extrusion, stroke, and label controls appear when the layer's style Mode is set to Advanced. The default Standard mode shows a simplified set of fill, outline, and stroke-width controls only.

Fill colour

Fill colour section of the polygon Style Editor showing the Manual, From dataset, and Gradient mode selector and the fill opacity slider

Three colouring modes (same as point markers):

ModeDescription
ManualSingle colour for all polygons
From datasetMap a string field to colours per category
GradientMap a numeric field to a colour ramp

Fill opacity slider — 0% (fully transparent) to 100% (fully opaque).

Classification

Classification section of the polygon Style Editor showing the Apply to buildings toggle

Classification controls whether polygon styling is applied only to the terrain surface or also to 3D buildings and other classified scene geometry.

OptionDescription
Apply to buildingsWhen enabled, polygon colour and opacity can also appear on buildings that intersect the polygon area. This is on by default

Turn Apply to buildings off when you want polygons to stay on the ground and avoid tinting nearby 3D buildings.

Extrusion (3D height)

Extrusion section of the polygon Style Editor showing the None, Fixed height, and From dataset height mode selector

Extrude polygons upward to create 3D shapes.

ModeDescription
NonePolygons are flat on the ground
Fixed heightAll polygons extruded to the same height (0–2000 m)
From datasetHeight driven by a numeric attribute. Set min/max height range, optional overrides, and base height offset
tip

Extrude building footprints by their height attribute to create a quick 3D city model.

Stroke

Stroke (Outline) section of the polygon Style Editor showing the enable toggle, colour, opacity, width, style, and dash length controls

  • Enable/disable toggle
  • Colour — stroke colour picker
  • Opacity — 0–100%
  • Width — stroke thickness
  • Style — solid, dashed, or dotted
  • Dash length — controls dash spacing (when dashed style is selected)

Labels

Labels section of the polygon Style Editor showing the enable toggle, attribute field selector, and font size input

  • Enable/disable toggle
  • Field — which attribute to display as the label
  • Font size — text size

Performance with large polygon datasets

When a GeoJSON layer contains more than 3,000 polygon and line features combined, the platform automatically switches to a batched high-performance renderer. You do not need to do anything — the switch is transparent.

  • Clicking features, toggling visibility, and all styling options continue to work as normal
  • Changing the opacity slider on a very large layer may take a moment to apply
  • Scenario snapshots capture and restore batched layers correctly

See Performance with large datasets in the Layers Overview for full details.