forked from wangfeilong321/ExamplesforCesium
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlocalImage.html
More file actions
31 lines (28 loc) · 805 Bytes
/
localImage.html
File metadata and controls
31 lines (28 loc) · 805 Bytes
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
<!DOCTYPE html>
<head>
<title>LocalImage</title>
<link href="../Build/Cesium/Widgets/widgets.css" rel="stylesheet">
<script type="text/javascript" src="./js/require.min.js" data-main="./js/main"></script>
</head>
<body>
<div id="cesiumContainer"></div>
<script>
function onload(Cesium) {
var viewer = new Cesium.Viewer('cesiumContainer', {
skyBox : false,
skyAtmosphere : false,
baseLayerPicker : false,
imageryProvider :new Cesium.SingleTileImageryProvider({
url : './images/globe.jpg'
}),
contextOptions : {
webgl: {
alpha: true
}
}
});
viewer.scene.backgroundColor = Cesium.Color.TRANSPARENT;
viewer.scene.globe.baseColor = Cesium.Color.TRANSPARENT;
};
</script>
</body>