f75e7e14 by 刘远

1

1 parent 0527650f
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
11 "core-js": "^3.6.5", 11 "core-js": "^3.6.5",
12 "echarts": "^4.8.0", 12 "echarts": "^4.8.0",
13 "element-ui": "^2.13.2", 13 "element-ui": "^2.13.2",
14 "esri-loader": "^2.15.0",
14 "vue": "^2.6.11", 15 "vue": "^2.6.11",
15 "vue-router": "^3.2.0", 16 "vue-router": "^3.2.0",
16 "vuex": "^3.4.0" 17 "vuex": "^3.4.0"
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
18 <!-- <script src="./js/bootstrap.min.js"></script> --> 18 <!-- <script src="./js/bootstrap.min.js"></script> -->
19 <script src="./js/spectrum.js"></script> 19 <script src="./js/spectrum.js"></script>
20 <script type="text/javascript" src="./js/supermap/SuperMap.Include.js"></script> 20 <script type="text/javascript" src="./js/supermap/SuperMap.Include.js"></script>
21 <script type="text/javascript" src="./js/require.min.js" data-main="js/main"></script>
22 </head> 21 </head>
23 <body> 22 <body>
24 <noscript> 23 <noscript>
......
...@@ -147,6 +147,8 @@ ...@@ -147,6 +147,8 @@
147 const Cesium = window.Cesium; 147 const Cesium = window.Cesium;
148 148
149 149
150 import { loadModules } from 'esri-loader';
151
150 export default { 152 export default {
151 components: { 153 components: {
152 TopTitle, 154 TopTitle,
...@@ -233,9 +235,23 @@ ...@@ -233,9 +235,23 @@
233 var title = '加载SCP失败,请检查网络连接状态或者url地址是否正确?'; 235 var title = '加载SCP失败,请检查网络连接状态或者url地址是否正确?';
234 widget.showErrorPanel(title, undefined, e); 236 widget.showErrorPanel(title, undefined, e);
235 } 237 }
236 }); 238 });
239
240
241 this.loadArcgis();
242
237 }, 243 },
238 methods: { 244 methods: {
245 loadArcgis() {
246 loadModules(['esri/views/MapView', 'esri/WebMap'])
247 .then(([MapView, WebMap]) => {
248 debugger
249 })
250 .catch(err => {
251 // handle any errors
252 console.error(err);
253 });
254 },
239 searchRoat(val) { 255 searchRoat(val) {
240 /** 256 /**
241 * @param {*} val '为地名地址道路的输入值' 257 * @param {*} val '为地名地址道路的输入值'
......