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.
- package/dist/augustine-jkmap.common.js +21 -23
- package/dist/augustine-jkmap.common.js.map +1 -1
- package/dist/augustine-jkmap.umd.js +21 -23
- package/dist/augustine-jkmap.umd.js.map +1 -1
- package/dist/augustine-jkmap.umd.min.js +1 -1
- package/dist/augustine-jkmap.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -12898,29 +12898,27 @@ class MapWrapper {
|
|
|
12898
12898
|
* @param {*} param
|
|
12899
12899
|
*/
|
|
12900
12900
|
init(param) {
|
|
12901
|
-
if (
|
|
12902
|
-
|
|
12903
|
-
|
|
12904
|
-
|
|
12905
|
-
|
|
12906
|
-
|
|
12907
|
-
|
|
12908
|
-
|
|
12909
|
-
|
|
12910
|
-
|
|
12911
|
-
|
|
12912
|
-
|
|
12913
|
-
|
|
12914
|
-
|
|
12915
|
-
|
|
12916
|
-
(
|
|
12917
|
-
|
|
12918
|
-
|
|
12919
|
-
.
|
|
12920
|
-
|
|
12921
|
-
|
|
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
|
/**
|