@xingm/vmap-cesium-toolbar 0.0.1-alpha.4 → 0.0.1-alpha.5
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/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/libs/CesiumMapLoader.d.ts +1 -0
- package/dist/package.json +2 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -101,6 +101,7 @@ export interface MapCenter {
|
|
|
101
101
|
// 初始化选项接口
|
|
102
102
|
export interface InitOptions {
|
|
103
103
|
token?: string;
|
|
104
|
+
cesiumToken?: string;
|
|
104
105
|
terrain?: any; // Cesium.Terrain
|
|
105
106
|
terrainProvider?: any; // Cesium.TerrainProvider
|
|
106
107
|
mapType?: string;
|
|
@@ -205,7 +206,8 @@ export declare class DrawHelper {
|
|
|
205
206
|
export declare function initCesium(
|
|
206
207
|
containerId: string,
|
|
207
208
|
options: InitOptions,
|
|
208
|
-
mapCenter?: MapCenter
|
|
209
|
+
mapCenter?: MapCenter,
|
|
210
|
+
cesiumToken?: String
|
|
209
211
|
): Promise<{ viewer: Viewer; initialCenter: MapCenter }>;
|
|
210
212
|
|
|
211
213
|
// 默认导出
|
package/dist/index.js
CHANGED
|
@@ -2078,7 +2078,7 @@ class F {
|
|
|
2078
2078
|
}
|
|
2079
2079
|
}
|
|
2080
2080
|
async function Y(d, e, t = { longitude: 120.2052342, latitude: 30.2489634, height: 1e3, pitch: -45, heading: 0 }, n = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI3M2M3NWU1Ni0xZmJkLTRkNjAtOTk4NC0wZDZhNWFiOWJlZDEiLCJpZCI6MzMxNTg1LCJpYXQiOjE3NTUyMjQ2MzB9.WBUG7ctHKtOrnay1ng8JNfaNgngbkNgOmRXP59OJ7ME") {
|
|
2081
|
-
p.defaultAccessToken = n;
|
|
2081
|
+
p.defaultAccessToken = e.cesiumToken || n;
|
|
2082
2082
|
const s = new O(d, {
|
|
2083
2083
|
animation: !1,
|
|
2084
2084
|
// 禁用动画
|