Commit 352d24df authored by caicaicai's avatar caicaicai

修改

parent 55c868a8
......@@ -12,6 +12,16 @@
</script> -->
<script>
window.basePathUrl = '<%= BASE_URL %>' //标识config、widgets所在的目录
window.onload = function() {
document.addEventListener('touchstart', function(event) {
if (event.touches.length > 1) {
event.preventDefault()
}
})
document.addEventListener('gesturestart', function(event) {
event.preventDefault()
})
}
</script>
<script src="https://webapi.amap.com/maps?v=1.4.15&key=bfa930cbec820fc1c16f8f54348f98e3&plugin=Map3D,AMap.DistrictSearch,AMap.Geocoder,AMap.MouseTool,AMap.Autocomplete,AMap.PlaceSearch"></script>
......
......@@ -21,6 +21,7 @@ import { Tools, HttpReq, CAMap} from '@/assets/js/common.js';
// 使用免费开源版本
import 'mars3d/dist/mars3d.css'
import * as mars3d from 'mars3d'
import * as Cesium from 'mars3d-cesium/Build/Cesium/Cesium'
import { initGraphicManager,initLayerManager,bindLayerContextMenu } from './js/graphicManager'
......@@ -43,7 +44,7 @@ export default {
data(){
return{
persons:[
["115.357538", "39.274818", "500"],
["115.358833", "39.276448", "500"],
["115.358638", "39.274818", "500"],
["115.358738", "39.275218", "500"],
["115.358638", "39.275518", "500"],
......
......@@ -60,6 +60,11 @@ module.exports = {
// from: "./static",
// to: 'static'
// }]),
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery",
"windows.jQuery": "jquery"
}),
new webpack.DefinePlugin({
CESIUM_BASE_URL: JSON.stringify('static')
}),
......@@ -76,7 +81,8 @@ module.exports = {
resolve: {
alias: {
'@': resolve('src'),
'@crud': resolve('src/components/Crud')
'@crud': resolve('src/components/Crud'),
'cesium': path.resolve(__dirname, cesiumSource)
}
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment