eurostat-map 4.10.12 → 4.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eurostat-map",
3
- "version": "4.10.12",
3
+ "version": "4.11.0",
4
4
  "description": "Reusable library to quickly create and customise web maps showing Eurostat data directly retrieved from Eurostat database.",
5
5
  "keywords": [
6
6
  "eurostat",
@@ -84,6 +84,14 @@ export interface LabelsConfig {
84
84
  */
85
85
  scaleOnZoom?: boolean
86
86
 
87
+ /**
88
+ * Nudge geographic labels (country names/codes/seas) apart using a force-collision
89
+ * simulation so neighbouring labels don't overlap. Does not affect statistical value
90
+ * labels, which are positioned at region centroids.
91
+ * @default false
92
+ */
93
+ preventOverlap?: boolean
94
+
87
95
  /**
88
96
  * Custom formatter function for statistical value labels.
89
97
  * @example (value) => value.toFixed(1) + '%'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eurostat-map",
3
- "version": "4.10.12",
3
+ "version": "4.11.0",
4
4
  "description": "Reusable library to quickly create and customise web maps showing Eurostat data directly retrieved from Eurostat database.",
5
5
  "keywords": [
6
6
  "cartography",