@teeechina/teee-map 0.0.28 → 0.0.30
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/teee-map.mjs +25 -0
- package/dist/teee-map.umd.js +2 -2
- package/index.d.ts +17 -0
- package/package.json +1 -1
package/dist/teee-map.mjs
CHANGED
|
@@ -38860,11 +38860,35 @@ var E = T, D = async () => {
|
|
|
38860
38860
|
id: `${e}_track`,
|
|
38861
38861
|
type: "line",
|
|
38862
38862
|
source: e,
|
|
38863
|
+
filter: [
|
|
38864
|
+
"any",
|
|
38865
|
+
[
|
|
38866
|
+
"==",
|
|
38867
|
+
["get", "isSurveying"],
|
|
38868
|
+
1
|
|
38869
|
+
],
|
|
38870
|
+
["!", ["has", "isSurveying"]]
|
|
38871
|
+
],
|
|
38863
38872
|
layout: { "line-join": "round" },
|
|
38864
38873
|
paint: {
|
|
38865
38874
|
"line-color": "#85A0D9",
|
|
38866
38875
|
"line-width": 2
|
|
38867
38876
|
}
|
|
38877
|
+
}, {
|
|
38878
|
+
id: `${e}_track_noSurveying`,
|
|
38879
|
+
type: "line",
|
|
38880
|
+
source: e,
|
|
38881
|
+
filter: [
|
|
38882
|
+
"==",
|
|
38883
|
+
["get", "isSurveying"],
|
|
38884
|
+
0
|
|
38885
|
+
],
|
|
38886
|
+
layout: { "line-join": "round" },
|
|
38887
|
+
paint: {
|
|
38888
|
+
"line-color": "#ccc",
|
|
38889
|
+
"line-width": 2,
|
|
38890
|
+
"line-dasharray": [2, 2]
|
|
38891
|
+
}
|
|
38868
38892
|
}], Ht = /* @__PURE__ */ function(e) {
|
|
38869
38893
|
return e[e.RedCircuit = 1] = "RedCircuit", e[e.WhiteCircuit = 2] = "WhiteCircuit", e[e.EqualRedCircuit = 3] = "EqualRedCircuit", e[e.GreyCircuit = 4] = "GreyCircuit", e[e.GreenCircuit = 5] = "GreenCircuit", e;
|
|
38870
38894
|
}({}), Ut = {
|
|
@@ -52301,6 +52325,7 @@ var ic = class e {
|
|
|
52301
52325
|
this.map.getLayer(e.id) ? console.debug(`图层已存在: ${e.id}`) : this.map.addLayer(e);
|
|
52302
52326
|
});
|
|
52303
52327
|
}
|
|
52328
|
+
this.measureTool = new ic(this.map);
|
|
52304
52329
|
let n = this.map.getStyle()?.sources ?? {}, r = Object.keys(n);
|
|
52305
52330
|
console.log(`源列表 (${r.length}):`, r, n);
|
|
52306
52331
|
let i = this.map.getStyle().layers ?? [], a = i.map((e) => e.id);
|