Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JINRUN-DP
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
xinzhedeai
JINRUN-DP
Commits
230e181e
Commit
230e181e
authored
Nov 17, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:label 贴地处理、description 自带弹窗提示窗
parent
d7c4d6e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
index.vue
src/views/index.vue
+17
-17
No files found.
src/views/index.vue
View file @
230e181e
...
...
@@ -79,12 +79,12 @@ export default {
let
lat
=
Number
(
item
.
lat
);
let
height
=
Number
(
item
.
height
);
let
position
=
Cesium
.
Cartesian3
.
fromDegrees
(
lng
,
lat
,
height
);
console
.
log
(
item
.
n
ame
,
position
);
console
.
log
(
item
.
perN
ame
,
position
);
// 创建人员标记
let
entity
=
this
.
viewer
.
entities
.
add
({
position
:
position
,
label
:
{
text
:
"
高区管委
"
,
text
:
item
.
perName
,
font
:
"
16px
"
,
backgroundColor
:
Cesium
.
Color
.
fromCssColorString
(
"
#173349
"
),
showBackground
:
true
,
...
...
@@ -106,22 +106,22 @@ export default {
// fillColor: Cesium.Color.WHITE,
// backgroundColor: new Cesium.Color(0.0, 0.486, 0.65, 0.8),
// disableDepthTestDistance: 5,
//
heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
heightReference
:
Cesium
.
HeightReference
.
CLAMP_TO_GROUND
,
},
//
billboard: {
//
image: "/static/images/poi-marker-default.png",
//
scale: 0.5,
//
heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
//
disableDepthTestDistance: 5,
//
distanceDisplayCondition: new Cesium.DistanceDisplayCondition(
//
1.0,
//
8000.0
//
),
//
horizontalOrigin: Cesium.HorizontalOrigin.CENTER,
//
verticalOrigin: Cesium.VerticalOrigin.BOTTOM,
//
},
// description: `
<
div
><
h4
>
$
{
item
.
name
}
<
/h4></
div
>
`,
//
fixedFrame: Cesium.Transforms.eastNorthUpToFixedFrame(position),
billboard
:
{
image
:
"
/static/images/poi-marker-default.png
"
,
scale
:
0.5
,
heightReference
:
Cesium
.
HeightReference
.
CLAMP_TO_GROUND
,
disableDepthTestDistance
:
5
,
distanceDisplayCondition
:
new
Cesium
.
DistanceDisplayCondition
(
1.0
,
8000.0
),
horizontalOrigin
:
Cesium
.
HorizontalOrigin
.
CENTER
,
verticalOrigin
:
Cesium
.
VerticalOrigin
.
BOTTOM
,
},
description
:
`<div><h4>
${
item
.
perName
}${
item
.
status
}
</h4></div>`
,
fixedFrame
:
Cesium
.
Transforms
.
eastNorthUpToFixedFrame
(
position
),
});
// entity.info = item; // 添加 info 属性
// // entity.batch = currentBatch; // 标记当前批次
...
...
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