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
19e13351
Commit
19e13351
authored
Sep 23, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
终端添加路径导航
parent
7467c1a0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
32 deletions
+4
-32
Map.vue
src/components/mars3d/Map.vue
+4
-32
No files found.
src/components/mars3d/Map.vue
View file @
19e13351
...
...
@@ -215,34 +215,6 @@ export default {
let
that
=
this
;
//模型配置
// const graphic = new mars3d.graphic.ModelPrimitive({
// style: {
// //url: carclass == '铲车' ? '//data.mars3d.cn/gltf/mars/car/wajueji.glb' : '//data.mars3d.cn/gltf/imap/1d4f63111fc9499dac5cee2286ad7bb3/gltf/gltf2.gltf',
// url: carclass == '铲车' ? '//data.mars3d.cn/gltf/mars/car/wajueji.glb' : '//data.mars3d.cn/gltf/mars/car/tufangche.glb',
// scale: 2,
// minimumPixelSize: 50,
// // 高亮时的样式(默认为鼠标移入,也可以指定type:'click'单击高亮),构造后也可以openHighlight、closeHighlight方法来手动调用
// highlight: {
// type: mars3d.EventType.click,
// silhouette: true,
// silhouetteColor: "#ff0000",
// silhouetteSize: 4
// },
// label: {
// // 不需要文字时,去掉label配置即可
// text: carclass == '铲车' ? number + '\n🏗' : number + '\n🚚',
// font_size: 22,
// color: "#ff0000",
// outline: true,
// outlineColor: "#000000",
// pixelOffsetY: -20,
// distanceDisplayCondition: true,
// distanceDisplayCondition_far: 50000,
// distanceDisplayCondition_near: 0
// }
// }
// })
const
graphic
=
new
mars3d
.
graphic
.
BillboardEntity
({
style
:
{
//image: pic ? 'http://8.143.203.103:9090/avatar/' + pic : ddd,
...
...
@@ -259,7 +231,6 @@ export default {
silhouetteSize
:
4
},
label
:
{
// 不需要文字时,去掉label配置即可
text
:
number
,
font_size
:
18
,
color
:
"
blue
"
,
...
...
@@ -301,13 +272,14 @@ export default {
},
// 装车箭头线 graphicLayer.removeGraphic(graphic);
addArrowGraphic3
(
boo
,
points
)
{
if
(
boo
){
graphicLayerZ
=
new
mars3d
.
layer
.
GraphicLayer
();
map
.
addLayer
(
graphicLayerZ
);
if
(
boo
){
graphicLayerZ
.
removeGraphic
(
graphicZ
);
graphicZ
=
new
mars3d
.
graphic
.
PolylineEntity
({
positions
:
points
,
style
:
{
width
:
10
,
width
:
6
,
materialType
:
mars3d
.
MaterialType
.
PolylineOutline
,
color
:
Cesium
.
Color
.
ORANGE
,
outlineWidth
:
2
,
...
...
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