bluestar-maplibre 1.1.3 → 1.1.4

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.
package/dist/index.js CHANGED
@@ -2419,11 +2419,11 @@ class qt {
2419
2419
  }), P(() => this.state.direction, (e) => {
2420
2420
  this.vectorLayerId && this.viewer.setLayoutProperty(this.vectorLayerId, "visibility", e ? "visible" : "none");
2421
2421
  }), P(() => this.state.level, (e) => {
2422
- this.vectorLayer && this.vectorLayer.setOptions({ level: e, color: this.state.vectorColor });
2422
+ this.vectorLayer && this.vectorLayer.setOptions({ level: [...this.state.level], color: this.state.vectorColor });
2423
2423
  }), P(() => this.state.vectorColor, (e) => {
2424
- this.vectorLayer && this.vectorLayer.setOptions({ color: e, level: this.state.level, cell: this.state.cell });
2424
+ this.vectorLayer && this.vectorLayer.setOptions({ color: e, level: [...this.state.level], cell: this.state.cell });
2425
2425
  }), P(() => this.state.cell, (e) => {
2426
- this.vectorLayer && this.vectorLayer.setOptions({ cell: e, level: this.state.level, color: this.state.vectorColor }), this.gridValueLayer && this.gridValueLayer.setOptions({ cell: e ?? 4 });
2426
+ this.vectorLayer && this.vectorLayer.setOptions({ cell: e, level: [...this.state.level], color: this.state.vectorColor }), this.gridValueLayer && this.gridValueLayer.setOptions({ cell: e ?? 4 });
2427
2427
  }), P(() => this.state.colorRamp, () => this.updateHeatmapLayer()), P(() => this.state.colorRampDefaultColor, () => this.updateHeatmapLayer()), P(() => this.state.alpha, () => this.updateHeatmapLayer()), P(() => this.state.linearValue, () => this.updateHeatmapLayer()), P(() => this.state.contour, () => this.updateIsolineLayer(), { deep: !0 }), P(() => this.state.contourStyle, () => this.updateIsolineLayer(), { deep: !0 }), P(() => this.state.contourLabel, () => this.updateIsolineLayer(), { deep: !0 }), P(() => this.state.gridValueStyle, () => this.updateTextLayer(), { deep: !0 }), P(() => this.state.gridValueFormat, () => this.updateTextLayer()));
2428
2428
  }
2429
2429
  // ======================== 图层更新方法 ========================
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bluestar-maplibre",
3
3
  "author": "awayel",
4
- "version": "1.1.3",
4
+ "version": "1.1.4",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
package/readme.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # bluestar-maplibre
2
2
 
3
- ### 1.1.3
4
- - 修复wegRender修改wegData的bug
3
+ ### 1.1.4
4
+ - 修复wegRender修改wegData和level的bug
5
5
 
6
6
  ### 1.1.2
7
7
  - 增加对grib数据的支持和解析渲染