Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Parajuli
website
Commits
c7ec381d
Commit
c7ec381d
authored
Apr 27, 2021
by
Joe TS Dell
Browse files
up sakis
parent
1edbd765
Changes
3
Hide whitespace changes
Inline
Side-by-side
public/3d-globe/add_avartar_billboard.js
View file @
c7ec381d
...
...
@@ -20,6 +20,15 @@ viewer.entities.add({
},
});
viewer
.
entities
.
add
({
position
:
Cesium
.
Cartesian3
.
fromDegrees
(
22.4062122
,
38.9034077
),
billboard
:
{
image
:
"
../imgs/avatar/sakis1.png
"
,
width
:
75
,
// default: undefined
height
:
75
,
// default: undefined
},
});
viewer
.
entities
.
add
({
position
:
Cesium
.
Cartesian3
.
fromDegrees
(
113.9213
,
0.7893
),
billboard
:
{
...
...
public/3d-globe/index.html
View file @
c7ec381d
...
...
@@ -44,7 +44,7 @@
function
spinIt
(
scene
,
time
)
{
var
now
=
Date
.
now
();
var
spinRate
=
0.0
5
;
var
spinRate
=
0.0
1
;
var
delta
=
(
now
-
lastNow
)
/
1000
;
lastNow
=
now
;
viewer
.
scene
.
camera
.
rotate
(
Cesium
.
Cartesian3
.
UNIT_Z
,
spinRate
*
delta
);
...
...
public/imgs/avatar/sakis1.png
0 → 100644
View file @
c7ec381d
74.1 KB
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