-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Detect and parse data URIs in loadWithXhr #1533
Conversation
* 'X-Custom-Header' : 'some value' | ||
* }).then(function(document) { | ||
* //Do something with the document | ||
* }, function() { |
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.
I could be mistaken, but doesn't this callback provide an error object when it fails? If so we should add it, since this is example code and people might not realize it.
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.
Yeah. I copied this from other places. I updated them all to include the error parameter.
Just the one question/comment. Other than that this looks good and tests pass in Chrome/Firefox/IE11 |
This also probably warrants a CHANGES update, since we now support data uris in our loadXXX functions. |
Fair enough, I added it to Dr. Changes, MD. |
Detect and parse data URIs in loadWithXhr
This will be useful for loading CZML documents with embedded glTF models.