-
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
Adding CZML Examples #3050
Conversation
…nto czml-examples added CZML path example
Thanks @TiffanyLu and @adamdavidcole. We'll do a quick review now. |
Were you able to push the build directory to your |
There is one JSHint error:
This is why Travis CI failed above: https://travis-ci.org/AnalyticalGraphicsInc/cesium/builds/82754199 |
@@ -0,0 +1,80 @@ | |||
<!DOCTYPE html> |
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.
}, | ||
{ | ||
"id" : "Green circle at height", | ||
name: "Green circle at height", |
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.
Throughout all examples, please use strict JSON so name
should be "name"
. In general, all CZML property names should be strings in double quotes so it is easy to store them as JSON.
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.
Ok, I will go through and fix those.
Once I do, how do I update the pull request?
Thanks,
Adam
On Tue, Sep 29, 2015 at 11:09 AM, Patrick Cozzi [email protected]
wrote:
In Apps/Sandcastle/gallery/CZML Circles and Ellipses.html
#3050 (comment)
:+
Loading...
+
+
+<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" : "Green circle at height",
name: "Green circle at height",
Throughout all examples, please use strict JSON so name should be "name".
In general, all CZML property names should be strings in double quotes so
it is easy to store them as JSON.—
Reply to this email directly or view it on GitHub
https://github.com/AnalyticalGraphicsInc/cesium/pull/3050/files#r40684026
.
Hey, this looks pretty cool. Here's a suggestion for code at the bottom of the "CZML Path" demo with the paraglider. This turns on terrain and tracks the entity.
|
"name" : "rectangle with image, above surface", | ||
"rectangle" : { | ||
"show" : true, | ||
"coordinates" : { "wsenDegrees" : [-75, 40, -65, 50] }, |
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.
The aspect ratio of the Cesium logo is off by a lot here, can you fix? Try this:
"coordinates" : { "wsenDegrees" : [-75, 40, -50, 45] },
@emackey good feedback, thanks. @TiffanyLu @adamdavidcole let's make these changes. |
@TiffanyLu @adamdavidcole please merge Cesium master into this branch so GitHub will be able to auto merge this pull request. Right now there is a merge conflict. It is most likely in CHANGES.md and will be easy to resolve. Let me know if you need any help and when this pull request is ready to merge (all feedback addressed and no merge conflict). Thanks! |
"fill" : true, | ||
"material" : { | ||
"image" : { | ||
"image" : { "uri" : "https://raw.githubusercontent.com/AnalyticalGraphicsInc/cesium/master/Apps/Sandcastle/images/Cesium_Logo_Color.jpg" } |
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.
This should use a relative URL to the local Sandcastle file, not a full URL to GitHub.
"fill" : true, | ||
"material" : { | ||
"image" : { | ||
"image" : { "uri" : "/Apps/Sandcastle/images/Cesium_Logo_Color.jpg" } |
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.
Oh, I don't mean to nit-pick, but this path is still absolute, not relative. Please use a relative path, like this:
"image" : { "uri" : "../images/Cesium_Logo_Color.jpg" }
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.
You'll note the absolute path is not working on tiffanylu.com anyway, because it's deployed to a subfolder. The relative path should fix it there too.
Thanks, I will test tomorrow morning when I have access to Windows. In the meantime, is there anything else this pull request needs before we can merge? |
@pjcozzi nope, we're ready! |
No, it looks good. |
Thanks again for this contribution, @TiffanyLu and @adamdavidcole! |
@TiffanyLu and @adamdavidcole, thanks a lot. These are awesome! I'm sure they will save a lot of users a lot of time. I know I'm late to the party so I'm going to write up another issue with some suggestions, but it's mostly minor stuff. I'll also include a model example. |
See #3063 EDIT: I linked to the wrong issue |
in reference to #3027