add_avartar_billboard.js 1.78 KB
Newer Older
Myriam Guedey's avatar
Myriam Guedey committed
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
viewer.resolutionScale = window.devicePixelRatio;
viewer.scene.postProcessStages.fxaa.enabled = false;

viewer.entities.add({
    position: Cesium.Cartesian3.fromDegrees(100, 15),
    name: 'Joe T.S.',
    billboard: {
        image: "../imgs/avatar/JoeSquare.png",
        width: 75, // default: undefined
        height: 75, // default: undefined
    },
});


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(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: {
        image: "../imgs/avatar/rosanny.jpg",
        width: 75, // default: undefined
        height: 75, // default: undefined
    },
});

viewer.entities.add({ 
    position: Cesium.Cartesian3.fromDegrees(13.483476, 10.554910),
    billboard: {
        image: "../imgs/avatar/sabo.jpg",
        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
    },
});

viewer.entities.add({
    position: Cesium.Cartesian3.fromDegrees(67.7100, 33.9391),
    billboard: {
        image: "../imgs/avatar/Habib.png",
        width: 50, // default: undefined
        height: 75, // default: undefined
    },
});