@taichina/map-sdk 1.0.13 → 1.0.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taichina/map-sdk",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "基于 GIS 的铁路业务地图 SDK。",
5
5
  "type": "module",
6
6
  "main": "./teee-sdk/teee-map-sdk.umd.js",
@@ -4792,13 +4792,9 @@ var ye = class {
4792
4792
  }
4793
4793
  initState() {
4794
4794
  let { mapConfigs: e } = this.teeeMap;
4795
- if (!e) return;
4796
- let t = e.id;
4797
- e.sourceLayers.forEach((e) => {
4798
- e.includes("switch") ? this.teeeMap.map.querySourceFeatures(t, { sourceLayer: e }).forEach((e) => this.initCTCFeatureState(e)) : e.includes("signal") ? this.teeeMap.map.querySourceFeatures(t, { sourceLayer: e }).forEach((e) => {
4799
- this.initCTCFeatureState(e);
4800
- }) : (e.includes("track") || e.includes("sgfhqy")) && this.teeeMap.map.querySourceFeatures(t, { sourceLayer: e }).forEach((e) => this.initCTCFeatureState(e));
4801
- });
4795
+ e && (e.id, e.sourceLayers.forEach((e) => {
4796
+ e.includes("switch") ? (this.switchFeatures.forEach((e) => this.initCTCFeatureState(e)), this.switchlocFeatures.forEach((e) => this.initCTCFeatureState(e))) : e.includes("signal") ? this.signalFeatures.forEach((e) => this.initCTCFeatureState(e)) : e.includes("track") ? (this.trackFeatures.forEach((e) => this.initCTCFeatureState(e)), this.circuitFeatures.forEach((e) => this.initCTCFeatureState(e))) : e.includes("sgfhqy") && this.sgfhqyFeatures.forEach((e) => this.initCTCFeatureState(e));
4797
+ }));
4802
4798
  }
4803
4799
  initCTCFeatureState(e) {
4804
4800
  if (!e) return;