add_avartar_billboard.js 1.17 KB
Newer Older
Joe TS Dell's avatar
Joe TS Dell committed
1
2
3
4
5
6
7
viewer.entities.add({
    position: Cesium.Cartesian3.fromDegrees(100, 15),
    billboard: {
      image: "../imgs/avatar/JoeSquare.jpg",
      width: 75, // default: undefined
      height: 75, // default: undefined
    },
Joe TS Dell's avatar
up    
Joe TS Dell committed
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
38
39
40
41
42
43
  });

  viewer.entities.add({
    position: Cesium.Cartesian3.fromDegrees(10.4515, 51.1657),
    billboard: {
      image: "../imgs/avatar/PatrickSquare.jpg",
      width: 75, // default: undefined
      height: 75, // default: undefined
    },
  });

  viewer.entities.add({
    position: Cesium.Cartesian3.fromDegrees(113.9213,  0.7893),
    billboard: {
      image: "../imgs/avatar/rosanny.jpg",
      width: 75, // default: undefined
      height: 75, // default: undefined
    },
  });

  viewer.entities.add({
    position: Cesium.Cartesian3.fromDegrees(8.6753,  9.0820),
    billboard: {
      image: "../imgs/avatar/sabo.png",
      width: 75, // default: undefined
      height: 75, // default: undefined
    },
  });
  
  viewer.entities.add({
    position: Cesium.Cartesian3.fromDegrees(78.9629,  20.5937),
    billboard: {
      image: "../imgs/avatar/preston.jpg",
      width: 75, // default: undefined
      height: 75, // default: undefined
    },
Joe TS Dell's avatar
Joe TS Dell committed
44
  });