-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding CZML Examples #3050
Merged
+3,190
−0
Merged
Adding CZML Examples #3050
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
85154d8
Update CHANGES.md
pjcozzi 77b1304
Basic CZML billboard and label example
pjcozzi 01e7189
added examples for polyline, rectangle, ellipsoids & polygon
sen-lu 3069a6d
added polygon example, amended polygon+time to include perPositionHeight
sen-lu 371b7f7
CZML examples for circles and ellipses
467e17c
added example of CZML point
cf89588
add images to some of the czml examples
8a4bd4f
added three more images for the CZML examples
c62625b
Added dynamic polygon - interpolation CZML example
sen-lu dae16c8
added CZML dynamic polygon w/ intervals
sen-lu 59610e2
coord map, point dynamic, wall
925c813
merge
1bf509e
tidied up polygon czml examples
sen-lu fd8609b
dynamic points with radians
97802e1
fixed point time dynamic czml example
8020e05
added CZML path example
sen-lu 3fc8db1
Merge branch 'czml-examples' of https://github.com/tiffanylu/cesium i…
sen-lu 6488fed
added screenshots
909f839
Merge branch 'czml-examples' of github.com:tiffanylu/cesium into czml…
6bd7410
fixed accidental unstaging of point time dynamic example
sen-lu 42cbdbd
fixed misnamed czml doc is
a1838ef
merge
e720c47
fixed misnamed ID
7e7f922
removed extra comma
971230e
made changes to CZML Rectangle.html
sen-lu 18d6313
made changes to CZML Path.html
sen-lu 7fc8dd4
added names and ids to tiff's czml examples
sen-lu da32554
made changes based on pull request comments
71019a5
made suggested changes in CZML Path and Rectangle
sen-lu ccbdf72
removed extrudedheight from czml polygon - interpolating references, …
sen-lu 0b58564
Merge branch 'master' into czml-examples
sen-lu 3468b5d
Merge AnalyticalGraphicsInc/cesium/master to czml-examples
pjcozzi 3acd909
relative path in CZML rectangle
sen-lu 3b124b4
removed perPositionHeights from dynamicPolygon in CZML polygon - inte…
sen-lu 583fe6a
updated screenshots, standardized formatting across all CZML examples
sen-lu b8eef71
Tweak points
pjcozzi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> <!-- Use Chrome Frame in IE --> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> | ||
<meta name="description" content="Basic CZML billboard and label."> | ||
<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="../../../ThirdParty/requirejs-2.1.9/require.js"></script> | ||
<script type="text/javascript"> | ||
require.config({ | ||
baseUrl : '../../../Source', | ||
waitSeconds : 60 | ||
}); | ||
</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" : "Basic CZML billboard and label", | ||
"version" : "1.0" | ||
}, { | ||
"id" : "some-unique-id", | ||
"name" : "AGI", | ||
"description" : "<!--HTML-->\r\n<p>\r\nAnalytical Graphics, Inc. (AGI) founded Cesium.\r\n</p>", | ||
"billboard" : { | ||
"image" : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACvSURBVDhPrZDRDcMgDAU9GqN0lIzijw6SUbJJygUeNQgSqepJTyHG91LVVpwDdfxM3T9TSl1EXZvDwii471fivK73cBFFQNTT/d2KoGpfGOpSIkhUpgUMxq9DFEsWv4IXhlyCnhBFnZcFEEuYqbiUlNwWgMTdrZ3JbQFoEVG53rd8ztG9aPJMnBUQf/VFraBJeWnLS0RfjbKyLJA8FkT5seDYS1Qwyv8t0B/5C2ZmH2/eTGNNBgMmAAAAAElFTkSuQmCC", | ||
"scale" : 1.5 | ||
}, | ||
"label" : { | ||
"fillColor" : { | ||
"rgba" : [0, 255, 255, 255] | ||
}, | ||
"font" : "11pt Lucida Console", | ||
"horizontalOrigin" : "LEFT", | ||
"outlineColor" : { | ||
"rgba":[0, 0, 0, 255] | ||
}, | ||
"outlineWidth" : 2, | ||
"pixelOffset" : { | ||
"cartesian2" : [12, 0] | ||
}, | ||
"style" : "FILL_AND_OUTLINE", | ||
"text" : "AGI" | ||
}, | ||
"position" : { | ||
"cartesian" : [ | ||
1216469.9357990976, -4736121.71856379, 4081386.8856866374 | ||
] | ||
} | ||
} | ||
]; | ||
|
||
var viewer = new Cesium.Viewer('cesiumContainer'); | ||
viewer.dataSources.add(Cesium.CzmlDataSource.load(czml)); | ||
//Sandcastle_End | ||
Sandcastle.finishedLoading(); | ||
} | ||
if (typeof Cesium !== "undefined") { | ||
startup(Cesium); | ||
} else if (typeof require === "function") { | ||
require(["Cesium"], startup); | ||
} | ||
</script> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> <!-- Use Chrome Frame in IE --> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> | ||
<meta name="description" content="CZML Circles and Ellipses"> | ||
<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="../../../ThirdParty/requirejs-2.1.9/require.js"></script> | ||
<script type="text/javascript"> | ||
require.config({ | ||
baseUrl : '../../../Source', | ||
waitSeconds : 60 | ||
}); | ||
</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: Circles and Ellipses", | ||
"version" : "1.0" | ||
}, | ||
{ | ||
"id" : "shape1", | ||
"name" : "Green circle at height", | ||
"position" : { | ||
"cartographicDegrees" : [-111.0, 40.0, 150000.0] | ||
}, | ||
"ellipse" : { | ||
"semiMinorAxis" : 300000.0, | ||
"semiMajorAxis" : 300000.0, | ||
"height" : 200000.0, | ||
"material" : { | ||
"solidColor" : { | ||
"color" : { | ||
"rgba" : [0, 255, 0, 255] | ||
} | ||
} | ||
}, | ||
"show" : true | ||
} | ||
}, | ||
{ | ||
"id" : "shape2", | ||
"name" : "Red ellipse on surface", | ||
"position" : { | ||
"cartographicDegrees" : [-103.0, 40.0, 0] | ||
}, | ||
"ellipse" : { | ||
"semiMinorAxis" : 250000.0, | ||
"semiMajorAxis" : 400000.0, | ||
"height" : 0, | ||
"material" : { | ||
"solidColor" : { | ||
"color" : { | ||
"rgba" : [255, 0, 0, 127] | ||
} | ||
} | ||
}, | ||
"outline" : true, | ||
"outlineColor" : { | ||
"rgba" : [255, 0, 0, 255] | ||
}, | ||
"show" : true | ||
|
||
} | ||
}, { | ||
"id" : "shape3", | ||
"name" : "Blue translucent, rotated, and extruded ellipse with outline", | ||
"position" : { | ||
"cartographicDegrees" : [-95.0, 40.0, 100000.0] | ||
}, | ||
"ellipse" : { | ||
"semiMinorAxis" : 150000.0, | ||
"semiMajorAxis" : 300000.0, | ||
"extrudedHeight" : { | ||
"number" : 200000.0 | ||
}, | ||
"rotation" : { | ||
"number" : 0.78539 | ||
}, | ||
"material" : { | ||
"solidColor" : { | ||
"color" : { | ||
"rgba" : [0, 0, 255, 127] | ||
} | ||
} | ||
}, | ||
"outline" : true, | ||
"show" : true | ||
} | ||
} | ||
]; | ||
|
||
|
||
var viewer = new Cesium.Viewer('cesiumContainer'); | ||
viewer.dataSources.add(Cesium.CzmlDataSource.load(czml)); | ||
|
||
//Sandcastle_End | ||
Sandcastle.finishedLoading(); | ||
} | ||
if (typeof Cesium !== "undefined") { | ||
startup(Cesium); | ||
} else if (typeof require === "function") { | ||
require(["Cesium"], startup); | ||
} | ||
</script> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we update
CZML Billboard and Label.jpg
so the label is not missing the "A" in "AGI?" Just use Firefox to take the screenshot.