Map Controls3 min readVisual Legend

Dynamic Map Legend

How to read the dynamic stacked legend, color gradient bars, and physical unit indicators.

Overview & Context

The ClimateHub stacked legend dynamically reflects the active dataset, displaying color bars, unit labels (°C, mm, index values), and min/max gradient extremes.

Step-by-Step Instructions

Step 1

Locate the Floating Legend & Visual Anatomy

The dynamic legend floats in the bottom-left corner of the map canvas within a sleek, frosted dark container. It provides immediate quantitative reference for the active raster layer without obstructing map navigation:

  • Variable Identifier & Icon: Displays the active parameter alongside its physical unit icon (e.g. 🌡° ERA5 Land Average temperature)
  • Boundary Limits (MIN & MAX): Clear text anchors indicating the lower (MIN) and upper (MAX) extremes of the active data range
  • Dynamic Color Scale Bar: A central horizontal color ramp mapping geographic pixel colors directly to numerical climate values
  • Unobtrusive Canvas Placement: Positioned in the lower-left margin, remaining accessible across all zoom levels and pan movements
ActionObserve the floating legend widget in the bottom-left corner of the map.
Dynamic Stacked Legend for ERA5 Land Average temperature displaying default continuous cool-to-warm gradient and boundary limits.
Enlarge
Dynamic Stacked Legend for ERA5 Land Average temperature displaying default continuous cool-to-warm gradient and boundary limits.
Step 2

Read Scale Extremes & Gradient Progression

The legend translates color intensities into relative or quantitative physical values, progressing continuously or discretely from left to right:

  • MIN Extreme (Left Anchor): Corresponds to the lowest data values in the active raster field (e.g. coldest temperatures, lowest precipitation rates, or negative anomaly departures)
  • MAX Extreme (Right Anchor): Corresponds to the peak values in the active raster field (e.g. highest temperatures, heaviest rainfall, or positive anomaly spikes)
  • Intermediate Values: Pixel shades falling between MIN and MAX denote proportionate climate measurements across the geographic surface
  • Anomaly Zero-Centering: For anomaly and departure datasets, the scale centers normal baseline conditions near the middle, with negative cooling on the left and positive warming on the right
ActionCompare map raster colors against the MIN and MAX anchors on the color bar.
Tip: Because climate variables vary across seasons and regions, the legend dynamically scales to represent the active data layer’s full dynamic range.
Step 3

Live Palette Synchronization & Colormap Styles

When you customize the Color Palette in Layer Controls (under "Show Controls" → "Color Palette"), the floating legend instantly updates its color bar in real time. The legend seamlessly supports continuous gradients, multi-spectral classifications, and stepped diverging palettes:

  • Continuous Red → Yellow → Green (RdYlGn): Smooth, blended continuous transition from Red (MIN) through intermediate Yellow to Green (MAX), ideal for environmental stress, vegetation indicators, or continuous warmth tracking
  • Classified Multi-Spectral Palette: High-contrast discrete bands (cyan, magenta, blue, white, green, yellow, orange, red, and purple) dividing data into distinct categorical intervals for rapid threshold identification and micro-climate demarcation
  • Stepped Diverging Palette (Cool-to-Warm / Blue-White-Red): 11 discrete intervals featuring cold blues at MIN, neutral white in the center, and hot reds at MAX, perfect for temperature zones and anomaly boundaries without ambiguous color bleeding
ActionOpen Layer Controls, choose an alternative color palette, and observe the legend update instantly.
Continuous Red → Yellow → Green: Smooth blended gradient transitioning from MIN (red) through yellow to MAX (green).
Enlarge
1/3
Continuous Red → Yellow → Green: Smooth blended gradient transitioning from MIN (red) through yellow to MAX (green).
Classified Multi-Band: High-contrast discrete spectral steps separating temperature values into distinct intervals.
Enlarge
2/3
Classified Multi-Band: High-contrast discrete spectral steps separating temperature values into distinct intervals.
Stepped Diverging (Cool-Warm): 11 discrete intervals spanning cold blues (MIN) to neutral white and deep reds (MAX).
Enlarge
3/3
Stepped Diverging (Cool-Warm): 11 discrete intervals spanning cold blues (MIN) to neutral white and deep reds (MAX).
Tip: Choosing the right colormap enhances scientific legibility — continuous gradients highlight gradual spatial trends, while stepped palettes make specific regional threshold crossings immediately obvious.
Result & Interpretation

Accurate Value Interpretation & Palette Agility

You can instantly decode map colors into physical climate insights, knowing the legend will continuously stay synchronized with your active layer and chosen color palette.

Dynamic Map Legend synchronized with active layer parameters and user-selected colormap.
Enlarge
Dynamic Map Legend synchronized with active layer parameters and user-selected colormap.

What You Should See:

  • Accurate visual conversion from map pixels to physical climate values
  • Clear orientation with MIN and MAX scale anchors
  • Real-time synchronization across continuous, multi-band, and stepped color palettes
  • Consistent variable identification and physical unit tracking on the map canvas

Ready to test this in ClimateHub?

Launch the Map Explorer to test this workflow with live global ERA5-Land climate data.

Launch Map Explorer