chbim-plugins 0.0.36 → 0.0.38
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/chbim-plugins.js +11 -3
- package/chbim-plugins.umd.cjs +26 -26
- package/package.json +1 -1
package/chbim-plugins.js
CHANGED
|
@@ -20480,6 +20480,14 @@ class c1 {
|
|
|
20480
20480
|
query(l) {
|
|
20481
20481
|
return this.modelArr.length == 0 ? !1 : this.modelArr.find((o) => o.id == l);
|
|
20482
20482
|
}
|
|
20483
|
+
/**
|
|
20484
|
+
* 查询矢量数据的实体
|
|
20485
|
+
* @param { String } id 矢量id
|
|
20486
|
+
* @returns { Object || Boolean } 返回标绘实体
|
|
20487
|
+
*/
|
|
20488
|
+
queryModel(l) {
|
|
20489
|
+
return this.map.getLayer(l, "modelId");
|
|
20490
|
+
}
|
|
20483
20491
|
/**
|
|
20484
20492
|
* 用户操作的模型
|
|
20485
20493
|
* @param { String } id 模型属性
|
|
@@ -24522,7 +24530,7 @@ class f1 {
|
|
|
24522
24530
|
console.error("测试shp矢量加载失败", Bt), p({
|
|
24523
24531
|
tite: "【矢量】" + D + "加载失败",
|
|
24524
24532
|
type: "error",
|
|
24525
|
-
id:
|
|
24533
|
+
id: N,
|
|
24526
24534
|
url: _
|
|
24527
24535
|
});
|
|
24528
24536
|
});
|
|
@@ -24530,14 +24538,14 @@ class f1 {
|
|
|
24530
24538
|
p({
|
|
24531
24539
|
tite: "【矢量】" + D + "加载失败",
|
|
24532
24540
|
type: "error",
|
|
24533
|
-
id:
|
|
24541
|
+
id: N,
|
|
24534
24542
|
url: _
|
|
24535
24543
|
});
|
|
24536
24544
|
}).catch((I) => {
|
|
24537
24545
|
console.error("数据有误", I), p({
|
|
24538
24546
|
tite: "【矢量】" + S + "数据有误",
|
|
24539
24547
|
type: "error",
|
|
24540
|
-
id:
|
|
24548
|
+
id: T,
|
|
24541
24549
|
url: _
|
|
24542
24550
|
});
|
|
24543
24551
|
});
|