f75e7e14 by 刘远

1

1 parent 0527650f
......@@ -11,6 +11,7 @@
"core-js": "^3.6.5",
"echarts": "^4.8.0",
"element-ui": "^2.13.2",
"esri-loader": "^2.15.0",
"vue": "^2.6.11",
"vue-router": "^3.2.0",
"vuex": "^3.4.0"
......
......@@ -18,7 +18,6 @@
<!-- <script src="./js/bootstrap.min.js"></script> -->
<script src="./js/spectrum.js"></script>
<script type="text/javascript" src="./js/supermap/SuperMap.Include.js"></script>
<script type="text/javascript" src="./js/require.min.js" data-main="js/main"></script>
</head>
<body>
<noscript>
......
......@@ -147,6 +147,8 @@
const Cesium = window.Cesium;
import { loadModules } from 'esri-loader';
export default {
components: {
TopTitle,
......@@ -233,9 +235,23 @@
var title = '加载SCP失败,请检查网络连接状态或者url地址是否正确?';
widget.showErrorPanel(title, undefined, e);
}
});
});
this.loadArcgis();
},
methods: {
loadArcgis() {
loadModules(['esri/views/MapView', 'esri/WebMap'])
.then(([MapView, WebMap]) => {
debugger
})
.catch(err => {
// handle any errors
console.error(err);
});
},
searchRoat(val) {
/**
* @param {*} val '为地名地址道路的输入值'
......