Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
卡
卡车调度系统
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
caicaicai
卡车调度系统
Commits
352d24df
Commit
352d24df
authored
Apr 06, 2022
by
caicaicai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
55c868a8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
index.html
public/index.html
+10
-0
Map.vue
src/components/mars3d/Map.vue
+2
-1
vue.config.js
vue.config.js
+7
-1
No files found.
public/index.html
View file @
352d24df
...
...
@@ -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>
...
...
src/components/mars3d/Map.vue
View file @
352d24df
...
...
@@ -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.35
7538
"
,
"
39.27481
8
"
,
"
500
"
],
[
"
115.35
8833
"
,
"
39.27644
8
"
,
"
500
"
],
[
"
115.358638
"
,
"
39.274818
"
,
"
500
"
],
[
"
115.358738
"
,
"
39.275218
"
,
"
500
"
],
[
"
115.358638
"
,
"
39.275518
"
,
"
500
"
],
...
...
vue.config.js
View file @
352d24df
...
...
@@ -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
)
}
}
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment