|
|
|
|
|
|
|
|
distance: Number.MAX_VALUE, |
|
|
distance: Number.MAX_VALUE, |
|
|
pixel: Number.MAX_VALUE |
|
|
pixel: Number.MAX_VALUE |
|
|
} |
|
|
} |
|
|
this._readyPromise = Cesium.when.defer() |
|
|
|
|
|
|
|
|
this._readyPromise = new Promise() |
|
|
|
|
|
|
|
|
this.loadConfig(options.url) |
|
|
this.loadConfig(options.url) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
S3MTilesLayer.prototype.loadConfig = function(url) { |
|
|
S3MTilesLayer.prototype.loadConfig = function(url) { |
|
|
let that = this |
|
|
let that = this |
|
|
Cesium.when(url) |
|
|
|
|
|
|
|
|
Promise.resolve(url) |
|
|
.then(function(url) { |
|
|
.then(function(url) { |
|
|
let basePath |
|
|
let basePath |
|
|
let resource = Cesium.Resource.createIfNeeded(url) |
|
|
let resource = Cesium.Resource.createIfNeeded(url) |