-
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
Upend resource loading approach #6035
Merged
Merged
Changes from 45 commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
973cfe3
load functions
9ccb83c
core
acedbdb
renderer, most of scene
388869e
Merge branch 'master' into upend-resource-loading
6188fd7
templating [ci skip]
b0f4281
Merge branch 'master' into upend-resource-loading
18f9d51
remaining imagery providers [ci skip]
5d92dd9
Got ArcGisMapServerImageryProvider, BingMapsImageryProvider and Model…
2b7fafc
Fixed a bunch more resource code.
9e66863
Fixed UrlTemplateImageryProvider
9fb5bfd
Got almost all imagery working and fixed Core/load*.js functions.
dc77bbd
Fixed Terrain providers.
c9d1f6d
Finished Model, ModelInstanceCollection, SingleTileImageryProvider, G…
b68a1e8
Most of KML is done.
56ce327
Trying to fix sourceUri's for Datasources.
811982f
Cleanup of resource and finished KML.
6eaee54
Got tests passing.
5255195
Cleanup and eslint fixes.
e4bf6dd
Got all tests passing. Added some doc.
ef42d79
Added retry logic.
9849fc8
Fixed tests, KML and WMTS.
194d522
Merged in master.
c507b39
Fixed tests.
bdd5fe6
Added error to retry logic and fixed entity models.
ad0266c
Hooked up loadImage for retries.
31dd337
Doc update.
a23c79a
Cleanup
04dacf0
Added handling for document.baseUri in getAbsoluteUri.
6254154
Fixes
c5a5914
Fixed crash.
791cc38
Fixed bad terrain provider paths.
fb0f73a
Deprecated unneeded parameters for imagery, terrain, models
dd9866e
Finished up deprecations.
546f2a5
Removed joinUrls.
cd547d1
Made Resource.retryOnError async.
ad19d90
More tweaks.
779b41f
Added Resource tests.
064418c
Merge branch 'upend-resource-loading' into deprecation-for-resources
081b1ea
Added tests.
7d24af5
Removed deprecated options from private classes.
d5ca40f
Merge pull request #6120 from AnalyticalGraphicsInc/deprecation-for-r…
335fa61
eslint fix.
389fe6d
More tests.
7e2771a
More test fixes.
389f963
Added deprecation and tests for createTileMapServiceImageryProvider
fda9e3c
Added workaround for broken tilesets.
ca33f8c
Merge pull request #6125 from AnalyticalGraphicsInc/root-tiles-hack
mramato 998f293
Fixes from PR comments.
abd04ab
More cleanup from PR comments.
b4edc87
Removed isDirectory property.
9a528e9
Fixed CesiumTerrainProvider parentUrl resolving.
a9e489e
Update CHANGES.md
303eef6
Reverted request changes that aren't needed.
366db6d
Reverted request changes that aren't needed.
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
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
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ define([ | |
'./JulianDate', | ||
'./LeapSecond', | ||
'./loadJson', | ||
'./Resource', | ||
'./RuntimeError', | ||
'./TimeConstants', | ||
'./TimeStandard' | ||
|
@@ -21,6 +22,7 @@ define([ | |
JulianDate, | ||
LeapSecond, | ||
loadJson, | ||
Resource, | ||
RuntimeError, | ||
TimeConstants, | ||
TimeStandard) { | ||
|
@@ -95,7 +97,7 @@ define([ | |
} else if (defined(options.url)) { | ||
// Download EOP data. | ||
var that = this; | ||
this._downloadPromise = when(loadJson(options.url), function(eopData) { | ||
this._downloadPromise = when(loadJson(new Resource({url: options.url})), function(eopData) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file can be reverted, right? No reason to manually construct the Resource since |
||
onDataReady(that, eopData); | ||
}, function() { | ||
that._dataError = 'An error occurred while retrieving the EOP data from the URL ' + options.url + '.'; | ||
|
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.
Since we're modifying something the user passed in, should we clone this first? The larger issue here is that terrain requires
isDirectory
to be true, but now that value has to be manually set if the url doesn't end in/
? Would a better option be to havecreateDerivedResource
take an option likeisDirectory:true
instead of having it be a property of the Resource itself?@shunter thoughts?
P.S. URIs are not file paths, so
isDirectory
is not a good name, perhapsisBaseUri
or something similar?