-
Notifications
You must be signed in to change notification settings - Fork 0
/
script1.js
37 lines (32 loc) · 672 Bytes
/
script1.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Cesium.Math.setRandomNumberSeed(1234);
var viewer = new Cesium.Viewer('cesiumContainer', { infoBox : false });
var entities = viewer.entities;
var i;
var height;
var positions;
//afficher un point
var pointA = entities.add({
position : Cesium.Cartesian3.fromDegrees(-102.0, 45.0, 1000000),
point : {
pixelSize : 10,
}
});
//re afficher le point a chaque fois
pos = 45;
function moveSatellite(){
entities.remove(pointA);
pos = pos + 5;
pointA = entities.add({
position : Cesium.Cartesian3.fromDegrees(-102.0, pos, 1000000),
point : {
pixelSize : 10,
}
});
window.setTimeout(
function(){
moveSatellite();
},
100
);
}
moveSatellite();