@swr-data-lab/components 2.37.0 → 2.38.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.
@@ -140,7 +140,7 @@ const style = (opts) => {
140
140
  // 10. Point labels
141
141
  ...(options.places?.showLabels ? placeLabels : []),
142
142
  // 11. Admin boundary labels
143
- ...boundaryLabels
143
+ ...(options.admin?.showLabels ? boundaryLabels : [])
144
144
  ]
145
145
  };
146
146
  };
@@ -140,7 +140,7 @@ const style = (opts) => {
140
140
  // 10. Point labels
141
141
  ...(options.places?.showLabels ? placeLabels : []),
142
142
  // 11. Admin boundary labels
143
- ...boundaryLabels
143
+ ...(options.admin?.showLabels ? boundaryLabels : [])
144
144
  ]
145
145
  };
146
146
  };
@@ -7,7 +7,8 @@ const opts = {
7
7
  showLabels: true
8
8
  },
9
9
  admin: {
10
- show: true
10
+ show: true,
11
+ showLabels: true
11
12
  }
12
13
  };
13
14
  export default opts;
@@ -10,6 +10,7 @@ interface StyleOptions {
10
10
  };
11
11
  admin?: {
12
12
  show?: boolean | AdminLevel[];
13
+ showLabels?: boolean;
13
14
  };
14
15
  roads?: {
15
16
  showLabels?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@swr-data-lab/components",
3
3
  "description": "SWR Data Lab component library",
4
- "version": "2.37.0",
4
+ "version": "2.38.0",
5
5
  "author": "SWR Data Lab",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",