bluestar-maplibre 1.1.2 → 1.1.3
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 +1 -1
- package/package.json +1 -1
- package/readme.md +3 -0
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)),
|
|
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],
|
package/package.json
CHANGED