Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cesium-frame
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
jlc
cesium-frame
Commits
ed547f2a
Commit
ed547f2a
authored
Jul 30, 2024
by
jlc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:地球坐标系的透视修改
parent
7ec4f277
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
2 deletions
+29
-2
EarthCoordinate.png
src/assets/EarthCoordinate.png
+0
-0
earthCoordinate-function.js
...ples/sceneSet/earthCoordinate/earthCoordinate-function.js
+29
-2
No files found.
src/assets/EarthCoordinate.png
View replaced file @
7ec4f277
View file @
ed547f2a
422 KB
|
W:
|
H:
360 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/examples/sceneSet/earthCoordinate/earthCoordinate-function.js
View file @
ed547f2a
...
@@ -6,10 +6,37 @@ export function addearthCoordinate() {
...
@@ -6,10 +6,37 @@ export function addearthCoordinate() {
const
viewer
=
new
window
.
Cesium
.
Viewer
(
'cesiumContainer'
,
{
const
viewer
=
new
window
.
Cesium
.
Viewer
(
'cesiumContainer'
,
{
infoBox
:
false
,
infoBox
:
false
,
orderIndependentTranslucency
:
false
,
});
});
// 获取地球的 globe 实例
const
scene
=
viewer
.
scene
;
const
globe
=
viewer
.
scene
.
globe
;
// 获取地球globe实例
const
globe
=
scene
.
globe
;
const
baseLayer
=
viewer
.
scene
.
imageryLayers
.
get
(
0
);
scene
.
screenSpaceCameraController
.
enableCollisionDetection
=
false
;
function
reset
()
{
globe
.
showGroundAtmosphere
=
true
;
globe
.
baseColor
=
Cesium
.
Color
.
BLUE
;
globe
.
translucency
.
enabled
=
false
;
globe
.
translucency
.
frontFaceAlpha
=
1.0
;
globe
.
undergroundColor
=
Cesium
.
Color
.
BLACK
;
globe
.
translucency
.
rectangle
=
undefined
;
baseLayer
.
colorToAlpha
=
undefined
;
}
function
useTranslucencyMask
()
{
globe
.
showGroundAtmosphere
=
false
;
globe
.
baseColor
=
Cesium
.
Color
.
TRANSPARENT
;
globe
.
translucency
.
enabled
=
true
;
globe
.
undergroundColor
=
undefined
;
baseLayer
.
colorToAlpha
=
new
Cesium
.
Color
(
0.0
,
0.016
,
0.059
);
baseLayer
.
colorToAlphaThreshold
=
0.2
;
}
reset
();
useTranslucencyMask
();
// 创建一个以地球球心为起点的坐标系
// 创建一个以地球球心为起点的坐标系
const
center
=
new
Cesium
.
Cartesian3
(
0
,
0
,
0
);
// 地球球心的坐标
const
center
=
new
Cesium
.
Cartesian3
(
0
,
0
,
0
);
// 地球球心的坐标
...
...
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