@antv/l7-layers 2.17.1 → 2.17.2

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.
@@ -238,7 +238,8 @@ var BaseModel = (_dec = lazyInject(TYPES.IGlobalConfigService), (_class = /*#__P
238
238
  this.layer.enableEncodeStyles.forEach(function (key) {
239
239
  if (!_this.layer.encodeStyleAttribute[key]) {
240
240
  // @ts-ignore
241
- var value = _this.layer.getLayerConfig()[key] || defualtValue[key];
241
+ var keyValue = _this.layer.getLayerConfig()[key];
242
+ var value = typeof keyValue === 'undefined' ? defualtValue[key] : keyValue;
242
243
  if (key === 'stroke') {
243
244
  value = rgb2arr(value);
244
245
  }
@@ -245,7 +245,8 @@ var BaseModel = (_dec = (0, _l7Core.lazyInject)(_l7Core.TYPES.IGlobalConfigServi
245
245
  this.layer.enableEncodeStyles.forEach(function (key) {
246
246
  if (!_this.layer.encodeStyleAttribute[key]) {
247
247
  // @ts-ignore
248
- var value = _this.layer.getLayerConfig()[key] || defualtValue[key];
248
+ var keyValue = _this.layer.getLayerConfig()[key];
249
+ var value = typeof keyValue === 'undefined' ? defualtValue[key] : keyValue;
249
250
  if (key === 'stroke') {
250
251
  value = (0, _l7Utils.rgb2arr)(value);
251
252
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/l7-layers",
3
- "version": "2.17.1",
3
+ "version": "2.17.2",
4
4
  "description": "L7's collection of built-in layers",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -27,10 +27,10 @@
27
27
  "license": "ISC",
28
28
  "dependencies": {
29
29
  "@antv/async-hook": "^2.2.9",
30
- "@antv/l7-core": "2.17.1",
31
- "@antv/l7-maps": "2.17.1",
32
- "@antv/l7-source": "2.17.1",
33
- "@antv/l7-utils": "2.17.1",
30
+ "@antv/l7-core": "2.17.2",
31
+ "@antv/l7-maps": "2.17.2",
32
+ "@antv/l7-source": "2.17.2",
33
+ "@antv/l7-utils": "2.17.2",
34
34
  "@babel/runtime": "^7.7.7",
35
35
  "@mapbox/martini": "^0.2.0",
36
36
  "@turf/clone": "^6.5.0",
@@ -53,7 +53,7 @@
53
53
  "reflect-metadata": "^0.1.13"
54
54
  },
55
55
  "devDependencies": {
56
- "@antv/l7-test-utils": "2.17.1",
56
+ "@antv/l7-test-utils": "2.17.2",
57
57
  "@types/d3-array": "^2.0.0",
58
58
  "@types/d3-color": "^1.2.2",
59
59
  "@types/d3-interpolate": "1.1.6",
@@ -62,7 +62,7 @@
62
62
  "@types/gl-matrix": "^2.4.5",
63
63
  "@types/lodash": "^4.14.138"
64
64
  },
65
- "gitHead": "09315c9a649a3fda3f94f738ab9589dc53984b6c",
65
+ "gitHead": "20cccf03638dd13ef950a63aa7308edb40941c83",
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  }