@xingm/vmap-cesium-toolbar 0.0.1-alpha.7 → 0.0.1-alpha.8

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.
@@ -20,6 +20,7 @@ interface InitOptions {
20
20
  timeline?: boolean;
21
21
  animation?: boolean;
22
22
  isFly?: boolean;
23
+ flyDuration?: number;
23
24
  baseLayerPicker?: boolean;
24
25
  navigationInstructionsInitiallyVisible?: boolean;
25
26
  clock?: Cesium.Clock;
@@ -35,11 +36,14 @@ interface InitOptions {
35
36
  resolutionScale?: number;
36
37
  orderIndependentTransparency?: boolean;
37
38
  shadows?: boolean;
39
+ depthTestAgainstTerrain?: boolean;
38
40
  terrainExaggeration?: number;
39
41
  maximumScreenSpaceError?: number;
40
42
  maximumNumberOfLoadedTiles?: number;
41
43
  token?: string;
42
44
  cesiumToken?: string;
45
+ success?: () => void;
46
+ cancel?: () => void;
43
47
  }
44
48
  interface MapCenter {
45
49
  latitude: number;
@@ -65,8 +65,8 @@ export interface MeasurementCallback {
65
65
  onClear?: () => void;
66
66
  }
67
67
  export interface ZoomCallback {
68
- onZoomIn?: (beforeLevel: number, afterLevel: number) => void;
69
- onZoomOut?: (beforeLevel: number, afterLevel: number) => void;
68
+ onZoomIn?: (beforeHeight: number, afterHeight: number, currentLevel: number) => void;
69
+ onZoomOut?: (beforeHeight: number, afterHeight: number, currentLevel: number) => void;
70
70
  }
71
71
  export interface MapType {
72
72
  id: string;
@@ -20,6 +20,7 @@ export declare class CesiumMapToolbar {
20
20
  mapTypes: MapType[];
21
21
  private noFlyZoneEntities;
22
22
  private isNoFlyZoneVisible;
23
+ private isNoFlyZoneLoading;
23
24
  private isNoFlyZoneChecked;
24
25
  private readonly noFlyZoneExtrudedHeight;
25
26
  private currentGeoWTFS;
@@ -36,6 +37,10 @@ export declare class CesiumMapToolbar {
36
37
  latitude: number;
37
38
  height: number;
38
39
  });
40
+ /**
41
+ * 监听相机缩放,限制层级范围到 [1, 18],并参考当前底图的 maximumLevel
42
+ */
43
+ private setupCameraZoomLimitListener;
39
44
  setMapTypes(mapTypes: MapType[]): void;
40
45
  setTDToken(TD_Token: string): void;
41
46
  /**
@@ -210,6 +215,11 @@ export declare class CesiumMapToolbar {
210
215
  /**
211
216
  * 根据当前场景模式配置禁飞区多边形
212
217
  */
218
+ /**
219
+ * 创建禁飞区多边形配置选项
220
+ * @param positions - 多边形的顶点坐标数组,使用笛卡尔坐标系
221
+ * @returns 返回一个包含多边形图形配置选项的对象
222
+ */
213
223
  private createNoFlyZonePolygonOptions;
214
224
  /**
215
225
  * 切换机场禁飞区显示状态
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xingm/vmap-cesium-toolbar",
3
- "version": "0.0.1-alpha.6",
3
+ "version": "0.0.1-alpha.7",
4
4
  "description": "A powerful Cesium map toolbar plugin with drawing, measurement, and interaction features",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -36,10 +36,10 @@
36
36
  "license": "MIT",
37
37
  "repository": {
38
38
  "type": "git",
39
- "url": "https://github.com/your-username/vmap-cesium-toolbar.git"
39
+ "url": "https://github.com/benxueyou/vmap-cesium-toolbar.git"
40
40
  },
41
41
  "bugs": {
42
- "url": "https://github.com/your-username/vmap-cesium-toolbar/issues"
42
+ "url": "https://github.com/benxueyou/vmap-cesium-toolbar/issues"
43
43
  },
44
- "homepage": "https://github.com/your-username/vmap-cesium-toolbar#readme"
44
+ "homepage": "https://github.com/benxueyou/vmap-cesium-toolbar#readme"
45
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xingm/vmap-cesium-toolbar",
3
- "version": "0.0.1-alpha.7",
3
+ "version": "0.0.1-alpha.8",
4
4
  "description": "A powerful Cesium map toolbar plugin with drawing, measurement, and interaction features",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -59,10 +59,10 @@
59
59
  "license": "MIT",
60
60
  "repository": {
61
61
  "type": "git",
62
- "url": "https://github.com/your-username/vmap-cesium-toolbar.git"
62
+ "url": "https://github.com/benxueyou/vmap-cesium-toolbar.git"
63
63
  },
64
64
  "bugs": {
65
- "url": "https://github.com/your-username/vmap-cesium-toolbar/issues"
65
+ "url": "https://github.com/benxueyou/vmap-cesium-toolbar/issues"
66
66
  },
67
- "homepage": "https://github.com/your-username/vmap-cesium-toolbar#readme"
67
+ "homepage": "https://github.com/benxueyou/vmap-cesium-toolbar#readme"
68
68
  }