cesium-mars-op-cog 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/mars3d.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -87,11 +87,12 @@ export declare class CogMarsLayer extends mars3d.layer.BaseLayer {
|
|
|
87
87
|
get cogProvider(): CogImageryProvider | null;
|
|
88
88
|
/**
|
|
89
89
|
* 飞行定位到 COG 影像区域
|
|
90
|
-
* 覆盖 BaseLayer.flyTo()
|
|
90
|
+
* 覆盖 BaseLayer.flyTo(),等待 readyPromise 完成后使用 bbox 定位
|
|
91
91
|
*/
|
|
92
92
|
flyTo(options?: {
|
|
93
93
|
duration?: number;
|
|
94
94
|
scale?: number;
|
|
95
|
+
[key: string]: any;
|
|
95
96
|
}): Promise<boolean>;
|
|
96
97
|
/** 销毁 */
|
|
97
98
|
destroy(noDel?: boolean): void;
|
package/dist/index.js
CHANGED
|
@@ -476,7 +476,7 @@ var Z = class extends m.layer.BaseLayer {
|
|
|
476
476
|
return this._cogProvider;
|
|
477
477
|
}
|
|
478
478
|
async flyTo(A) {
|
|
479
|
-
if (
|
|
479
|
+
if (await this.readyPromise, !this._cogProvider) return !1;
|
|
480
480
|
const t = this._cogProvider.bboxDegrees;
|
|
481
481
|
if (t[2] === t[0] || t[3] === t[1]) return !1;
|
|
482
482
|
const e = this._map;
|