You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
161 lines
4.5 KiB
HTML
161 lines
4.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta
|
|
name="viewport"
|
|
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"
|
|
/>
|
|
<meta name="description" content="CZML Polyline Volume" />
|
|
<meta name="cesium-sandcastle-labels" content="CZML" />
|
|
<title>Cesium Demo</title>
|
|
<script type="text/javascript" src="../Sandcastle-header.js"></script>
|
|
<script
|
|
type="text/javascript"
|
|
src="../../../Build/CesiumUnminified/Cesium.js"
|
|
nomodule
|
|
></script>
|
|
<script type="module" src="../load-cesium-es6.js"></script>
|
|
</head>
|
|
<body
|
|
class="sandcastle-loading"
|
|
data-sandcastle-bucket="bucket-requirejs.html"
|
|
>
|
|
<style>
|
|
@import url(../templates/bucket.css);
|
|
</style>
|
|
<div id="cesiumContainer" class="fullSize"></div>
|
|
<div id="loadingOverlay"><h1>Loading...</h1></div>
|
|
<div id="toolbar"></div>
|
|
|
|
<script id="cesium_sandcastle_script">
|
|
function startup(Cesium) {
|
|
"use strict";
|
|
//Sandcastle_Begin
|
|
var czml = [
|
|
{
|
|
id: "document",
|
|
name: "CZML Geometries: Polyline Volume",
|
|
version: "1.0",
|
|
},
|
|
{
|
|
id: "greenBox",
|
|
name: "Green box with beveled corners and outline",
|
|
polylineVolume: {
|
|
positions: {
|
|
cartographicDegrees: [
|
|
-90.0,
|
|
32.0,
|
|
0,
|
|
-90.0,
|
|
36.0,
|
|
100000,
|
|
-94.0,
|
|
36.0,
|
|
0,
|
|
],
|
|
},
|
|
shape: {
|
|
cartesian2: [
|
|
-50000,
|
|
-50000,
|
|
50000,
|
|
-50000,
|
|
50000,
|
|
50000,
|
|
-50000,
|
|
50000,
|
|
],
|
|
},
|
|
cornerType: "BEVELED",
|
|
material: {
|
|
solidColor: {
|
|
color: {
|
|
rgba: [0, 255, 0, 128],
|
|
},
|
|
},
|
|
},
|
|
outline: true,
|
|
outlineColor: {
|
|
rgba: [0, 0, 0, 255],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
id: "blueStar",
|
|
name: "Blue star with mitered corners and outline",
|
|
polylineVolume: {
|
|
positions: {
|
|
cartographicDegrees: [
|
|
-95.0,
|
|
32.0,
|
|
0,
|
|
-95.0,
|
|
36.0,
|
|
100000,
|
|
-99.0,
|
|
36.0,
|
|
200000,
|
|
],
|
|
},
|
|
shape: {
|
|
cartesian2: [
|
|
70000,
|
|
0,
|
|
45048.44339512096,
|
|
21694.186955877907,
|
|
43644.28613011135,
|
|
54728.203772762085,
|
|
11126.046697815722,
|
|
48746.39560909118,
|
|
-15576.465376942004,
|
|
68244.95385272766,
|
|
-31174.490092936674,
|
|
39091.57412340149,
|
|
-63067.82075316933,
|
|
30371.861738229076,
|
|
-50000,
|
|
6.123233995736766e-12,
|
|
-63067.82075316934,
|
|
-30371.86173822906,
|
|
-31174.490092936685,
|
|
-39091.574123401486,
|
|
-15576.465376942022,
|
|
-68244.95385272766,
|
|
11126.046697815711,
|
|
-48746.39560909118,
|
|
43644.28613011134,
|
|
-54728.20377276209,
|
|
45048.44339512095,
|
|
-21694.186955877918,
|
|
],
|
|
},
|
|
cornerType: "MITERED",
|
|
material: {
|
|
solidColor: {
|
|
color: {
|
|
rgba: [0, 0, 255, 255],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
];
|
|
|
|
var viewer = new Cesium.Viewer("cesiumContainer");
|
|
var dataSourcePromise = Cesium.CzmlDataSource.load(czml);
|
|
viewer.dataSources.add(dataSourcePromise);
|
|
viewer.zoomTo(dataSourcePromise);
|
|
|
|
//Sandcastle_End
|
|
Sandcastle.finishedLoading();
|
|
}
|
|
if (typeof Cesium !== "undefined") {
|
|
window.startupCalled = true;
|
|
startup(Cesium);
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|