OptionallabelsArray of label objects with text and coordinates. Use eurostatmap.getDefaultLabels() to get predefined geographic labels.
OptionalvaluesShow statistical values as labels on regions.
OptionalhalosApply halo/shadow effect around labels for better readability.
OptionalshadowsLegacy alias for halos.
OptionalbackgroundsApply solid background rectangles behind labels. Takes precedence over halos when both are set.
OptionalbackgroundFill color for label background rectangles (CSS color string). Only applies when backgrounds is true.
OptionalstatFill/stroke color for label text - applies to statistical value labels and to geographic labels (country names, country codes, seas) alike.
OptionalbackgroundPadding between statistical label text and its background edge, in pixels. A number applies equal padding on both axes; an object controls each axis.
OptionalbackgroundBackground shape used for statistical value labels.
OptionalbackgroundCorner radius in pixels when backgroundShape is 'rect'.
OptionalscaleScale labels when zooming in/out.
OptionalpreventNudge geographic labels (country names/codes/seas) apart using a force-collision simulation so neighbouring labels don't overlap. Does not affect statistical value labels, which are positioned at region centroids.
OptionalvaluesCustom formatter function for statistical value labels.
OptionalstatFilter function to show/hide statistical value labels for specific regions.
GeoJSON feature object
Map instance
true to show label, false to hide
OptionalstatOverride default centroid positions for statistical value labels. Keys are region IDs (e.g., 'DE', 'FR01'), values are {x, y} coordinates.
OptionalprocessFunction to adjust calculated centroids for value labels.
GeoJSON feature object
Calculated centroid [x, y]
Adjusted centroid [x, y]
Configuration for map labels (country names, statistical values, etc.)