bluestar-maplibre 1.1.2 → 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
@@ -2207,7 +2207,7 @@ class Jo {
2207
2207
  // ======================== 图层创建方法 ========================
2208
2208
  /** 创建数据源 */
2209
2209
  createSource(e) {
2210
- if (this.mainSource || (this.viewer.addSource(this.sourceId, { type: "grid" }), this.mainSource = this.viewer.getSource(this.sourceId)), (!this.valueDirectionSource && e.block.U || e.block.D) && (this.viewer.addSource(this.valueDirectionSourceId, { type: "grid" }), this.valueDirectionSource = this.viewer.getSource(this.valueDirectionSourceId)), !this.mainSource) throw new Error("source is null");
2210
+ if (this.mainSource || (this.viewer.addSource(this.sourceId, { type: "grid" }), this.mainSource = this.viewer.getSource(this.sourceId)), !this.valueDirectionSource && (e.block.U || e.block.D) && (this.viewer.addSource(this.valueDirectionSourceId, { type: "grid" }), this.valueDirectionSource = this.viewer.getSource(this.valueDirectionSourceId)), !this.mainSource) throw new Error("source is null");
2211
2211
  e.dtype === "uint8" || e.dtype === "uint16" ? this.mainSource.setData({
2212
2212
  lon: [e.west, e.east],
2213
2213
  lat: [e.north, e.south],
@@ -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.2",
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,5 +1,8 @@
1
1
  # bluestar-maplibre
2
2
 
3
+ ### 1.1.4
4
+ - 修复wegRender修改wegData和level的bug
5
+
3
6
  ### 1.1.2
4
7
  - 增加对grib数据的支持和解析渲染
5
8
  - 修复3D地图模式会崩溃的问题