augustine-jkmap 1.0.8 → 1.0.9

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.
@@ -12898,29 +12898,27 @@ class MapWrapper {
12898
12898
  * @param {*} param
12899
12899
  */
12900
12900
  init(param) {
12901
- if (!window.jkEsri) {
12902
- if (param.initCss) {
12903
- (0,esri_loader.loadCss)(param.initCss);
12904
- }
12905
- const modules = param.modules || [
12906
- "esri/Map",
12907
- "esri/views/MapView",
12908
- "esri/layers/WebTileLayer",
12909
- "esri/geometry/Extent",
12910
- "esri/geometry/SpatialReference",
12911
- "esri/geometry/support/webMercatorUtils",
12912
- "esri/geometry/geometryEngine",
12913
- ];
12914
- // 更新 mapParams.modules 用于 TDTinstance 解析
12915
- this.mapParams.modules = modules;
12916
- (0,esri_loader.loadModules)(modules, { url: param.initJs })
12917
- .then(this.TDTinstance.bind(this, this.mapParams))
12918
- .then(this.initMap.bind(this))
12919
- .catch((err) => {
12920
- console.error("地图模块加载失败:", err);
12921
- throw err;
12922
- });
12923
- } else this.initMap();
12901
+ if (param.initCss) {
12902
+ (0,esri_loader.loadCss)(param.initCss);
12903
+ }
12904
+ const modules = param.modules || [
12905
+ "esri/Map",
12906
+ "esri/views/MapView",
12907
+ "esri/layers/WebTileLayer",
12908
+ "esri/geometry/Extent",
12909
+ "esri/geometry/SpatialReference",
12910
+ "esri/geometry/support/webMercatorUtils",
12911
+ "esri/geometry/geometryEngine",
12912
+ ];
12913
+ // 更新 mapParams.modules 用于 TDTinstance 解析
12914
+ this.mapParams.modules = modules;
12915
+ (0,esri_loader.loadModules)(modules, { url: param.initJs })
12916
+ .then(this.TDTinstance.bind(this, this.mapParams))
12917
+ .then(this.initMap.bind(this))
12918
+ .catch((err) => {
12919
+ console.error("地图模块加载失败:", err);
12920
+ throw err;
12921
+ });
12924
12922
  }
12925
12923
 
12926
12924
  /**