Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NewTruckTerminalSyetem
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
SQL_Mou
NewTruckTerminalSyetem
Commits
7b256872
Commit
7b256872
authored
May 11, 2022
by
caicaicai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
ad06f246
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
Map.vue
src/components/mars3d/Map.vue
+5
-3
No files found.
src/components/mars3d/Map.vue
View file @
7b256872
...
...
@@ -39,6 +39,7 @@ export default {
zuobianData
:[],
toJavaCoordinates
:[],
weilanName
:[],
areaColorData
:[],
}
},
...
...
@@ -89,6 +90,7 @@ export default {
let
data1
=
[];
for
(
let
key
in
res
){
that
.
weilanName
.
push
(
key
);
that
.
areaColorData
.
push
(
res
[
key
][
0
].
color
);
let
arrays
=
[];
res
[
key
].
forEach
(
function
(
item
){
var
arr
=
[];
...
...
@@ -140,18 +142,18 @@ export default {
var
graphicLayer
=
new
mars3d
.
layer
.
GraphicLayer
();
map
.
addLayer
(
graphicLayer
);
initLayerManager
(
graphicLayer
,
that
.
weilanName
[
index
]);
that
.
addGraphic_01
(
graphicLayer
,
item
,
that
.
weilanName
[
index
]);
that
.
addGraphic_01
(
graphicLayer
,
item
,
that
.
weilanName
[
index
]
,
that
.
areaColorData
[
index
]
);
})
// 抛出事件
this
.
$emit
(
'
onload
'
,
map
)
},
//围栏回显
addGraphic_01
(
graphicLayer
,
positions
,
weilanName
){
addGraphic_01
(
graphicLayer
,
positions
,
weilanName
,
color
){
let
graphic
=
new
mars3d
.
graphic
.
PolygonEntity
({
positions
:
positions
,
style
:
{
color
:
"
red
"
,
color
:
color
,
opacity
:
0.5
,
outline
:
true
,
outlineWidth
:
3
,
...
...
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