eurostat-map 4.9.4 → 4.10.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.9.4",
3
+ "version": "4.10.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",
@@ -28,6 +28,15 @@ export interface ChoroplethConfig extends MapConfig {
28
28
  /** No-data styling. */
29
29
  noDataFillStyle?: string
30
30
 
31
+ /** Fill style for extra categorical values mixed into this choropleth's classification,
32
+ * keyed by the raw data value (e.g. `{ '-': '#cccccc' }` for regions whose value is the
33
+ * string '-'). Matching regions get their own legend/tooltip entry instead of being
34
+ * classified numerically or treated as generic "no data". */
35
+ categoryFillStyle?: { [rawValue: string]: string }
36
+ /** Legend/tooltip text for each extra category, keyed by the same raw data value as
37
+ * `categoryFillStyle`. Ex.: `{ '-': 'No railway lines' }` */
38
+ categoryText?: { [rawValue: string]: string }
39
+
31
40
  /** Value transformation (for continuous schemes). */
32
41
  valueTransform?: (x: number) => number
33
42
  valueUntransform?: (x: number) => number
@@ -45,4 +45,10 @@ export interface ChoroplethMap extends MapInstance {
45
45
 
46
46
  noDataFillStyle(): string
47
47
  noDataFillStyle(style: string): this
48
+
49
+ categoryFillStyle(): { [rawValue: string]: string } | undefined
50
+ categoryFillStyle(v: { [rawValue: string]: string }): this
51
+
52
+ categoryText(): { [rawValue: string]: string } | undefined
53
+ categoryText(v: { [rawValue: string]: string }): this
48
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eurostat-map",
3
- "version": "4.9.4",
3
+ "version": "4.10.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",