mars3d 3.4.0 → 3.4.3

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/mars3d.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  /**
3
3
  * Mars3D三维可视化平台 mars3d
4
4
  *
5
- * 版本信息:v3.4.0
6
- * 编译日期:2022-07-15 14:26:40
5
+ * 版本信息:v3.4.3
6
+ * 编译日期:2022-08-09 14:06:55
7
7
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
8
8
  * 使用单位:免费公开版 ,2022-06-01
9
9
  */
@@ -1063,6 +1063,7 @@ declare enum LayerType {
1063
1063
  graphic,
1064
1064
  graphicGroup,
1065
1065
  geojson,
1066
+ busineData,
1066
1067
  lodGraphic,
1067
1068
  wfs,
1068
1069
  arcgis_wfs,
@@ -1268,8 +1269,8 @@ declare namespace MaterialType {
1268
1269
  const Grid: string;
1269
1270
  /**
1270
1271
  * 面状:棋盘
1271
- * @property [evenColor = Cesium.Color.WHITE] - 主色
1272
- * @property [oddColor = Cesium.Color.BLACK] - 衬色,棋盘中另外一个颜色
1272
+ * @property [lightColor = Cesium.Color.WHITE] - 主色
1273
+ * @property [darkColor = Cesium.Color.BLACK] - 衬色,棋盘中另外一个颜色
1273
1274
  * @property [repeat = new Cesium.Cartesian2(2.0, 2.0)] - 数量,在每个方向重复的次数
1274
1275
  */
1275
1276
  const Checkerboard: string;
@@ -1854,11 +1855,11 @@ declare namespace LocationBar {
1854
1855
  * @param [options] - 参数对象,包括以下:
1855
1856
  * @param [options.template] - 展示的内容格式化字符串, 为数组时按多语言顺序定义,如[中文、繁体、英文]
1856
1857
  * 支持以下模版配置:
1857
- * 【鼠标所在位置】 经度:{lng}, 纬度:{lat}, 海拔:{alt}米,
1858
+ * 【鼠标所在位置】 经度:{lng}, 纬度:{lat}, 海拔:{alt}米, 横{crsx} 纵{crsy}
1858
1859
  * 【相机的】 方向角度:{heading}, 俯仰角度:{pitch}, 视高:{cameraHeight}米,
1859
1860
  * 【地图的】 层级:{level}
1860
1861
  * @param [options.latDecimal = LngLatPoint.FormatLength] - 保留的{lat}和{lng}的小数位
1861
- * @param [options.crs] - 按指定坐标系显示坐标值, 配置后template可以加模板:【鼠标所在位置对应的crs坐标系】 X或经度值:{crsx}, Y或纬度值:{crsy}
1862
+ * @param [options.crs] - 按指定坐标系显示坐标值,true时取值CRS.CGCS2000_GK_Zone_3,配置后template可以加模板:【鼠标所在位置对应的crs坐标系】 X或经度值:{crsx}, Y或纬度值:{crsy}
1862
1863
  * @param [options.crsDecimal = 1] - 保留的{crsx}和{crsy}的小数位
1863
1864
  * @param [options.style] - 可以CSS样式,如:
1864
1865
  * @param [options.style.top] - css定位top位置, 如 top: '10px'
@@ -1877,7 +1878,7 @@ declare class LocationBar extends BaseControl {
1877
1878
  constructor(options?: {
1878
1879
  template?: string | string[];
1879
1880
  latDecimal?: number;
1880
- crs?: string | CRS;
1881
+ crs?: string | CRS | boolean;
1881
1882
  crsDecimal?: number;
1882
1883
  style?: {
1883
1884
  top?: string;
@@ -1899,6 +1900,64 @@ declare class LocationBar extends BaseControl {
1899
1900
  readonly locationData: any;
1900
1901
  }
1901
1902
 
1903
+ /**
1904
+ * 地图分屏对比 控件,
1905
+ * 默认自动读取当前Map配置,也会合并传入的scene、control等参数值
1906
+ * @param [options] - 参数对象,包括以下:
1907
+ * @param [options.basemaps] - 底图图层配置
1908
+ * @param [options.layers] - 可以叠加显示的图层配置
1909
+ * @param [options.scene] - 场景参数
1910
+ * @param [options.control] - 添加的控件
1911
+ * @param [options.effect] - 添加的特效
1912
+ * @param [options.mouse] - 鼠标操作相关配置参数
1913
+ * @param [options.terrain] - 地形服务配置
1914
+ * @param [options.className = "mars3d-container mars3d-mapCompare"] - 对比地图DIV的样式名称
1915
+ * @param [options.id = createGuid()] - 对象的id标识
1916
+ * @param [options.enabled = true] - 对象的启用状态
1917
+ * @param [options.parentContainer] - 控件加入的父容器,默认为map所在的DOM map.container
1918
+ * @param [options.insertIndex] - 可以自定义插入到父容器中的index顺序,默认是插入到最后面。
1919
+ * @param [options.insertBefore] - 可以自定义插入到指定兄弟容器的前面,与insertIndex二选一。
1920
+ */
1921
+ declare class MapCompare extends BaseControl {
1922
+ constructor(options?: {
1923
+ basemaps?: Map.basemapOptions[];
1924
+ layers?: Map.layerOptions[];
1925
+ scene?: Map.sceneOptions;
1926
+ control?: Map.controlOptions;
1927
+ effect?: Map.effectOptions;
1928
+ mouse?: Map.mouseOptions;
1929
+ terrain?: Map.terrainOptions;
1930
+ className?: string;
1931
+ id?: string | number;
1932
+ enabled?: boolean;
1933
+ parentContainer?: HTMLElement;
1934
+ insertIndex?: number;
1935
+ insertBefore?: HTMLElement;
1936
+ });
1937
+ /**
1938
+ * 对比的地图对象
1939
+ */
1940
+ mapEx: Map;
1941
+ /**
1942
+ * 对象添加到地图前创建一些对象的钩子方法,
1943
+ * 只会调用一次
1944
+ * @returns 无
1945
+ */
1946
+ _mountedHook(): void;
1947
+ /**
1948
+ * 对象添加到地图上的创建钩子方法,
1949
+ * 每次add时都会调用
1950
+ * @returns 无
1951
+ */
1952
+ _addedHook(): void;
1953
+ /**
1954
+ * 对象从地图上移除的创建钩子方法,
1955
+ * 每次remove时都会调用
1956
+ * @returns 无
1957
+ */
1958
+ _removedHook(): void;
1959
+ }
1960
+
1902
1961
  /**
1903
1962
  * 卷帘对比 控件
1904
1963
  * @param [options] - 参数对象,包括以下:
@@ -1923,18 +1982,18 @@ declare class MapSplit extends BaseControl {
1923
1982
  /**
1924
1983
  * 左侧区域瓦片图层
1925
1984
  */
1926
- leftLayer: BaseTileLayer;
1985
+ leftLayer: BaseTileLayer | BaseTileLayer[] | any;
1927
1986
  /**
1928
1987
  * 右侧区域瓦片图层
1929
1988
  */
1930
- rightLayer: BaseTileLayer;
1989
+ rightLayer: BaseTileLayer | BaseTileLayer[] | any;
1931
1990
  /**
1932
1991
  * 对瓦片图层设置卷帘方向
1933
- * @param layer - 图层
1992
+ * @param layer - 图层 或图层构造参数
1934
1993
  * @param [splitDirection] - 图层显示的方向
1935
- * @returns
1994
+ * @returns 图层对象
1936
1995
  */
1937
- setLayerSplitDirection(layer: BaseTileLayer | GroupLayer, splitDirection?: Cesium.SplitDirection): void;
1996
+ setLayerSplitDirection(layer: BaseTileLayer | GroupLayer | any, splitDirection?: Cesium.SplitDirection): BaseTileLayer | GroupLayer;
1938
1997
  /**
1939
1998
  * 控件类型
1940
1999
  */
@@ -1960,7 +2019,7 @@ declare class MapSplit extends BaseControl {
1960
2019
  }
1961
2020
 
1962
2021
  /**
1963
- * 鼠标按下指示图标,比如鼠标旋转、放大时
2022
+ * 鼠标滚轮缩放美化样式(指示图标)控件
1964
2023
  * @param [options] - 参数对象,包括以下:
1965
2024
  * @param [options.id = createGuid()] - 对象的id标识
1966
2025
  * @param [options.enabled = true] - 对象的启用状态
@@ -2919,8 +2978,8 @@ declare class BlackAndWhiteEffect extends BaseEffect {
2919
2978
  * @param [options.enabled = true] - 对象的启用状态
2920
2979
  * @param [options.contrast = 128] - 对比度,取值范围[-255.0,255.0]
2921
2980
  * @param [options.brightness = -0.3] - 亮度, 将输入纹理的RGB值转换为色相、饱和度和亮度(HSB),然后将该值添加到亮度中。
2922
- * @param [options.delta = 1.0] - 增量
2923
- * @param [options.sigma = 3.78] - delta和sigma用于计算高斯滤波器的权值。方程是 <code>exp((-0.5 * delta * delta) / (sigma * sigma))</code>。
2981
+ * @param [options.delta = 1.0] - 增量权值
2982
+ * @param [options.sigma = 3.78] - 滤波权值,delta和sigma用于计算高斯滤波器的权值。方程是 <code>exp((-0.5 * delta * delta) / (sigma * sigma))</code>。
2924
2983
  * @param [options.stepSize = 5.0] - 步长,是下一个texel的距离
2925
2984
  */
2926
2985
  declare class BloomEffect extends BaseEffect {
@@ -3000,7 +3059,7 @@ declare class BloomTargetEffect extends BaseEffect {
3000
3059
  }
3001
3060
 
3002
3061
  /**
3003
- * 亮度
3062
+ * 高亮特效
3004
3063
  * @param [options] - 参数对象,包括以下:
3005
3064
  * @param [options.enabled = true] - 对象的启用状态
3006
3065
  * @param [options.brightness = 2.0] - 亮度值
@@ -3056,13 +3115,21 @@ declare class DepthOfFieldEffect extends BaseEffect {
3056
3115
  * @param [options] - 参数对象,包括以下:
3057
3116
  * @param [options.enabled = true] - 对象的启用状态
3058
3117
  * @param [options.fogByDistance = new Cesium.Cartesian4(10, 0.0, 1000, 0.9)] - 雾强度
3118
+ * @param [options.fogByDistance_near] - 最近距离,可以与fogByDistance二选一
3119
+ * @param [options.fogByDistance_nearValue] - 最近强度,可以与fogByDistance二选一
3120
+ * @param [options.fogByDistance_far] - 最远距离,可以与fogByDistance二选一
3121
+ * @param [options.fogByDistance_farValue] - 最远强度,可以与fogByDistance二选一
3059
3122
  * @param [options.color = Cesium.Color.WHITE] - 雾颜色
3060
- * @param [options.maxHeight = 9000] - 最高限定高度,超出该高度不显示雾场景效果
3123
+ * @param [options.maxHeight = 9000] - 最大高度,限定超出该高度不显示雾场景效果
3061
3124
  */
3062
3125
  declare class FogEffect extends BaseEffect {
3063
3126
  constructor(options?: {
3064
3127
  enabled?: boolean;
3065
3128
  fogByDistance?: Cesium.Cartesian4;
3129
+ fogByDistance_near?: number;
3130
+ fogByDistance_nearValue?: number;
3131
+ fogByDistance_far?: number;
3132
+ fogByDistance_farValue?: number;
3066
3133
  color?: Cesium.Color;
3067
3134
  maxHeight?: number;
3068
3135
  });
@@ -3115,7 +3182,7 @@ declare class NightVisionEffect extends BaseEffect {
3115
3182
 
3116
3183
  declare namespace OutlineEffect {
3117
3184
  /**
3118
- * 选中对象的 轮廓线描边效果 支持的参数信息
3185
+ * 对象轮廓描边效果 支持的参数信息
3119
3186
  * @property [width = 6] - 线宽,单位:像素px
3120
3187
  * @property [color = Cesium.Color.WHITE] - 轮廓线 颜色
3121
3188
  * @property [colorHidden = color] - 被遮挡的轮廓线 颜色
@@ -3140,7 +3207,7 @@ declare namespace OutlineEffect {
3140
3207
  }
3141
3208
 
3142
3209
  /**
3143
- * 选中对象的 轮廓线描边效果。
3210
+ * 对象轮廓描边效果
3144
3211
  * @param [options] - 参数对象
3145
3212
  * @param [options.eventType = "click"] - 高亮触发的事件类型,默认为单击。可选值:单击、鼠标移入,false时不内部控制
3146
3213
  * @param [options.enabled = true] - 对象的启用状态
@@ -3203,18 +3270,18 @@ declare class OutlineEffect extends BaseEffect {
3203
3270
  }
3204
3271
 
3205
3272
  /**
3206
- * 下雨效果
3273
+ * 雨天气 效果
3207
3274
  * @param [options] - 参数对象,包括以下:
3208
3275
  * @param [options.enabled = true] - 对象的启用状态
3276
+ * @param [options.size = 20] - 粒子大小
3209
3277
  * @param [options.speed = 10] - 速度
3210
- * @param [options.size = 20] - 雨粒子大小
3211
- * @param [options.direction = -30] - 雨的方向(度),0度垂直向下
3278
+ * @param [options.direction = -30] - 方向(度),0度垂直向下
3212
3279
  */
3213
3280
  declare class RainEffect extends BaseEffect {
3214
3281
  constructor(options?: {
3215
3282
  enabled?: boolean;
3216
- speed?: number;
3217
3283
  size?: number;
3284
+ speed?: number;
3218
3285
  direction?: number;
3219
3286
  });
3220
3287
  /**
@@ -3236,7 +3303,7 @@ declare class RainEffect extends BaseEffect {
3236
3303
  * @param [options] - 参数对象,包括以下:
3237
3304
  * @param [options.enabled = true] - 对象的启用状态
3238
3305
  * @param [options.alpha = 1.0] - 覆盖强度 0-1
3239
- * @param [options.maxHeight = 9000] - 最高限定高度,超出该高度不显示积雪效果
3306
+ * @param [options.maxHeight = 9000] - 最大高度,限定超出该高度不显示积雪效果
3240
3307
  */
3241
3308
  declare class SnowCoverEffect extends BaseEffect {
3242
3309
  constructor(options?: {
@@ -3255,7 +3322,7 @@ declare class SnowCoverEffect extends BaseEffect {
3255
3322
  }
3256
3323
 
3257
3324
  /**
3258
- * 下雪效果
3325
+ * 雪天气 效果
3259
3326
  * @param [options] - 参数对象,包括以下:
3260
3327
  * @param [options.enabled = true] - 对象的启用状态
3261
3328
  * @param [options.speed = 10] - 速度
@@ -3306,10 +3373,17 @@ declare namespace BaseGraphic {
3306
3373
  * graphic.on(mars3d.EventType.click, function (event) {
3307
3374
  * console.log('单击了矢量数据对象', event)
3308
3375
  * })
3309
- * @property add - 添加对象
3310
- * @property remove - 移除对象
3311
- * @property show - 显示了对象
3312
- * @property hide - 隐藏了对象
3376
+ * @property add - 本身被添加
3377
+ * @property remove - 本身被移除
3378
+ * @property show - 显示了对象本身
3379
+ * @property hide - 隐藏了对象本身
3380
+ * @property updatePosition - 更新了坐标位置
3381
+ * @property updateStyle - 更新了style对象
3382
+ * @property updateAttr - 更新了attr对象
3383
+ * @property click - 左键单击 鼠标事件 【仅支持交互的相关对象内存在】
3384
+ * @property rightClick - 右键单击 鼠标事件
3385
+ * @property mouseOver - 鼠标移入 鼠标事件
3386
+ * @property mouseOut - 鼠标移出 鼠标事件
3313
3387
  * @property popupOpen - popup弹窗打开后
3314
3388
  * @property popupClose - popup弹窗关闭
3315
3389
  * @property tooltipOpen - tooltip弹窗打开后
@@ -3317,12 +3391,36 @@ declare namespace BaseGraphic {
3317
3391
  * @property contextMenuOpen - 右键菜单 打开后
3318
3392
  * @property contextMenuClose - 右键菜单 关闭
3319
3393
  * @property contextMenuClick - 右键菜单 单击某一项后
3394
+ * @property highlightOpen - highlight高亮后
3395
+ * @property highlightClose - highlight关闭后
3396
+ * @property postRender - 每帧渲染 【仅DIV或Popup相关对象内存在】
3397
+ * @property drawStart - 开始绘制 标绘事件 【仅支持标绘的相关对象内存在】
3398
+ * @property drawMouseMove - 正在移动鼠标中,绘制过程中鼠标移动了点 标绘事件
3399
+ * @property drawAddPoint - 绘制过程中增加了点 标绘事件
3400
+ * @property drawRemovePoint - 绘制过程中删除了最后一个点 标绘事件
3401
+ * @property drawCreated - 创建完成 标绘事件
3402
+ * @property editStart - 开始编辑 标绘事件 【仅支持编辑的相关对象内存在】
3403
+ * @property editMouseDown - 移动鼠标按下左键(LEFT_DOWN)标绘事件
3404
+ * @property editMouseMove - 正在移动鼠标中,正在编辑拖拽修改点中(MOUSE_MOVE) 标绘事件
3405
+ * @property editMovePoint - 编辑修改了点(LEFT_UP)标绘事件
3406
+ * @property editRemovePoint - 编辑删除了点 标绘事件
3407
+ * @property editStyle - 图上编辑修改了相关style属性 标绘事件
3408
+ * @property editStop - 停止编辑 标绘事件
3409
+ * @property load - gltf模型加载完成后【仅gltf模型相关对象存在】
3410
+ * @property stop - 模型addDynamicPosition添加的动态点,到时时间停止后触发【仅addDynamicPosition动态点时存在】
3320
3411
  */
3321
3412
  type EventType = {
3322
3413
  add: string;
3323
3414
  remove: string;
3324
3415
  show: string;
3325
3416
  hide: string;
3417
+ updatePosition: string;
3418
+ updateStyle: string;
3419
+ updateAttr: string;
3420
+ click: string;
3421
+ rightClick: string;
3422
+ mouseOver: string;
3423
+ mouseOut: string;
3326
3424
  popupOpen: string;
3327
3425
  popupClose: string;
3328
3426
  tooltipOpen: string;
@@ -3330,6 +3428,23 @@ declare namespace BaseGraphic {
3330
3428
  contextMenuOpen: string;
3331
3429
  contextMenuClose: string;
3332
3430
  contextMenuClick: string;
3431
+ highlightOpen: string;
3432
+ highlightClose: string;
3433
+ postRender: string;
3434
+ drawStart: string;
3435
+ drawMouseMove: string;
3436
+ drawAddPoint: string;
3437
+ drawRemovePoint: string;
3438
+ drawCreated: string;
3439
+ editStart: string;
3440
+ editMouseDown: string;
3441
+ editMouseMove: string;
3442
+ editMovePoint: string;
3443
+ editRemovePoint: string;
3444
+ editStyle: string;
3445
+ editStop: string;
3446
+ load: string;
3447
+ stop: string;
3333
3448
  };
3334
3449
  }
3335
3450
 
@@ -4416,55 +4531,6 @@ declare class FrustumCombine extends BasePointCombine {
4416
4531
  });
4417
4532
  }
4418
4533
 
4419
- declare namespace ModelCombine {
4420
- /**
4421
- * 当前类支持的{@link EventType}事件类型
4422
- * @example
4423
- * //绑定监听事件
4424
- * graphic.on(mars3d.EventType.load, function (event) {
4425
- * console.log('模型加载完成', event)
4426
- * })
4427
- * @property load - 完成加载,执行所有内部处理后
4428
- * @property add - 添加对象
4429
- * @property remove - 移除对象
4430
- * @property show - 显示了对象
4431
- * @property hide - 隐藏了对象
4432
- * @property popupOpen - popup弹窗打开后
4433
- * @property popupClose - popup弹窗关闭
4434
- * @property tooltipOpen - tooltip弹窗打开后
4435
- * @property tooltipClose - tooltip弹窗关闭
4436
- * @property contextMenuOpen - 右键菜单 打开后
4437
- * @property contextMenuClose - 右键菜单 关闭
4438
- * @property contextMenuClick - 右键菜单 单击某一项后
4439
- * @property highlightOpen - highlight高亮后
4440
- * @property highlightClose - highlight关闭后
4441
- * @property click - 左键单击 鼠标事件
4442
- * @property rightClick - 右键单击 鼠标事件
4443
- * @property mouseOver - 鼠标移入 鼠标事件
4444
- * @property mouseOut - 鼠标移出 鼠标事件
4445
- */
4446
- type EventType = {
4447
- load: string;
4448
- add: string;
4449
- remove: string;
4450
- show: string;
4451
- hide: string;
4452
- popupOpen: string;
4453
- popupClose: string;
4454
- tooltipOpen: string;
4455
- tooltipClose: string;
4456
- contextMenuOpen: string;
4457
- contextMenuClose: string;
4458
- contextMenuClick: string;
4459
- highlightOpen: string;
4460
- highlightClose: string;
4461
- click: string;
4462
- rightClick: string;
4463
- mouseOver: string;
4464
- mouseOut: string;
4465
- };
4466
- }
4467
-
4468
4534
  /**
4469
4535
  * 大数据 gltf小模型集合 (合并渲染) Primitive图元 矢量对象
4470
4536
  * @param options - 参数对象,包括以下:
@@ -6092,64 +6158,6 @@ declare namespace DivGraphic {
6092
6158
  setHeight?: number | string;
6093
6159
  addHeight?: number | string;
6094
6160
  };
6095
- /**
6096
- * 当前类支持的{@link EventType}事件类型
6097
- * @example
6098
- * //绑定监听事件
6099
- * graphic.on(mars3d.EventType.click, function (event) {
6100
- * console.log('单击了矢量数据对象', event)
6101
- * })
6102
- * @property add - 添加对象
6103
- * @property remove - 移除对象
6104
- * @property show - 显示了对象
6105
- * @property hide - 隐藏了对象
6106
- * @property popupOpen - popup弹窗打开后
6107
- * @property popupClose - popup弹窗关闭
6108
- * @property tooltipOpen - tooltip弹窗打开后
6109
- * @property tooltipClose - tooltip弹窗关闭
6110
- * @property contextMenuOpen - 右键菜单 打开后
6111
- * @property contextMenuClose - 右键菜单 关闭
6112
- * @property contextMenuClick - 右键菜单 单击某一项后
6113
- * @property highlightOpen - highlight高亮后
6114
- * @property highlightClose - highlight关闭后
6115
- * @property change - 变化了
6116
- * @property click - 左键单击 鼠标事件
6117
- * @property rightClick - 右键单击 鼠标事件
6118
- * @property mouseOver - 鼠标移入 鼠标事件
6119
- * @property mouseOut - 鼠标移出 鼠标事件
6120
- * @property drawStart - 开始绘制 标绘事件
6121
- * @property drawMouseMove - 正在移动鼠标中,绘制过程中鼠标移动了点 标绘事件
6122
- * @property drawCreated - 创建完成 标绘事件
6123
- * @property editStart - 开始编辑 标绘事件
6124
- * @property editMouseMove - 正在移动鼠标中,正在编辑拖拽修改点中(MOUSE_MOVE) 标绘事件
6125
- * @property editStop - 停止编辑 标绘事件
6126
- */
6127
- type EventType = {
6128
- add: string;
6129
- remove: string;
6130
- show: string;
6131
- hide: string;
6132
- popupOpen: string;
6133
- popupClose: string;
6134
- tooltipOpen: string;
6135
- tooltipClose: string;
6136
- contextMenuOpen: string;
6137
- contextMenuClose: string;
6138
- contextMenuClick: string;
6139
- highlightOpen: string;
6140
- highlightClose: string;
6141
- change: string;
6142
- click: string;
6143
- rightClick: string;
6144
- mouseOver: string;
6145
- mouseOut: string;
6146
- drawStart: string;
6147
- drawMouseMove: string;
6148
- drawCreated: string;
6149
- editStart: string;
6150
- editMouseMove: string;
6151
- editStop: string;
6152
- };
6153
6161
  }
6154
6162
 
6155
6163
  /**
@@ -6798,77 +6806,6 @@ declare class Tooltip extends Popup {
6798
6806
  });
6799
6807
  }
6800
6808
 
6801
- declare namespace BaseEntity {
6802
- /**
6803
- * 当前类支持的{@link EventType}事件类型
6804
- * @example
6805
- * //绑定监听事件
6806
- * graphic.on(mars3d.EventType.click, function (event) {
6807
- * console.log('单击了矢量数据对象', event)
6808
- * })
6809
- * @property add - 添加对象
6810
- * @property remove - 移除对象
6811
- * @property show - 显示了对象
6812
- * @property hide - 隐藏了对象
6813
- * @property popupOpen - popup弹窗打开后
6814
- * @property popupClose - popup弹窗关闭
6815
- * @property tooltipOpen - tooltip弹窗打开后
6816
- * @property tooltipClose - tooltip弹窗关闭
6817
- * @property contextMenuOpen - 右键菜单 打开后
6818
- * @property contextMenuClose - 右键菜单 关闭
6819
- * @property contextMenuClick - 右键菜单 单击某一项后
6820
- * @property highlightOpen - highlight高亮后
6821
- * @property highlightClose - highlight关闭后
6822
- * @property click - 左键单击 鼠标事件
6823
- * @property rightClick - 右键单击 鼠标事件
6824
- * @property mouseOver - 鼠标移入 鼠标事件
6825
- * @property mouseOut - 鼠标移出 鼠标事件
6826
- * @property drawStart - 开始绘制 标绘事件
6827
- * @property drawMouseMove - 正在移动鼠标中,绘制过程中鼠标移动了点 标绘事件
6828
- * @property drawAddPoint - 绘制过程中增加了点 标绘事件
6829
- * @property drawRemovePoint - 绘制过程中删除了最后一个点 标绘事件
6830
- * @property drawCreated - 创建完成 标绘事件
6831
- * @property editStart - 开始编辑 标绘事件
6832
- * @property editMouseDown - 移动鼠标按下左键(LEFT_DOWN)标绘事件
6833
- * @property editMouseMove - 正在移动鼠标中,正在编辑拖拽修改点中(MOUSE_MOVE) 标绘事件
6834
- * @property editMovePoint - 编辑修改了点(LEFT_UP)标绘事件
6835
- * @property editRemovePoint - 编辑删除了点 标绘事件
6836
- * @property editStyle - 图上编辑修改了相关style属性 标绘事件
6837
- * @property editStop - 停止编辑 标绘事件
6838
- */
6839
- type EventType = {
6840
- add: string;
6841
- remove: string;
6842
- show: string;
6843
- hide: string;
6844
- popupOpen: string;
6845
- popupClose: string;
6846
- tooltipOpen: string;
6847
- tooltipClose: string;
6848
- contextMenuOpen: string;
6849
- contextMenuClose: string;
6850
- contextMenuClick: string;
6851
- highlightOpen: string;
6852
- highlightClose: string;
6853
- click: string;
6854
- rightClick: string;
6855
- mouseOver: string;
6856
- mouseOut: string;
6857
- drawStart: string;
6858
- drawMouseMove: string;
6859
- drawAddPoint: string;
6860
- drawRemovePoint: string;
6861
- drawCreated: string;
6862
- editStart: string;
6863
- editMouseDown: string;
6864
- editMouseMove: string;
6865
- editMovePoint: string;
6866
- editRemovePoint: string;
6867
- editStyle: string;
6868
- editStop: string;
6869
- };
6870
- }
6871
-
6872
6809
  /**
6873
6810
  * Entity实体 矢量对象 基类
6874
6811
  * @param options - 参数对象,包括以下:
@@ -9041,8 +8978,9 @@ declare namespace FontBillboardEntity {
9041
8978
  /**
9042
8979
  * Font CSS字体点转图片后的图标点 Entity 支持的样式信息
9043
8980
  * @property [iconClass = ""] - 字体css样式
9044
- * @property [iconSize = 50] - 字体大小
9045
8981
  * @property [color = '#ff0000'] - 字体颜色
8982
+ * @property [iconSize = 50] - 字体大小,单位:像素
8983
+ * @property [iconPadding = 10] - 字体DIV生成时div内的padding值
9046
8984
  * @property [opacity = 1.0] - 透明度,取值范围:0.0-1.0
9047
8985
  * @property [scale = 1] - 图像大小的比例
9048
8986
  * @property [rotation = 0] - 旋转角度(弧度值),正北为0,逆时针旋转
@@ -9080,8 +9018,9 @@ declare namespace FontBillboardEntity {
9080
9018
  */
9081
9019
  type StyleOptions = any | {
9082
9020
  iconClass?: string;
9083
- iconSize?: number;
9084
9021
  color?: string;
9022
+ iconSize?: number;
9023
+ iconPadding?: number;
9085
9024
  opacity?: number;
9086
9025
  scale?: number;
9087
9026
  rotation?: number;
@@ -9430,42 +9369,6 @@ declare namespace ModelEntity {
9430
9369
  highlight?: ModelEntity.StyleOptions | any;
9431
9370
  label?: LabelEntity.StyleOptions | any;
9432
9371
  };
9433
- /**
9434
- * 当前类支持的{@link EventType}事件类型
9435
- * @example
9436
- * //绑定监听事件
9437
- * thing.on(mars3d.EventType.change, function (event) {
9438
- * console.log('发送了变化', event)
9439
- * })
9440
- * @property add - 添加对象
9441
- * @property remove - 移除对象
9442
- * @property show - 显示了对象
9443
- * @property hide - 隐藏了对象
9444
- * @property popupOpen - popup弹窗打开后
9445
- * @property popupClose - popup弹窗关闭
9446
- * @property tooltipOpen - tooltip弹窗打开后
9447
- * @property tooltipClose - tooltip弹窗关闭
9448
- * @property contextMenuOpen - 右键菜单 打开后
9449
- * @property contextMenuClose - 右键菜单 关闭
9450
- * @property contextMenuClick - 右键菜单 单击某一项后
9451
- * @property load - 模型加载完成后
9452
- * @property stop - 模型addDynamicPosition添加的动态点,到时时间停止后触发
9453
- */
9454
- type EventType = {
9455
- add: string;
9456
- remove: string;
9457
- show: string;
9458
- hide: string;
9459
- popupOpen: string;
9460
- popupClose: string;
9461
- tooltipOpen: string;
9462
- tooltipClose: string;
9463
- contextMenuOpen: string;
9464
- contextMenuClose: string;
9465
- contextMenuClick: string;
9466
- load: string;
9467
- stop: string;
9468
- };
9469
9372
  }
9470
9373
 
9471
9374
  /**
@@ -9590,13 +9493,13 @@ declare class ModelEntity extends BasePointEntity {
9590
9493
  * @param options.position - 指定目标位置的坐标
9591
9494
  * @param [options.time = 5] - 移动的时长(单位 秒),控制速度
9592
9495
  * @param [options.onEnd] - 移动完成的回调方法
9593
- * @returns
9496
+ * @returns 绘制创建完成的Promise,等价于onEnd参数
9594
9497
  */
9595
9498
  moveTo(options?: {
9596
9499
  position: LngLatPoint | Cesium.Cartesian3 | number[];
9597
9500
  time?: number;
9598
9501
  onEnd?: (...params: any[]) => any;
9599
- }): void;
9502
+ }): Promise<ModelEntity | any>;
9600
9503
  /**
9601
9504
  * 飞行定位至数据所在的视角
9602
9505
  * @param [options = {}] - 参数对象:
@@ -10411,8 +10314,12 @@ declare class PolylineEntity extends BasePolyEntity {
10411
10314
  declare namespace PolylineVolumeEntity {
10412
10315
  /**
10413
10316
  * 管道线 支持的样式信息
10414
- * @property [radius = 10] - 半径
10415
10317
  * @property [shape = "pipeline"] - 形状类型 或 定义要挤压的形状。类型可选项:pipeline (解释:空心管),circle (解释:实心管),star (解释:星状管),
10318
+ * @property [radius = 10] - 半径(单位:米)
10319
+ * @property [thicknes = radius/3] - 厚度(单位:米),空心管/星状管 的外层厚度
10320
+ * @property [slices] - 边数,比如为4时是矩形管;星状管代表角的个数;
10321
+ * @property [startAngle = 0] - 开始角度,取值范围0-360
10322
+ * @property [endAngle = 360] - 结束角度,取值范围0-360,比如endAngle=180的空心管是拱形半圆管道
10416
10323
  * @property [fill = true] - 是否填充
10417
10324
  * @property [color = "#FFFF00"] - 颜色
10418
10325
  * @property [opacity = 1.0] - 透明度,取值范围:0.0-1.0
@@ -10434,8 +10341,12 @@ declare namespace PolylineVolumeEntity {
10434
10341
  * @property [label] - 支持附带文字的显示
10435
10342
  */
10436
10343
  type StyleOptions = any | {
10437
- radius?: number;
10438
10344
  shape?: string | Cesium.Cartesian2[];
10345
+ radius?: number;
10346
+ thicknes?: number;
10347
+ slices?: number;
10348
+ startAngle?: number;
10349
+ endAngle?: number;
10439
10350
  fill?: boolean;
10440
10351
  color?: string | Cesium.Color;
10441
10352
  opacity?: number;
@@ -11066,7 +10977,8 @@ declare class Video2D extends PolygonEntity {
11066
10977
  declare namespace WallEntity {
11067
10978
  /**
11068
10979
  * 墙 支持的样式信息
11069
- * @property [diffHeight = 100] - 墙高
10980
+ * @property [diffHeight = 100] - 墙高,
10981
+ * @property [fixedTop = false] - 墙顶部是否使用统一的水平高度值
11070
10982
  * @property [minimumHeights] - 没有指定diffHeight时,可以指定用于墙壁底部而不是球体表面的高度数组。
11071
10983
  * @property [maximumHeights] - 没有指定diffHeight时,可以指定用于墙顶的高度数组,而不是每个位置的高度。
11072
10984
  * @property [fill = true] - 是否填充
@@ -11095,6 +11007,7 @@ declare namespace WallEntity {
11095
11007
  */
11096
11008
  type StyleOptions = any | {
11097
11009
  diffHeight?: number;
11010
+ fixedTop?: boolean;
11098
11011
  minimumHeights?: number[];
11099
11012
  maximumHeights?: number[];
11100
11013
  fill?: boolean;
@@ -11787,14 +11700,14 @@ declare class Regular extends PolygonEntity {
11787
11700
  readonly EditClass: EditRegular;
11788
11701
  /**
11789
11702
  * 计算当前矢量对象的边界坐标点
11790
- * @param positions - 坐标位置
11703
+ * @param center - 坐标位置
11791
11704
  * @param options - 控制参数
11792
11705
  * @param [options.border = 3] - 边数量
11793
11706
  * @param options.radius - 区域的半径(单位:米)
11794
11707
  * @param [options.startAngle = 0] - 区域的开始角度(正东方向为0,顺时针到360度)
11795
11708
  * @returns 边界坐标点
11796
11709
  */
11797
- static getOutlinePositions(positions: Cesium.Cartesian3[], options: {
11710
+ static getOutlinePositions(center: Cesium.Cartesian3, options: {
11798
11711
  border?: number;
11799
11712
  radius: number;
11800
11713
  startAngle?: number;
@@ -11863,14 +11776,14 @@ declare class Sector extends PolygonEntity {
11863
11776
  readonly EditClass: EditSector;
11864
11777
  /**
11865
11778
  * 计算当前矢量对象的边界坐标点
11866
- * @param positions - 坐标位置
11779
+ * @param center - 中心点坐标位置
11867
11780
  * @param options - 控制参数
11868
11781
  * @param options.radius - 扇形区域的半径(单位:米)
11869
11782
  * @param options.startAngle - 扇形区域的开始角度(正东方向为0,顺时针到360度)
11870
11783
  * @param options.endAngle - 扇形区域的结束角度(正东方向为0,顺时针到360度)
11871
11784
  * @returns 边界坐标点
11872
11785
  */
11873
- static getOutlinePositions(positions: Cesium.Cartesian3[], options: {
11786
+ static getOutlinePositions(center: Cesium.Cartesian3, options: {
11874
11787
  radius: number;
11875
11788
  startAngle: number;
11876
11789
  endAngle: number;
@@ -12891,53 +12804,6 @@ declare class BasePolyPrimitive extends BasePrimitive {
12891
12804
  }): Promise<any>;
12892
12805
  }
12893
12806
 
12894
- declare namespace BasePrimitive {
12895
- /**
12896
- * 当前类支持的{@link EventType}事件类型
12897
- * @example
12898
- * //绑定监听事件
12899
- * graphic.on(mars3d.EventType.click, function (event) {
12900
- * console.log('单击了矢量数据对象', event)
12901
- * })
12902
- * @property add - 添加对象
12903
- * @property remove - 移除对象
12904
- * @property show - 显示了对象
12905
- * @property hide - 隐藏了对象
12906
- * @property popupOpen - popup弹窗打开后
12907
- * @property popupClose - popup弹窗关闭
12908
- * @property tooltipOpen - tooltip弹窗打开后
12909
- * @property tooltipClose - tooltip弹窗关闭
12910
- * @property contextMenuOpen - 右键菜单 打开后
12911
- * @property contextMenuClose - 右键菜单 关闭
12912
- * @property contextMenuClick - 右键菜单 单击某一项后
12913
- * @property highlightOpen - highlight高亮后
12914
- * @property highlightClose - highlight关闭后
12915
- * @property click - 左键单击 鼠标事件
12916
- * @property rightClick - 右键单击 鼠标事件
12917
- * @property mouseOver - 鼠标移入 鼠标事件
12918
- * @property mouseOut - 鼠标移出 鼠标事件
12919
- */
12920
- type EventType = {
12921
- add: string;
12922
- remove: string;
12923
- show: string;
12924
- hide: string;
12925
- popupOpen: string;
12926
- popupClose: string;
12927
- tooltipOpen: string;
12928
- tooltipClose: string;
12929
- contextMenuOpen: string;
12930
- contextMenuClose: string;
12931
- contextMenuClick: string;
12932
- highlightOpen: string;
12933
- highlightClose: string;
12934
- click: string;
12935
- rightClick: string;
12936
- mouseOver: string;
12937
- mouseOut: string;
12938
- };
12939
- }
12940
-
12941
12807
  /**
12942
12808
  * Primitive图元 矢量对象 基类
12943
12809
  * @param options - 参数对象,包括以下:
@@ -14738,52 +14604,6 @@ declare namespace ModelPrimitive {
14738
14604
  highlight?: ModelPrimitive.StyleOptions | any;
14739
14605
  label?: LabelEntity.StyleOptions | any;
14740
14606
  };
14741
- /**
14742
- * 当前类支持的{@link EventType}事件类型
14743
- * @example
14744
- * //绑定监听事件
14745
- * graphic.on(mars3d.EventType.load, function (event) {
14746
- * console.log('模型加载完成', event)
14747
- * })
14748
- * @property load - 完成加载,执行所有内部处理后
14749
- * @property add - 添加对象
14750
- * @property remove - 移除对象
14751
- * @property show - 显示了对象
14752
- * @property hide - 隐藏了对象
14753
- * @property popupOpen - popup弹窗打开后
14754
- * @property popupClose - popup弹窗关闭
14755
- * @property tooltipOpen - tooltip弹窗打开后
14756
- * @property tooltipClose - tooltip弹窗关闭
14757
- * @property contextMenuOpen - 右键菜单 打开后
14758
- * @property contextMenuClose - 右键菜单 关闭
14759
- * @property contextMenuClick - 右键菜单 单击某一项后
14760
- * @property highlightOpen - highlight高亮后
14761
- * @property highlightClose - highlight关闭后
14762
- * @property click - 左键单击 鼠标事件
14763
- * @property rightClick - 右键单击 鼠标事件
14764
- * @property mouseOver - 鼠标移入 鼠标事件
14765
- * @property mouseOut - 鼠标移出 鼠标事件
14766
- */
14767
- type EventType = {
14768
- load: string;
14769
- add: string;
14770
- remove: string;
14771
- show: string;
14772
- hide: string;
14773
- popupOpen: string;
14774
- popupClose: string;
14775
- tooltipOpen: string;
14776
- tooltipClose: string;
14777
- contextMenuOpen: string;
14778
- contextMenuClose: string;
14779
- contextMenuClick: string;
14780
- highlightOpen: string;
14781
- highlightClose: string;
14782
- click: string;
14783
- rightClick: string;
14784
- mouseOver: string;
14785
- mouseOut: string;
14786
- };
14787
14607
  }
14788
14608
 
14789
14609
  /**
@@ -15513,8 +15333,12 @@ declare class PolylineSimplePrimitive extends BasePolyPrimitive {
15513
15333
  declare namespace PolylineVolumePrimitive {
15514
15334
  /**
15515
15335
  * 管道线 Primitive图元 支持的样式信息
15516
- * @property [radius = 10] - 半径
15517
15336
  * @property [shape = "pipeline"] - 形状类型 或 定义要挤压的形状。类型可选项:pipeline (解释:空心管),circle (解释:实心管),star (解释:星状管),
15337
+ * @property [radius = 10] - 半径(单位:米)
15338
+ * @property [thicknes = radius/3] - 厚度(单位:米),空心管/星状管 的外层厚度
15339
+ * @property [slices] - 边数,比如为4时是矩形管;星状管代表角的个数;
15340
+ * @property [startAngle = 0] - 开始角度,取值范围0-360
15341
+ * @property [endAngle = 360] - 结束角度,取值范围0-360,比如endAngle=180的空心管是拱形半圆管道
15518
15342
  * @property [materialType = "Color"] - 填充材质类型 ,可选项:{@link MaterialType}
15519
15343
  * @property [materialOptions] - materialType对应的{@link MaterialType}中材质参数
15520
15344
  * @property [material] - 指定用于填充的材质,指定material后`materialType`和`materialOptions`将被覆盖。
@@ -15538,8 +15362,12 @@ declare namespace PolylineVolumePrimitive {
15538
15362
  * @property [label] - 支持附带文字的显示
15539
15363
  */
15540
15364
  type StyleOptions = any | {
15541
- radius?: number;
15542
15365
  shape?: string | Cesium.Cartesian2[];
15366
+ radius?: number;
15367
+ thicknes?: number;
15368
+ slices?: number;
15369
+ startAngle?: number;
15370
+ endAngle?: number;
15543
15371
  materialType?: string;
15544
15372
  materialOptions?: any;
15545
15373
  material?: Cesium.Material;
@@ -17330,6 +17158,169 @@ declare class ArcGisWfsSingleLayer extends GeoJsonLayer {
17330
17158
  }): GeoJsonLayer;
17331
17159
  }
17332
17160
 
17161
+ /**
17162
+ * 业务数据(通过API接口获取)图层, 主要是为了封装后简化使用,或直接配置到config.json,也可以自行构造Graphic矢量对象加到GraphicLayer。<br />
17163
+ *
17164
+ * 样式信息:通过symbol配置graphic类型和样式<br />
17165
+ * 坐标信息:建议接口返回中有规范的坐标字段lat\lng\alt或用formatPosition方法自定义解析
17166
+ * @param [options] - 参数对象,包括以下:
17167
+ * @param [options.url] - geojson文件或服务url地址
17168
+ * @param [options.data] - geojson格式规范数据对象,与url二选一即可。
17169
+ * @param [options.dataColumn] - 接口返回数据中,对应的业务数据数组所在的读取字段名称,支持多级(用.分割);如果数据直接返回数组时可以不配置。
17170
+ * @param [options.formatData] - 可以对加载的数据进行格式化或转换操作
17171
+ * @param [options.lngColumn = "lng"] - 点坐标时,经度值对应的字段名称
17172
+ * @param [options.latColumn = "lat"] - 点坐标时,纬度值对应的字段名称
17173
+ * @param [options.altColumn = "alt"] - 点坐标时,高度值对应的字段名称
17174
+ * @param [options.formatPosition] - 可以对加载的数据进行格式化或转换操作
17175
+ * @param [options.onCreateGraphic] - 解析geojson后,外部自定义方法来创建Graphic对象
17176
+ * @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
17177
+ * @param [options.opacity = 1.0] - 透明度(部分图层),取值范围:0.0-1.0
17178
+ * @param [options.zIndex] - 控制图层的叠加层次(部分图层),默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。
17179
+ * @param [options.symbol] - 矢量数据的style样式,为Function时是完全自定义的回调处理 symbol(attr, style, feature)
17180
+ * @param [options.symbol.type] - 标识数据类型,默认是根据数据生成 point、polyline、polygon
17181
+ * @param options.symbol.styleOptions - Style样式,每种不同类型数据都有不同的样式,具体见各{@link GraphicType}矢量数据的style参数。
17182
+ * @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。
17183
+ * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。
17184
+ * @param [options.symbol.merge] - 是否合并并覆盖json中已有的style,默认不合并。
17185
+ * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; }
17186
+ * @param [options.graphicOptions] - 默认的graphic的构造参数,每种不同类型数据都有不同的属性,具体见各{@link GraphicType}矢量数据的构造参数。
17187
+ * @param [options.clustering] - 设置聚合相关参数(仅对Entity点数据有效):
17188
+ * @param [options.clustering.enabled = false] - 是否开启聚合
17189
+ * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合
17190
+ * @param [options.clustering.clampToGround = true] - 是否贴地
17191
+ * @param [options.clustering.radius = 26] - 内置样式时,圆形图标的半径大小(单位:像素)
17192
+ * @param [options.clustering.fontColor = '#ffffff'] - 内置样式时,数字的颜色
17193
+ * @param [options.clustering.color = 'rgba(181, 226, 140, 0.6)'] - 内置样式时,圆形图标的背景颜色
17194
+ * @param [options.clustering.opacity = 0.5] - 内置样式时,圆形图标的透明度
17195
+ * @param [options.clustering.borderWidth = 5] - 圆形图标的边框宽度(单位:像素),0不显示
17196
+ * @param [options.clustering.borderColor = 'rgba(110, 204, 57, 0.5)'] - 内置样式时,圆形图标的边框颜色
17197
+ * @param [options.clustering.borderOpacity = 0.6] - 内置样式时,圆形图标边框的透明度
17198
+ * @param [options.clustering.getImage] - 自定义聚合的图标样式,例如:getImage:function(count) { return image}
17199
+ * @param [options.proxy] - 加载资源时要使用的代理服务url。
17200
+ * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对
17201
+ * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}
17202
+ * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }
17203
+ * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板
17204
+ * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括:
17205
+ * @param [options.popupOptions.title] - 固定的标题名称
17206
+ * @param [options.popupOptions.titleField] - 标题对应的属性字段名称
17207
+ * @param [options.popupOptions.noTitle] - 不显示标题
17208
+ * @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑定,参数与popup属性完全相同。
17209
+ * @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数,还包括:
17210
+ * @param [options.tooltipOptions.title] - 固定的标题名称
17211
+ * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称
17212
+ * @param [options.tooltipOptions.noTitle] - 不显示标题
17213
+ * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定
17214
+ * @param [options.id = createGuid()] - 图层id标识
17215
+ * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用
17216
+ * @param [options.name = ''] - 图层名称
17217
+ * @param [options.show = true] - 图层是否显示
17218
+ * @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡
17219
+ * @param [options.center] - 图层自定义定位视角 {@link Map#setCameraView}
17220
+ * @param options.center.lng - 经度值, 180 - 180
17221
+ * @param options.center.lat - 纬度值, -90 - 90
17222
+ * @param [options.center.alt] - 高度值
17223
+ * @param [options.center.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0-360
17224
+ * @param [options.center.pitch] - 俯仰角度值,绕纬度线旋转角度, 0-360
17225
+ * @param [options.center.roll] - 翻滚角度值,绕经度线旋转角度, 0-360
17226
+ * @param [options.extent] - 图层自定义定位的矩形区域,与center二选一即可。 {@link Map#flyToExtent}
17227
+ * @param options.extent.xmin - 最小经度值, -180 至 180
17228
+ * @param options.extent.xmax - 最大经度值, -180 至 180
17229
+ * @param options.extent.ymin - 最小纬度值, -90 至 90
17230
+ * @param options.extent.ymax - 最大纬度值, -90 至 90
17231
+ * @param [options.extent.height = 0] - 矩形高度值
17232
+ * @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。
17233
+ */
17234
+ declare class BusineDataLayer extends GraphicLayer {
17235
+ constructor(options?: {
17236
+ url?: string;
17237
+ data?: any;
17238
+ dataColumn?: string;
17239
+ formatData?: (...params: any[]) => any;
17240
+ lngColumn?: string;
17241
+ latColumn?: string;
17242
+ altColumn?: string;
17243
+ formatPosition?: (...params: any[]) => any;
17244
+ onCreateGraphic?: (...params: any[]) => any;
17245
+ allowDrillPick?: boolean | ((...params: any[]) => any);
17246
+ opacity?: number;
17247
+ zIndex?: number;
17248
+ symbol?: {
17249
+ type?: GraphicType | string;
17250
+ styleOptions: any;
17251
+ styleField?: string;
17252
+ styleFieldOptions?: any;
17253
+ merge?: boolean;
17254
+ callback?: (...params: any[]) => any;
17255
+ };
17256
+ graphicOptions?: any;
17257
+ clustering?: {
17258
+ enabled?: boolean;
17259
+ pixelRange?: number;
17260
+ clampToGround?: boolean;
17261
+ radius?: number;
17262
+ fontColor?: string;
17263
+ color?: string;
17264
+ opacity?: number;
17265
+ borderWidth?: number;
17266
+ borderColor?: string;
17267
+ borderOpacity?: number;
17268
+ getImage?: (...params: any[]) => any;
17269
+ };
17270
+ proxy?: string;
17271
+ templateValues?: any;
17272
+ queryParameters?: any;
17273
+ headers?: any;
17274
+ popup?: string | Globe.getTemplateHtml_template[] | ((...params: any[]) => any);
17275
+ popupOptions?: {
17276
+ title?: string;
17277
+ titleField?: string;
17278
+ noTitle?: string;
17279
+ };
17280
+ tooltip?: string | Globe.getTemplateHtml_template[] | ((...params: any[]) => any) | any;
17281
+ tooltipOptions?: {
17282
+ title?: string;
17283
+ titleField?: string;
17284
+ noTitle?: string;
17285
+ };
17286
+ contextmenuItems?: any;
17287
+ id?: string | number;
17288
+ pid?: string | number;
17289
+ name?: string;
17290
+ show?: boolean;
17291
+ eventParent?: BaseClass | boolean;
17292
+ center?: {
17293
+ lng: number;
17294
+ lat: number;
17295
+ alt?: number;
17296
+ heading?: number;
17297
+ pitch?: number;
17298
+ roll?: number;
17299
+ };
17300
+ extent?: {
17301
+ xmin: number;
17302
+ xmax: number;
17303
+ ymin: number;
17304
+ ymax: number;
17305
+ height?: number;
17306
+ };
17307
+ flyTo?: boolean;
17308
+ });
17309
+ /**
17310
+ * 加载新数据 或 刷新数据
17311
+ * @param [newOptions] - 新设定的参数,会与类的构造参数合并。
17312
+ * @param [newOptions.url] - API接口url地址
17313
+ * @param [newOptions.data] - API接口对应的数据对象,与url二选一即可。
17314
+ * @param [newOptions.类参数] - 包含当前类支持的所有参数
17315
+ * @returns 当前对象本身,可以链式调用
17316
+ */
17317
+ load(newOptions?: {
17318
+ url?: string;
17319
+ data?: any;
17320
+ 类参数?: any;
17321
+ }): BusineDataLayer;
17322
+ }
17323
+
17333
17324
  /**
17334
17325
  * 高德在线POI图层
17335
17326
  * @param [options] - 参数对象,包括以下:
@@ -17534,6 +17525,18 @@ declare namespace GeoJsonLayer {
17534
17525
  * @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对
17535
17526
  * @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'}
17536
17527
  * @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }
17528
+ * @param [options.clustering] - 设置聚合相关参数(仅对Entity点数据有效):
17529
+ * @param [options.clustering.enabled = false] - 是否开启聚合
17530
+ * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合
17531
+ * @param [options.clustering.clampToGround = true] - 是否贴地
17532
+ * @param [options.clustering.radius = 26] - 内置样式时,圆形图标的半径大小(单位:像素)
17533
+ * @param [options.clustering.fontColor = '#ffffff'] - 内置样式时,数字的颜色
17534
+ * @param [options.clustering.color = 'rgba(181, 226, 140, 0.6)'] - 内置样式时,圆形图标的背景颜色
17535
+ * @param [options.clustering.opacity = 0.5] - 内置样式时,圆形图标的透明度
17536
+ * @param [options.clustering.borderWidth = 5] - 圆形图标的边框宽度(单位:像素),0不显示
17537
+ * @param [options.clustering.borderColor = 'rgba(110, 204, 57, 0.5)'] - 内置样式时,圆形图标的边框颜色
17538
+ * @param [options.clustering.borderOpacity = 0.6] - 内置样式时,圆形图标边框的透明度
17539
+ * @param [options.clustering.getImage] - 自定义聚合的图标样式,例如:getImage:function(count) { return image}
17537
17540
  * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板
17538
17541
  * @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括:
17539
17542
  * @param [options.popupOptions.title] - 固定的标题名称
@@ -17595,6 +17598,19 @@ declare class GeoJsonLayer extends GraphicLayer {
17595
17598
  templateValues?: any;
17596
17599
  queryParameters?: any;
17597
17600
  headers?: any;
17601
+ clustering?: {
17602
+ enabled?: boolean;
17603
+ pixelRange?: number;
17604
+ clampToGround?: boolean;
17605
+ radius?: number;
17606
+ fontColor?: string;
17607
+ color?: string;
17608
+ opacity?: number;
17609
+ borderWidth?: number;
17610
+ borderColor?: string;
17611
+ borderOpacity?: number;
17612
+ getImage?: (...params: any[]) => any;
17613
+ };
17598
17614
  popup?: string | Globe.getTemplateHtml_template[] | ((...params: any[]) => any);
17599
17615
  popupOptions?: {
17600
17616
  title?: string;
@@ -17924,7 +17940,7 @@ declare namespace GraphicLayer {
17924
17940
  * @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。
17925
17941
  * @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; }
17926
17942
  * @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
17927
- * @param [options.clustering] - Entity点数据时,设置聚合相关参数:
17943
+ * @param [options.clustering] - 设置聚合相关参数(仅对Entity点数据有效):
17928
17944
  * @param [options.clustering.enabled = false] - 是否开启聚合
17929
17945
  * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合
17930
17946
  * @param [options.clustering.clampToGround = true] - 是否贴地
@@ -18064,7 +18080,8 @@ declare class GraphicLayer extends BaseGraphicLayer {
18064
18080
  */
18065
18081
  readonly hasZIndex: boolean;
18066
18082
  /**
18067
- * 图层顺序,数字大的在上面。(当hasZIndex为true时)
18083
+ * 图层顺序,数字大的在上面。<br/>
18084
+ * 只对 同类型(Entity/Primitive) + 贴地(clampToGround: true) 矢量对象间有效
18068
18085
  */
18069
18086
  zIndex: number;
18070
18087
  /**
@@ -18185,9 +18202,10 @@ declare class GraphicLayer extends BaseGraphicLayer {
18185
18202
  eachGraphic(method: (...params: any[]) => any, context?: any): GraphicLayer;
18186
18203
  /**
18187
18204
  * 获取图层内 所有矢量数据
18205
+ * @param [hasPrivate = false] - 是否取私有的graphic
18188
18206
  * @returns 矢量数据数组
18189
18207
  */
18190
- getGraphics(): BaseGraphic[] | any[];
18208
+ getGraphics(hasPrivate?: boolean): BaseGraphic[] | any[];
18191
18209
  /**
18192
18210
  * 清除图层内所有矢量数据
18193
18211
  * @param [hasDestroy = false] - 是否释放矢量对象
@@ -18201,7 +18219,7 @@ declare class GraphicLayer extends BaseGraphicLayer {
18201
18219
  * @param [options.objectsToExclude] - 贴模型分析时,排除的不进行贴模型计算的模型对象,可以是: primitives, entities, 或 3D Tiles features
18202
18220
  * @param options.endItem - 每计算完成1个graphic高度后 的回调方法
18203
18221
  * @param options.end - 异步计算高度完成所有graphic后 的回调方法
18204
- * @returns 绘制创建完成的Promise,等价于callback参数
18222
+ * @returns 绘制创建完成的Promise
18205
18223
  */
18206
18224
  autoSurfaceHeight(options?: {
18207
18225
  has3dtiles?: boolean;
@@ -18799,6 +18817,7 @@ declare namespace TilesetLayer {
18799
18817
  * @param [options.tooltipOptions.titleField] - 标题对应的属性字段名称
18800
18818
  * @param [options.tooltipOptions.noTitle] - 不显示标题
18801
18819
  * @param [options.contextmenuItems] - 绑定的右键菜单值,也可以bindContextMenu方法绑定
18820
+ * @param [options.hasEdit = true] - 是否允许编辑,且需要transform是true的模型才支持编辑
18802
18821
  * @param [options.id = createGuid()] - 图层id标识
18803
18822
  * @param [options.pid = -1] - 图层父级的id,一般图层管理中使用
18804
18823
  * @param [options.name = ''] - 图层名称
@@ -18892,6 +18911,7 @@ declare class TilesetLayer extends BaseGraphicLayer {
18892
18911
  noTitle?: string;
18893
18912
  };
18894
18913
  contextmenuItems?: any;
18914
+ hasEdit?: boolean;
18895
18915
  id?: string | number;
18896
18916
  pid?: string | number;
18897
18917
  name?: string;
@@ -19001,6 +19021,10 @@ declare class TilesetLayer extends BaseGraphicLayer {
19001
19021
  * 模型裁剪 对象
19002
19022
  */
19003
19023
  readonly planClip: TilesetPlanClip;
19024
+ /**
19025
+ * 是否可以编辑
19026
+ */
19027
+ hasEdit: boolean;
19004
19028
  /**
19005
19029
  * 模型裁剪 对象
19006
19030
  */
@@ -19021,6 +19045,10 @@ declare class TilesetLayer extends BaseGraphicLayer {
19021
19045
  * 重新加载模型
19022
19046
  */
19023
19047
  reload(): void;
19048
+ /**
19049
+ * 是否存在世界矩阵
19050
+ */
19051
+ readonly transform: boolean;
19024
19052
  /**
19025
19053
  * 模型原始矩阵
19026
19054
  */
@@ -19681,7 +19709,8 @@ declare namespace ArcGisLayer {
19681
19709
  * @param [options.crs = CRS.EPSG4326] - 瓦片数据的坐标系信息,默认为墨卡托投影
19682
19710
  * @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
19683
19711
  * @param [options.enablePickFeatures = true] - 如果为true,则请求 单击坐标处服务中对应的矢量数据 并尝试解释响应中包含的功能。为false时不去服务请求。
19684
- * @param [options.graphicConver] - 单击获取到的数据进行按需筛选解析,大数据解析很卡,可以设定阀值屏蔽大数据,避免卡顿,number类型时代表字符串长度值。
19712
+ * @param [options.featureToGraphic = mars3d.Util.geoJsonToGraphics] - 解析单击返回的矢量数据信息为Graphic构造参数,可以按需自定义。
19713
+ * @param [options.hasToGraphic] - 筛选或判断是否解析,单击获取到的数据进行按需筛选解析,大数据解析很卡,可以设定阀值屏蔽大数据,避免卡顿,number类型时代表字符串长度值。
19685
19714
  * @param [options.highlight] - 鼠标单击高亮显示对应的矢量数据 及其样式,具体见各{@link GraphicType}矢量数据的style参数。
19686
19715
  * @param [options.highlight.type] - 构造成的矢量数据类型。
19687
19716
  * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板
@@ -19752,7 +19781,8 @@ declare class ArcGisLayer extends BaseTileLayer {
19752
19781
  crs?: CRS;
19753
19782
  chinaCRS?: ChinaCRS;
19754
19783
  enablePickFeatures?: boolean;
19755
- graphicConver?: number | boolean | ((...params: any[]) => any);
19784
+ featureToGraphic?: (...params: any[]) => any;
19785
+ hasToGraphic?: number | boolean | ((...params: any[]) => any);
19756
19786
  highlight?: {
19757
19787
  type?: GraphicType | string;
19758
19788
  };
@@ -22205,7 +22235,8 @@ declare class TmsLayer extends BaseTileLayer {
22205
22235
  * @param [options.clock] - 一个时钟实例,用于确定时间维度的值。指定' times '时需要。
22206
22236
  * @param [options.times] - TimeIntervalCollection 的数据属性是一个包含时间动态维度及其值的对象。
22207
22237
  * @param [options.enablePickFeatures = true] - 如果为true,则请求 单击坐标处服务中对应的矢量数据 并尝试解释响应中包含的功能。为false时不去服务请求。
22208
- * @param [options.graphicConver] - 单击获取到的数据进行按需筛选解析,大数据解析很卡,可以设定阀值屏蔽大数据,避免卡顿,number类型时代表字符串长度值。
22238
+ * @param [options.featureToGraphic = mars3d.Util.geoJsonToGraphics] - 解析单击返回的矢量数据信息为Graphic构造参数,可以按需自定义。
22239
+ * @param [options.hasToGraphic] - 筛选或判断是否解析,单击获取到的数据进行按需筛选解析,大数据解析很卡,可以设定阀值屏蔽大数据,避免卡顿,number类型时代表字符串长度值。
22209
22240
  * @param [options.getFeatureInfoParameters] - 在单击坐标处通过GetFeatureInfo请求接口时,传递给WMS服务器的附加参数。
22210
22241
  * @param [options.highlight] - 鼠标单击高亮显示对应的矢量数据 及其样式,包括type参数指定构造的类型,其他参数见各{@link GraphicType}矢量数据的style参数项。
22211
22242
  * @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板
@@ -22278,7 +22309,8 @@ declare class WmsLayer extends BaseTileLayer {
22278
22309
  clock?: Cesium.Clock;
22279
22310
  times?: Cesium.TimeIntervalCollection;
22280
22311
  enablePickFeatures?: boolean;
22281
- graphicConver?: number | boolean | ((...params: any[]) => any);
22312
+ featureToGraphic?: (...params: any[]) => any;
22313
+ hasToGraphic?: number | boolean | ((...params: any[]) => any);
22282
22314
  getFeatureInfoParameters?: any;
22283
22315
  highlight?: any;
22284
22316
  popup?: string | Globe.getTemplateHtml_template[] | ((...params: any[]) => any);
@@ -23058,18 +23090,37 @@ declare namespace Map {
23058
23090
  };
23059
23091
  /**
23060
23092
  * 添加到地图的控件 参数
23061
- *
23062
- * 以下是mars3d.control定义的控件,支持所有控件类型
23063
- * @property [mouseDownView] - 鼠标滚轮缩放美化样式, 对应 {@link MouseDownView}构造参数
23064
- * @property [locationBar] - 鼠标提示控件, 对应 {@link LocationBar}构造参数
23093
+ * @property [homeButton = false] - 视角复位按钮,是否显示
23094
+ * @property [zoom] - 放大缩小按钮 , 对应 {@link Zoom}构造参数
23095
+ * @property [sceneModePicker = false] - 二三维切换按钮,是否显示二维、三维、2.5D视图切换按钮
23096
+ * @property [projectionPicker = false] - 投影切换按钮, 是否显示用于在透视和正投影之间进行切换按钮
23097
+ * @property [fullscreenButton = false] - 全屏按钮,是否显示
23098
+ * @property [fullscreenElement = document.body] - 当按下全屏按钮时,要置于全屏模式的元素或id
23099
+ * @property [vrButton = false] - VR效果按钮,是否显示
23100
+ * @property [geocoder = false] - 是否显示 地名查找控件按钮,是Cesium原生控件
23101
+ * @property [navigationHelpButton = false] - 帮助按钮,是否显示
23102
+ * @property [navigationInstructionsInitiallyVisible = true] - 帮助按钮 在用户明确单击按钮之前是否自动显示
23103
+ * @property [baseLayerPicker = false] - 是否显示 底图切换 按钮,是Cesium原生控件
23104
+ * @property [imageryProviderViewModels = []] - baseLayerPicker底图切换面板中,用于图像的ProviderViewModel实例数组,默认自动根据basemaps数组生成。
23105
+ * @property [selectedImageryProviderViewModel] - baseLayerPicker底图切换面板中,如果没有提供当前基本图像层的视图模型,则使用第一个可用的图像层。默认为show:true的basemaps图层
23106
+ * @property [terrainProviderViewModels = []] - baseLayerPicker底图切换面板中,用于地形的ProviderViewModel实例数组。默认自动使用terrain配置+无地形。
23107
+ * @property [selectedTerrainProviderViewModel] - baseLayerPicker底图切换面板中,如果没有提供当前基础地形层的视图模型,则使用第一个可用的地形层。
23108
+ * @property [compass] - 导航球, 对应 {@link Compass}构造参数
23109
+ * @property [locationBar] - 状态栏, 对应 {@link LocationBar}构造参数
23065
23110
  * @property [locationBar.fps] - 是否显示实时FPS帧率
23066
23111
  * @property [locationBar.format] - 显示内容的格式化html展示的内容格式化字符串。 支持以下模版配置:【鼠标所在位置】 经度:{lng}, 纬度:{lat}, 海拔:{alt}米, 【相机的】 方向角度:{heading}, 俯仰角度:{pitch}, 视高:{cameraHeight}米, 【地图的】 层级:{level},
23067
- * @property [compass] - 导航球控件 , 对应 {@link Compass}构造参数
23068
- * @property [distanceLegend] - 比例尺控件 , 对应 {@link DistanceLegend}构造参数
23069
- * @property [clockAnimate] - 时钟动画控制控件 , 对应{@link ClockAnimate}构造参数
23070
- * @property [zoom] - 时钟动画控制控件 , 对应 {@link Zoom}构造参数
23071
- * @property [overviewMap] - 鹰眼地图 控件, 对应{@link OverviewMap }构造参数
23072
- * @property [mapSplit] - 卷帘对比 控件, 对应{@link MapSplit }构造参数
23112
+ * @property [distanceLegend] - 比例尺, 对应 {@link DistanceLegend}构造参数
23113
+ * @property [clockAnimate] - 时钟控制, 对应{@link ClockAnimate}构造参数
23114
+ * @property [animation = true] - 时钟仪表控制(Cesium原生)
23115
+ * @property [animationTicks] - 时钟仪表控制(Cesium原生)的可选步长
23116
+ * @property [timeline = true] - 时间线, 是否创建下侧时间线控件面板
23117
+ * @property [overviewMap] - 鹰眼地图, 对应{@link OverviewMap }构造参数
23118
+ * @property [mapSplit] - 卷帘对比, 对应{@link MapSplit }构造参数
23119
+ * @property [keyboardRoam] - 键盘漫游, 对应{@link KeyboardRoam }构造参数
23120
+ * @property [mouseDownView] - 鼠标滚轮缩放美化样式(指示图标), 对应 {@link MouseDownView}构造参数
23121
+ * @property [infoBox = true] - 信息面板,是否显示点击要素之后显示的信息,是Cesium原生控件
23122
+ * @property [selectionIndicator = true] - 选中框,是否显示选择模型时的绿色框,是Cesium原生控件
23123
+ * @property [showRenderLoopErrors = true] - 如果为true,则在发生渲染循环错误时,此小部件将自动向包含错误的用户显示HTML面板,是Cesium原生控件
23073
23124
  * @property [contextmenu] - 内置 右键菜单 控制参数, 对应{@link ContextMenu }构造参数
23074
23125
  * @property [contextmenu.preventDefault = true] - 是否取消右键菜单
23075
23126
  * @property [contextmenu.hasDefault = true] - 是否绑定默认的地图右键菜单
@@ -23077,44 +23128,40 @@ declare namespace Map {
23077
23128
  * @property [popup.depthTest = true] - 是否打开深度判断(true时判断是否在球背面)
23078
23129
  * @property [tooltip] - 内置 Tooltip 控制参数
23079
23130
  * @property [tooltip.cacheTime = 20] - 延迟缓存的时间,单位:毫秒
23080
- * @property [keyboardRoam] - 内置 键盘漫游 控制参数, 对应{@link KeyboardRoam }构造参数
23081
- * @property [keyboardRoam.moveStep = 10] - 平移步长 (米)
23082
- * @property [keyboardRoam.dirStep = 25] - 相机原地旋转步长,值越大步长越小。
23083
- * @property [keyboardRoam.rotateStep = 1.0] - 相机围绕目标点旋转速率,0.3 - 2.0
23084
- * @property [keyboardRoam.minPitch = 0.1] - 最小仰角 0 - 1
23085
- * @property [keyboardRoam.maxPitch = 0.95] - 最大仰角 0 - 1
23086
- * @property [keyboardRoam.minHeight = 0] - 最低高度(单位:米)
23087
- *
23088
- * 以下是Cesium.Viewer所支持的控件相关的options
23089
- * @property [infoBox = true] - 是否显示 点击要素之后显示的信息
23090
- * @property [selectionIndicator = true] - 选择模型时,是否显示绿色框
23091
- * @property [animation = true] - 是否创建 左下角仪表动画面板
23092
- * @property [animationTicks] - 左下角仪表动画面板 的可选步长
23093
- * @property [timeline = true] - 是否创建 下侧时间线控件面板
23094
- * @property [baseLayerPicker = true] - 是否显示 basemaps底图切换按钮
23095
- * @property [fullscreenButton = true] - 是否显示 全屏按钮
23096
- * @property [fullscreenElement = document.body] - 当按下全屏按钮时,要置于全屏模式的元素或id。
23097
- * @property [vrButton = false] - 是否显示 右下角vr虚拟现实按钮
23098
- * @property [geocoder = true] - 是否显示 地名查找控件按钮
23099
- * @property [homeButton = true] - 是否显示 视角复位按钮
23100
- * @property [sceneModePicker = true] - 是否显示 二三维视图切换按钮
23101
- * @property [projectionPicker = false] - 是否显示 用于在透视和正投影之间进行切换按钮
23102
- * @property [navigationHelpButton = true] - 是否显示 帮助按钮
23103
- * @property [navigationInstructionsInitiallyVisible = true] - 在用户明确单击按钮之前是否自动显示navigationHelpButton
23104
- * @property [showRenderLoopErrors = true] - 如果为true,则在发生渲染循环错误时,此小部件将自动向包含错误的用户显示HTML面板。
23105
23131
  */
23106
23132
  type controlOptions = {
23107
- mouseDownView?: boolean;
23133
+ homeButton?: boolean;
23134
+ zoom?: any;
23135
+ sceneModePicker?: boolean;
23136
+ projectionPicker?: boolean;
23137
+ fullscreenButton?: boolean;
23138
+ fullscreenElement?: Element | string;
23139
+ vrButton?: boolean;
23140
+ geocoder?: boolean | Cesium.GeocoderService[];
23141
+ navigationHelpButton?: boolean;
23142
+ navigationInstructionsInitiallyVisible?: boolean;
23143
+ baseLayerPicker?: boolean;
23144
+ imageryProviderViewModels?: Cesium.ProviderViewModel[];
23145
+ selectedImageryProviderViewModel?: Cesium.ProviderViewModel;
23146
+ terrainProviderViewModels?: Cesium.ProviderViewModel[];
23147
+ selectedTerrainProviderViewModel?: Cesium.ProviderViewModel;
23148
+ compass?: any;
23108
23149
  locationBar?: {
23109
23150
  fps?: boolean;
23110
23151
  format?: string | ((...params: any[]) => any);
23111
23152
  };
23112
- compass?: any;
23113
23153
  distanceLegend?: any;
23114
23154
  clockAnimate?: any;
23115
- zoom?: any;
23155
+ animation?: boolean;
23156
+ animationTicks?: number[];
23157
+ timeline?: boolean;
23116
23158
  overviewMap?: any;
23117
23159
  mapSplit?: any;
23160
+ keyboardRoam?: any;
23161
+ mouseDownView?: boolean;
23162
+ infoBox?: boolean;
23163
+ selectionIndicator?: boolean;
23164
+ showRenderLoopErrors?: boolean;
23118
23165
  contextmenu?: {
23119
23166
  preventDefault?: boolean;
23120
23167
  hasDefault?: boolean;
@@ -23125,30 +23172,6 @@ declare namespace Map {
23125
23172
  tooltip?: {
23126
23173
  cacheTime?: number;
23127
23174
  };
23128
- keyboardRoam?: {
23129
- moveStep?: number;
23130
- dirStep?: number;
23131
- rotateStep?: number;
23132
- minPitch?: number;
23133
- maxPitch?: number;
23134
- minHeight?: number;
23135
- };
23136
- infoBox?: boolean;
23137
- selectionIndicator?: boolean;
23138
- animation?: boolean;
23139
- animationTicks?: number[];
23140
- timeline?: boolean;
23141
- baseLayerPicker?: boolean;
23142
- fullscreenButton?: boolean;
23143
- fullscreenElement?: Element | string;
23144
- vrButton?: boolean;
23145
- geocoder?: boolean | Cesium.GeocoderService[];
23146
- homeButton?: boolean;
23147
- sceneModePicker?: boolean;
23148
- projectionPicker?: boolean;
23149
- navigationHelpButton?: boolean;
23150
- navigationInstructionsInitiallyVisible?: boolean;
23151
- showRenderLoopErrors?: boolean;
23152
23175
  };
23153
23176
  /**
23154
23177
  * 鼠标操作相关配置 参数
@@ -23167,32 +23190,32 @@ declare namespace Map {
23167
23190
  };
23168
23191
  /**
23169
23192
  * 添加到地图的特效 参数
23170
- * @property [blackAndWhite] - 黑白效果,对应{@link BlackAndWhiteEffect }构造参数
23171
- * @property [bloom] - 泛光效果,对应{@link BloomEffect }构造参数
23172
- * @property [brightness] - 亮度特效,对应{@link BrightnessEffect }构造参数
23173
- * @property [depthOfField] - 景深特效,对应{@link DepthOfFieldEffect }构造参数
23174
- * @property [fog] - 雾 特效,对应{@link FogEffect }构造参数
23175
- * @property [inverted] - 倒影效果,对应{@link InvertedEffect }构造参数
23176
- * @property [mosaic] - 马赛克效果,对应{@link MosaicEffect }构造参数
23177
- * @property [nightVision] - 夜视效果,对应{@link NightVisionEffect }构造参数
23178
- * @property [outline] - 轮廓线描边效果,对应{@link OutlineEffect }构造参数
23179
- * @property [rain] - 下雨 特效,对应{@link RainEffect }构造参数
23180
- * @property [snow] - 下雪 特效,对应{@link SnowEffect }构造参数
23181
- * @property [snowCover] - 地面积雪 特效,对应{@link SnowCoverEffect }构造参数
23193
+ * @property [bloom] - 泛光,对应{@link BloomEffect }构造参数
23194
+ * @property [brightness] - 亮度,对应{@link BrightnessEffect }构造参数
23195
+ * @property [rain] - 雨天气,对应{@link RainEffect }构造参数
23196
+ * @property [snow] - 雪天气 ,对应{@link SnowEffect }构造参数
23197
+ * @property [snowCover] - 地面积雪,对应{@link SnowCoverEffect }构造参数
23198
+ * @property [fog] - 雾天气,对应{@link FogEffect }构造参数
23199
+ * @property [depthOfField] - 景深,对应{@link DepthOfFieldEffect }构造参数
23200
+ * @property [mosaic] - 马赛克,对应{@link MosaicEffect }构造参数
23201
+ * @property [nightVision] - 夜视,对应{@link NightVisionEffect }构造参数
23202
+ * @property [blackAndWhite] - 黑白,对应{@link BlackAndWhiteEffect }构造参数
23203
+ * @property [outline] - 对象轮廓描边,对应{@link OutlineEffect }构造参数
23204
+ * @property [bloomTarget] - 对象泛光,对应{@link BloomTargetEffect }构造参数
23182
23205
  */
23183
23206
  type effectOptions = {
23184
- blackAndWhite?: any;
23185
23207
  bloom?: any;
23186
23208
  brightness?: any;
23187
- depthOfField?: any;
23209
+ rain?: any;
23210
+ snow?: any;
23211
+ snowCover?: any;
23188
23212
  fog?: any;
23189
- inverted?: any;
23213
+ depthOfField?: any;
23190
23214
  mosaic?: any;
23191
23215
  nightVision?: any;
23216
+ blackAndWhite?: any;
23192
23217
  outline?: any;
23193
- rain?: any;
23194
- snow?: any;
23195
- snowCover?: any;
23218
+ bloomTarget?: any;
23196
23219
  };
23197
23220
  /**
23198
23221
  * 地形服务配置
@@ -23376,8 +23399,8 @@ declare namespace Map {
23376
23399
  * @param [options = {}] - 参数对象:
23377
23400
  * @param [options.scene] - 场景参数
23378
23401
  * @param [options.control] - 添加的控件
23379
- * @param [options.mouse] - 鼠标操作相关配置参数
23380
23402
  * @param [options.effect] - 添加的特效
23403
+ * @param [options.mouse] - 鼠标操作相关配置参数
23381
23404
  * @param [options.terrain] - 地形服务配置
23382
23405
  * @param [options.basemaps] - 底图图层配置
23383
23406
  * @param [options.layers] - 可以叠加显示的图层配置
@@ -23390,8 +23413,8 @@ declare class Map extends BaseClass {
23390
23413
  constructor(id: string | Cesium.Viewer, options?: {
23391
23414
  scene?: Map.sceneOptions;
23392
23415
  control?: Map.controlOptions;
23393
- mouse?: Map.mouseOptions;
23394
23416
  effect?: Map.effectOptions;
23417
+ mouse?: Map.mouseOptions;
23395
23418
  terrain?: Map.terrainOptions;
23396
23419
  basemaps?: Map.basemapOptions[];
23397
23420
  layers?: Map.layerOptions[];
@@ -24337,6 +24360,14 @@ declare class CircleScanMaterialProperty extends BaseMaterialProperty {
24337
24360
  image: string;
24338
24361
  color?: string | Cesium.Color;
24339
24362
  });
24363
+ /**
24364
+ * 背景图片URL
24365
+ */
24366
+ image: string;
24367
+ /**
24368
+ * 颜色
24369
+ */
24370
+ color: Cesium.Color;
24340
24371
  /**
24341
24372
  * 获取 材质名称
24342
24373
  * @param [time] - 检索值的时间。
@@ -24356,14 +24387,6 @@ declare class CircleScanMaterialProperty extends BaseMaterialProperty {
24356
24387
  * @returns 两者是同一个对象
24357
24388
  */
24358
24389
  equals(other?: Cesium.Property): boolean;
24359
- /**
24360
- * 颜色
24361
- */
24362
- color: Cesium.Color;
24363
- /**
24364
- * 背景图片URL
24365
- */
24366
- image: string;
24367
24390
  }
24368
24391
 
24369
24392
  /**
@@ -24383,6 +24406,26 @@ declare class CircleWaveMaterialProperty extends BaseMaterialProperty {
24383
24406
  count?: number;
24384
24407
  gradient?: number;
24385
24408
  });
24409
+ /**
24410
+ * 颜色
24411
+ */
24412
+ color: Cesium.Color;
24413
+ /**
24414
+ * 速度
24415
+ */
24416
+ speed: number;
24417
+ /**
24418
+ * 播放总时长,单位:秒 (会覆盖speed参数)
24419
+ */
24420
+ duration: number;
24421
+ /**
24422
+ * 圆圈个数
24423
+ */
24424
+ count: number;
24425
+ /**
24426
+ * 透明度的幂方(0-1),0表示无虚化效果,1表示虚化成均匀渐变
24427
+ */
24428
+ gradient: number;
24386
24429
  /**
24387
24430
  * 获取 材质名称
24388
24431
  * @param [time] - 检索值的时间。
@@ -24402,22 +24445,6 @@ declare class CircleWaveMaterialProperty extends BaseMaterialProperty {
24402
24445
  * @returns 两者是同一个对象
24403
24446
  */
24404
24447
  equals(other?: Cesium.Property): boolean;
24405
- /**
24406
- * 颜色
24407
- */
24408
- color: Cesium.Color;
24409
- /**
24410
- * 速度
24411
- */
24412
- speed: number;
24413
- /**
24414
- * 圆圈个数
24415
- */
24416
- count: number;
24417
- /**
24418
- * 透明度的幂方(0-1),0表示无虚化效果,1表示虚化成均匀渐变
24419
- */
24420
- gradient: number;
24421
24448
  }
24422
24449
 
24423
24450
  /**
@@ -24435,6 +24462,22 @@ declare class CylinderWaveMaterialProperty extends BaseMaterialProperty {
24435
24462
  thickness?: number;
24436
24463
  speed?: number;
24437
24464
  });
24465
+ /**
24466
+ * 颜色
24467
+ */
24468
+ color: Cesium.Color;
24469
+ /**
24470
+ * 圈数量
24471
+ */
24472
+ repeat: number;
24473
+ /**
24474
+ * 圈的宽度比例
24475
+ */
24476
+ thickness: number;
24477
+ /**
24478
+ * 速度,值越大越快
24479
+ */
24480
+ speed: number;
24438
24481
  /**
24439
24482
  * 获取 材质名称
24440
24483
  * @param [time] - 检索值的时间。
@@ -24454,14 +24497,6 @@ declare class CylinderWaveMaterialProperty extends BaseMaterialProperty {
24454
24497
  * @returns 两者是同一个对象
24455
24498
  */
24456
24499
  equals(other?: Cesium.Property): boolean;
24457
- /**
24458
- * 颜色
24459
- */
24460
- color: Cesium.Color;
24461
- /**
24462
- * 重复次数
24463
- */
24464
- repeat: number;
24465
24500
  }
24466
24501
 
24467
24502
  /**
@@ -24481,6 +24516,26 @@ declare class DigitalFlowMaterialProperty extends BaseMaterialProperty {
24481
24516
  flowGlow?: number;
24482
24517
  segment?: number;
24483
24518
  });
24519
+ /**
24520
+ * 颜色
24521
+ */
24522
+ color: Cesium.Color;
24523
+ /**
24524
+ * 速度,值越大越快
24525
+ */
24526
+ speed: number;
24527
+ /**
24528
+ * 高亮强度
24529
+ */
24530
+ glow: number;
24531
+ /**
24532
+ * 流动高亮强度
24533
+ */
24534
+ flowGlow: number;
24535
+ /**
24536
+ * 分段数
24537
+ */
24538
+ segment: number;
24484
24539
  /**
24485
24540
  * 获取 材质名称
24486
24541
  * @param [time] - 检索值的时间。
@@ -24500,10 +24555,6 @@ declare class DigitalFlowMaterialProperty extends BaseMaterialProperty {
24500
24555
  * @returns 两者是同一个对象
24501
24556
  */
24502
24557
  equals(other?: Cesium.Property): boolean;
24503
- /**
24504
- * 颜色
24505
- */
24506
- color: Cesium.Color;
24507
24558
  }
24508
24559
 
24509
24560
  /**
@@ -24517,6 +24568,14 @@ declare class EllipsoidElectricMaterialProperty extends BaseMaterialProperty {
24517
24568
  color?: Cesium.Color;
24518
24569
  speed?: number;
24519
24570
  });
24571
+ /**
24572
+ * 颜色
24573
+ */
24574
+ color: Cesium.Color;
24575
+ /**
24576
+ * 速度,值越大越快
24577
+ */
24578
+ speed: number;
24520
24579
  /**
24521
24580
  * 获取 材质名称
24522
24581
  * @param [time] - 检索值的时间。
@@ -24536,10 +24595,6 @@ declare class EllipsoidElectricMaterialProperty extends BaseMaterialProperty {
24536
24595
  * @returns 两者是同一个对象
24537
24596
  */
24538
24597
  equals(other?: Cesium.Property): boolean;
24539
- /**
24540
- * 颜色
24541
- */
24542
- color: Cesium.Color;
24543
24598
  }
24544
24599
 
24545
24600
  /**
@@ -24553,6 +24608,14 @@ declare class EllipsoidWaveMaterialProperty extends BaseMaterialProperty {
24553
24608
  color?: Cesium.Color;
24554
24609
  speed?: number;
24555
24610
  });
24611
+ /**
24612
+ * 颜色
24613
+ */
24614
+ color: Cesium.Color;
24615
+ /**
24616
+ * 速度
24617
+ */
24618
+ speed: number;
24556
24619
  /**
24557
24620
  * 获取 材质名称
24558
24621
  * @param [time] - 检索值的时间。
@@ -24572,10 +24635,6 @@ declare class EllipsoidWaveMaterialProperty extends BaseMaterialProperty {
24572
24635
  * @returns 两者是同一个对象
24573
24636
  */
24574
24637
  equals(other?: Cesium.Property): boolean;
24575
- /**
24576
- * 颜色
24577
- */
24578
- color: Cesium.Color;
24579
24638
  }
24580
24639
 
24581
24640
  /**
@@ -24591,6 +24650,18 @@ declare class Image2MaterialProperty extends BaseMaterialProperty {
24591
24650
  opacity?: number;
24592
24651
  color?: string | Cesium.Color;
24593
24652
  });
24653
+ /**
24654
+ * 背景图片URL
24655
+ */
24656
+ image: string;
24657
+ /**
24658
+ * 透明度,0-1
24659
+ */
24660
+ opacity: number;
24661
+ /**
24662
+ * 颜色
24663
+ */
24664
+ color: Cesium.Color;
24594
24665
  /**
24595
24666
  * 获取 材质名称
24596
24667
  * @param [time] - 检索值的时间。
@@ -24610,14 +24681,6 @@ declare class Image2MaterialProperty extends BaseMaterialProperty {
24610
24681
  * @returns 两者是同一个对象
24611
24682
  */
24612
24683
  equals(other?: Cesium.Property): boolean;
24613
- /**
24614
- * 透明度,0-1
24615
- */
24616
- opacity: number;
24617
- /**
24618
- * 背景图片URL
24619
- */
24620
- image: string;
24621
24684
  }
24622
24685
 
24623
24686
  /**
@@ -24633,6 +24696,18 @@ declare class LineBloomMaterialProperty extends BaseMaterialProperty {
24633
24696
  glow?: number;
24634
24697
  speed?: number;
24635
24698
  });
24699
+ /**
24700
+ * 颜色
24701
+ */
24702
+ color: Cesium.Color;
24703
+ /**
24704
+ * 速度,值越大越快
24705
+ */
24706
+ speed: number;
24707
+ /**
24708
+ * 泛光强度
24709
+ */
24710
+ glow: number;
24636
24711
  /**
24637
24712
  * 获取 材质名称
24638
24713
  * @param [time] - 检索值的时间。
@@ -24652,10 +24727,6 @@ declare class LineBloomMaterialProperty extends BaseMaterialProperty {
24652
24727
  * @returns 两者是同一个对象
24653
24728
  */
24654
24729
  equals(other?: Cesium.Property): boolean;
24655
- /**
24656
- * 颜色
24657
- */
24658
- color: Cesium.Color;
24659
24730
  }
24660
24731
 
24661
24732
  /**
@@ -24669,6 +24740,14 @@ declare class LineFlickerMaterialProperty extends BaseMaterialProperty {
24669
24740
  color?: Cesium.Color;
24670
24741
  speed?: number;
24671
24742
  });
24743
+ /**
24744
+ * 背景图片颜色
24745
+ */
24746
+ color: Cesium.Color;
24747
+ /**
24748
+ * 速度,值越大越快
24749
+ */
24750
+ speed: number;
24672
24751
  /**
24673
24752
  * 获取 材质名称
24674
24753
  * @param [time] - 检索值的时间。
@@ -24688,10 +24767,6 @@ declare class LineFlickerMaterialProperty extends BaseMaterialProperty {
24688
24767
  * @returns 两者是同一个对象
24689
24768
  */
24690
24769
  equals(other?: Cesium.Property): boolean;
24691
- /**
24692
- * 颜色
24693
- */
24694
- color: Cesium.Color;
24695
24770
  }
24696
24771
 
24697
24772
  /**
@@ -24711,6 +24786,26 @@ declare class LineFlowColorMaterialProperty extends BaseMaterialProperty {
24711
24786
  alpha?: number;
24712
24787
  startTime?: number;
24713
24788
  });
24789
+ /**
24790
+ * 颜色
24791
+ */
24792
+ color: Cesium.Color;
24793
+ /**
24794
+ * 速度,值越大越快
24795
+ */
24796
+ speed: number;
24797
+ /**
24798
+ * 比例
24799
+ */
24800
+ percent: number;
24801
+ /**
24802
+ * 透明程度 0.0-1.0
24803
+ */
24804
+ alpha: number;
24805
+ /**
24806
+ * 开始的时间系数
24807
+ */
24808
+ startTime: number;
24714
24809
  /**
24715
24810
  * 获取 材质名称
24716
24811
  * @param [time] - 检索值的时间。
@@ -24730,10 +24825,6 @@ declare class LineFlowColorMaterialProperty extends BaseMaterialProperty {
24730
24825
  * @returns 两者是同一个对象
24731
24826
  */
24732
24827
  equals(other?: Cesium.Property): boolean;
24733
- /**
24734
- * 颜色
24735
- */
24736
- color: Cesium.Color;
24737
24828
  }
24738
24829
 
24739
24830
  /**
@@ -24743,7 +24834,7 @@ declare class LineFlowColorMaterialProperty extends BaseMaterialProperty {
24743
24834
  * @param [options.color = new Cesium.Color(1, 0, 0, 1.0)] - 背景图片颜色
24744
24835
  * @param [options.repeat = new Cesium.Cartesian2(1.0, 1.0)] - 横纵方向重复次数
24745
24836
  * @param [options.axisY = false] - 是否Y轴朝上
24746
- * @param [options.speed = 10] - 速度,建议取值范围1-100
24837
+ * @param [options.speed = 10] - 速度
24747
24838
  * @param [options.duration] - 播放总时长,单位:秒 (会覆盖speed参数)
24748
24839
  * @param [options.hasImage2 = false] - 是否有2张图片的混合模式
24749
24840
  * @param [options.image2] - 第2张背景图片URL地址
@@ -24761,6 +24852,42 @@ declare class LineFlowMaterialProperty extends BaseMaterialProperty {
24761
24852
  image2?: string;
24762
24853
  color2?: string | Cesium.Color;
24763
24854
  });
24855
+ /**
24856
+ * 背景图片URL
24857
+ */
24858
+ image: string;
24859
+ /**
24860
+ * 背景图片颜色
24861
+ */
24862
+ color: Cesium.Color;
24863
+ /**
24864
+ * 是否Y轴朝上
24865
+ */
24866
+ axisY: boolean;
24867
+ /**
24868
+ * 速度
24869
+ */
24870
+ speed: number;
24871
+ /**
24872
+ * 播放总时长,单位:秒 (会覆盖speed参数)
24873
+ */
24874
+ duration: number;
24875
+ /**
24876
+ * 横纵方向重复次数
24877
+ */
24878
+ repeat: Cesium.Cartesian2;
24879
+ /**
24880
+ * 第2张背景图片
24881
+ */
24882
+ image2: string;
24883
+ /**
24884
+ * 第2张背景图片颜色
24885
+ */
24886
+ color2: Cesium.Color;
24887
+ /**
24888
+ * 是否有2张图片的混合模式
24889
+ */
24890
+ hasImage2: boolean;
24764
24891
  /**
24765
24892
  * 获取 材质名称
24766
24893
  * @param [time] - 检索值的时间。
@@ -24780,17 +24907,13 @@ declare class LineFlowMaterialProperty extends BaseMaterialProperty {
24780
24907
  * @returns 两者是同一个对象
24781
24908
  */
24782
24909
  equals(other?: Cesium.Property): boolean;
24783
- /**
24784
- * 颜色
24785
- */
24786
- color: Cesium.Color;
24787
24910
  }
24788
24911
 
24789
24912
  /**
24790
24913
  * 线状: 轨迹线 材质
24791
24914
  * @param [options] - 参数对象,包括以下:
24792
24915
  * @param [options.color = new Cesium.Color(1, 0, 0, 1.0)] - 颜色
24793
- * @param [options.bgColor] - 线的背景颜色
24916
+ * @param [options.bgColor] - 背景颜色
24794
24917
  * @param [options.speed = 5.0] - 速度,值越大越快
24795
24918
  */
24796
24919
  declare class LineTrailMaterialProperty extends BaseMaterialProperty {
@@ -24799,6 +24922,18 @@ declare class LineTrailMaterialProperty extends BaseMaterialProperty {
24799
24922
  bgColor?: string | Cesium.Color;
24800
24923
  speed?: number;
24801
24924
  });
24925
+ /**
24926
+ * 颜色
24927
+ */
24928
+ color: Cesium.Color;
24929
+ /**
24930
+ * 背景颜色
24931
+ */
24932
+ bgColor: Cesium.Color;
24933
+ /**
24934
+ * 速度,值越大越快
24935
+ */
24936
+ speed: number;
24802
24937
  /**
24803
24938
  * 获取 材质名称
24804
24939
  * @param [time] - 检索值的时间。
@@ -24818,14 +24953,6 @@ declare class LineTrailMaterialProperty extends BaseMaterialProperty {
24818
24953
  * @returns 两者是同一个对象
24819
24954
  */
24820
24955
  equals(other?: Cesium.Property): boolean;
24821
- /**
24822
- * 颜色
24823
- */
24824
- color: Cesium.Color;
24825
- /**
24826
- * 背景颜色
24827
- */
24828
- bgColor: Cesium.Color;
24829
24956
  }
24830
24957
 
24831
24958
  /**
@@ -24839,6 +24966,14 @@ declare class NeonLightMaterialProperty extends BaseMaterialProperty {
24839
24966
  color?: string | Cesium.Color;
24840
24967
  speed?: number;
24841
24968
  });
24969
+ /**
24970
+ * 颜色
24971
+ */
24972
+ color: Cesium.Color;
24973
+ /**
24974
+ * 速度
24975
+ */
24976
+ speed: number;
24842
24977
  /**
24843
24978
  * 获取 材质名称
24844
24979
  * @param [time] - 检索值的时间。
@@ -24858,10 +24993,6 @@ declare class NeonLightMaterialProperty extends BaseMaterialProperty {
24858
24993
  * @returns 两者是同一个对象
24859
24994
  */
24860
24995
  equals(other?: Cesium.Property): boolean;
24861
- /**
24862
- * 颜色
24863
- */
24864
- color: Cesium.Color;
24865
24996
  }
24866
24997
 
24867
24998
  /**
@@ -24881,6 +25012,26 @@ declare class ODLineMaterialProperty extends BaseMaterialProperty {
24881
25012
  startTime?: number;
24882
25013
  bidirectional?: number;
24883
25014
  });
25015
+ /**
25016
+ * 运动对象的颜色
25017
+ */
25018
+ color: Cesium.Color;
25019
+ /**
25020
+ * 线的背景颜色
25021
+ */
25022
+ bgColor: Cesium.Color;
25023
+ /**
25024
+ * 速度
25025
+ */
25026
+ speed: number;
25027
+ /**
25028
+ * 开始的时间系数
25029
+ */
25030
+ startTime: number;
25031
+ /**
25032
+ * 运行形式:0 正向运动 1 反向运动 2 双向运动
25033
+ */
25034
+ bidirectional: number;
24884
25035
  /**
24885
25036
  * 获取 材质名称
24886
25037
  * @param [time] - 检索值的时间。
@@ -24900,18 +25051,6 @@ declare class ODLineMaterialProperty extends BaseMaterialProperty {
24900
25051
  * @returns 两者是同一个对象
24901
25052
  */
24902
25053
  equals(other?: Cesium.Property): boolean;
24903
- /**
24904
- * 运动对象的颜色
24905
- */
24906
- color: Cesium.Color;
24907
- /**
24908
- * 线的背景颜色
24909
- */
24910
- bgColor: Cesium.Color;
24911
- /**
24912
- * 速度
24913
- */
24914
- speed: number;
24915
25054
  }
24916
25055
 
24917
25056
  /**
@@ -24927,6 +25066,18 @@ declare class PolyAsphaltMaterialProperty extends BaseMaterialProperty {
24927
25066
  size?: number;
24928
25067
  frequency?: number;
24929
25068
  });
25069
+ /**
25070
+ * 颜色
25071
+ */
25072
+ color: Cesium.Color;
25073
+ /**
25074
+ * 块大小
25075
+ */
25076
+ size: number;
25077
+ /**
25078
+ * 粗糙度
25079
+ */
25080
+ frequency: number;
24930
25081
  /**
24931
25082
  * 获取 材质名称
24932
25083
  * @param [time] - 检索值的时间。
@@ -24946,10 +25097,6 @@ declare class PolyAsphaltMaterialProperty extends BaseMaterialProperty {
24946
25097
  * @returns 两者是同一个对象
24947
25098
  */
24948
25099
  equals(other?: Cesium.Property): boolean;
24949
- /**
24950
- * 颜色
24951
- */
24952
- color: Cesium.Color;
24953
25100
  }
24954
25101
 
24955
25102
  /**
@@ -24965,6 +25112,18 @@ declare class PolyBlobMaterialProperty extends BaseMaterialProperty {
24965
25112
  oddColor?: Cesium.Color;
24966
25113
  frequency?: number;
24967
25114
  });
25115
+ /**
25116
+ * 浅色的颜色
25117
+ */
25118
+ evenColor: Cesium.Color;
25119
+ /**
25120
+ * 深色的颜色
25121
+ */
25122
+ oddColor: Cesium.Color;
25123
+ /**
25124
+ * 频率
25125
+ */
25126
+ frequency: number;
24968
25127
  /**
24969
25128
  * 获取 材质名称
24970
25129
  * @param [time] - 检索值的时间。
@@ -24984,14 +25143,6 @@ declare class PolyBlobMaterialProperty extends BaseMaterialProperty {
24984
25143
  * @returns 两者是同一个对象
24985
25144
  */
24986
25145
  equals(other?: Cesium.Property): boolean;
24987
- /**
24988
- * 浅色的颜色
24989
- */
24990
- evenColor: Cesium.Color;
24991
- /**
24992
- * 深色的颜色
24993
- */
24994
- oddColor: Cesium.Color;
24995
25146
  }
24996
25147
 
24997
25148
  /**
@@ -25013,14 +25164,6 @@ declare class PolyFacetMaterialProperty extends BaseMaterialProperty {
25013
25164
  * @returns 材质名称
25014
25165
  */
25015
25166
  getType(time?: Cesium.JulianDate): string;
25016
- /**
25017
- * 浅色的颜色
25018
- */
25019
- evenColor: Cesium.Color;
25020
- /**
25021
- * 深色的颜色
25022
- */
25023
- oddColor: Cesium.Color;
25024
25167
  }
25025
25168
 
25026
25169
  /**
@@ -25038,6 +25181,22 @@ declare class PolyGradientMaterialProperty extends BaseMaterialProperty {
25038
25181
  diffusePower?: number;
25039
25182
  center?: Cesium.Cartesian2;
25040
25183
  });
25184
+ /**
25185
+ * 颜色
25186
+ */
25187
+ color: Cesium.Color;
25188
+ /**
25189
+ * 漫射系数
25190
+ */
25191
+ diffusePower: number;
25192
+ /**
25193
+ * 透明度系数
25194
+ */
25195
+ alphaPower: number;
25196
+ /**
25197
+ * 渐变位置,默认在中心
25198
+ */
25199
+ center: Cesium.Cartesian2;
25041
25200
  /**
25042
25201
  * 获取 材质名称
25043
25202
  * @param [time] - 检索值的时间。
@@ -25057,10 +25216,6 @@ declare class PolyGradientMaterialProperty extends BaseMaterialProperty {
25057
25216
  * @returns 两者是同一个对象
25058
25217
  */
25059
25218
  equals(other?: Cesium.Property): boolean;
25060
- /**
25061
- * 颜色
25062
- */
25063
- color: Cesium.Color;
25064
25219
  }
25065
25220
 
25066
25221
  /**
@@ -25082,14 +25237,6 @@ declare class PolyGrassMaterialProperty extends BaseMaterialProperty {
25082
25237
  * @returns 材质名称
25083
25238
  */
25084
25239
  getType(time?: Cesium.JulianDate): string;
25085
- /**
25086
- * 浅色的颜色
25087
- */
25088
- evenColor: Cesium.Color;
25089
- /**
25090
- * 深色的颜色
25091
- */
25092
- oddColor: Cesium.Color;
25093
25240
  }
25094
25241
 
25095
25242
  /**
@@ -25109,6 +25256,26 @@ declare class PolyWoodMaterialProperty extends BaseMaterialProperty {
25109
25256
  noiseScale?: Cesium.Cartesian2;
25110
25257
  grainFrequency?: number;
25111
25258
  });
25259
+ /**
25260
+ * 浅色的颜色
25261
+ */
25262
+ evenColor: Cesium.Color;
25263
+ /**
25264
+ * 深色的颜色
25265
+ */
25266
+ oddColor: Cesium.Color;
25267
+ /**
25268
+ * 环频率
25269
+ */
25270
+ frequency: number;
25271
+ /**
25272
+ * 噪波比例
25273
+ */
25274
+ noiseScale: Cesium.Cartesian2;
25275
+ /**
25276
+ * 颗粒的频率
25277
+ */
25278
+ grainFrequency: number;
25112
25279
  /**
25113
25280
  * 获取 材质名称
25114
25281
  * @param [time] - 检索值的时间。
@@ -25128,14 +25295,6 @@ declare class PolyWoodMaterialProperty extends BaseMaterialProperty {
25128
25295
  * @returns 两者是同一个对象
25129
25296
  */
25130
25297
  equals(other?: Cesium.Property): boolean;
25131
- /**
25132
- * 浅色的颜色
25133
- */
25134
- evenColor: Cesium.Color;
25135
- /**
25136
- * 深色的颜色
25137
- */
25138
- oddColor: Cesium.Color;
25139
25298
  }
25140
25299
 
25141
25300
  /**
@@ -25149,6 +25308,14 @@ declare class RadarLineMaterialProperty extends BaseMaterialProperty {
25149
25308
  color?: Cesium.Color;
25150
25309
  speed?: number;
25151
25310
  });
25311
+ /**
25312
+ * 颜色
25313
+ */
25314
+ color: Cesium.Color;
25315
+ /**
25316
+ * 速度
25317
+ */
25318
+ speed: number;
25152
25319
  /**
25153
25320
  * 获取 材质名称
25154
25321
  * @param [time] - 检索值的时间。
@@ -25168,10 +25335,6 @@ declare class RadarLineMaterialProperty extends BaseMaterialProperty {
25168
25335
  * @returns 两者是同一个对象
25169
25336
  */
25170
25337
  equals(other?: Cesium.Property): boolean;
25171
- /**
25172
- * 颜色
25173
- */
25174
- color: Cesium.Color;
25175
25338
  }
25176
25339
 
25177
25340
  /**
@@ -25185,6 +25348,14 @@ declare class RadarWaveMaterialProperty extends BaseMaterialProperty {
25185
25348
  color?: Cesium.Color;
25186
25349
  speed?: number;
25187
25350
  });
25351
+ /**
25352
+ * 颜色
25353
+ */
25354
+ color: Cesium.Color;
25355
+ /**
25356
+ * 速度
25357
+ */
25358
+ speed: number;
25188
25359
  /**
25189
25360
  * 获取 材质名称
25190
25361
  * @param [time] - 检索值的时间。
@@ -25204,10 +25375,6 @@ declare class RadarWaveMaterialProperty extends BaseMaterialProperty {
25204
25375
  * @returns 两者是同一个对象
25205
25376
  */
25206
25377
  equals(other?: Cesium.Property): boolean;
25207
- /**
25208
- * 颜色
25209
- */
25210
- color: Cesium.Color;
25211
25378
  }
25212
25379
 
25213
25380
  /**
@@ -25225,6 +25392,22 @@ declare class RectSlideMaterialProperty extends BaseMaterialProperty {
25225
25392
  speed?: number;
25226
25393
  pure?: boolean;
25227
25394
  });
25395
+ /**
25396
+ * 背景图片URL
25397
+ */
25398
+ image: string;
25399
+ /**
25400
+ * 背景图片颜色
25401
+ */
25402
+ color: Cesium.Color;
25403
+ /**
25404
+ * 速度,值越大越快
25405
+ */
25406
+ speed: number;
25407
+ /**
25408
+ * 是否纯色
25409
+ */
25410
+ pure: boolean;
25228
25411
  /**
25229
25412
  * 获取 材质名称
25230
25413
  * @param [time] - 检索值的时间。
@@ -25244,14 +25427,6 @@ declare class RectSlideMaterialProperty extends BaseMaterialProperty {
25244
25427
  * @returns 两者是同一个对象
25245
25428
  */
25246
25429
  equals(other?: Cesium.Property): boolean;
25247
- /**
25248
- * 背景图片URL
25249
- */
25250
- image: string;
25251
- /**
25252
- * 颜色
25253
- */
25254
- color: Cesium.Color;
25255
25430
  }
25256
25431
 
25257
25432
  /**
@@ -25265,6 +25440,14 @@ declare class ScanLineMaterialProperty extends BaseMaterialProperty {
25265
25440
  color?: string | Cesium.Color;
25266
25441
  speed?: number;
25267
25442
  });
25443
+ /**
25444
+ * 颜色
25445
+ */
25446
+ color: Cesium.Color;
25447
+ /**
25448
+ * 速度
25449
+ */
25450
+ speed: number;
25268
25451
  /**
25269
25452
  * 获取 材质名称
25270
25453
  * @param [time] - 检索值的时间。
@@ -25284,14 +25467,6 @@ declare class ScanLineMaterialProperty extends BaseMaterialProperty {
25284
25467
  * @returns 两者是同一个对象
25285
25468
  */
25286
25469
  equals(other?: Cesium.Property): boolean;
25287
- /**
25288
- * 颜色
25289
- */
25290
- color: Cesium.Color;
25291
- /**
25292
- * 速度
25293
- */
25294
- speed: Cesium.Color;
25295
25470
  }
25296
25471
 
25297
25472
  /**
@@ -25337,6 +25512,10 @@ declare class TextMaterialProperty extends Image2MaterialProperty {
25337
25512
  textBaseline?: string;
25338
25513
  onCustomCanvas?: (...params: any[]) => any;
25339
25514
  });
25515
+ /**
25516
+ * 是否透明
25517
+ */
25518
+ transparent: boolean;
25340
25519
  /**
25341
25520
  * 文本内容
25342
25521
  */
@@ -25345,6 +25524,10 @@ declare class TextMaterialProperty extends Image2MaterialProperty {
25345
25524
  * 文本样式
25346
25525
  */
25347
25526
  textStyles: any;
25527
+ /**
25528
+ * 背景图片URL
25529
+ */
25530
+ image: string;
25348
25531
  }
25349
25532
 
25350
25533
  /**
@@ -25368,6 +25551,34 @@ declare class WallScrollMaterialProperty extends BaseMaterialProperty {
25368
25551
  bloom?: boolean;
25369
25552
  axisY?: boolean;
25370
25553
  });
25554
+ /**
25555
+ * 背景图片URL
25556
+ */
25557
+ image: string;
25558
+ /**
25559
+ * 背景图片颜色
25560
+ */
25561
+ color: Cesium.Color;
25562
+ /**
25563
+ * 速度
25564
+ */
25565
+ speed: number;
25566
+ /**
25567
+ * 数量
25568
+ */
25569
+ count: number;
25570
+ /**
25571
+ * 方向,false是往下,true是往上
25572
+ */
25573
+ reverse: boolean;
25574
+ /**
25575
+ * 是否Y轴朝上
25576
+ */
25577
+ axisY: boolean;
25578
+ /**
25579
+ * 是否泛光
25580
+ */
25581
+ bloom: boolean;
25371
25582
  /**
25372
25583
  * 获取 材质名称
25373
25584
  * @param [time] - 检索值的时间。
@@ -25387,14 +25598,6 @@ declare class WallScrollMaterialProperty extends BaseMaterialProperty {
25387
25598
  * @returns 两者是同一个对象
25388
25599
  */
25389
25600
  equals(other?: Cesium.Property): boolean;
25390
- /**
25391
- * 背景图片URL
25392
- */
25393
- image: string;
25394
- /**
25395
- * 颜色
25396
- */
25397
- color: Cesium.Color;
25398
25601
  }
25399
25602
 
25400
25603
  /**
@@ -25410,6 +25613,18 @@ declare class WaterLightMaterialProperty extends BaseMaterialProperty {
25410
25613
  normalMap?: string;
25411
25614
  alpha?: number;
25412
25615
  });
25616
+ /**
25617
+ * 图片路径,镜面反射纹理材质图片
25618
+ */
25619
+ specularMap: string;
25620
+ /**
25621
+ * 图片路径,水正常扰动的法线图材质图片
25622
+ */
25623
+ normalMap: string;
25624
+ /**
25625
+ * 透明度
25626
+ */
25627
+ alpha: number;
25413
25628
  /**
25414
25629
  * 获取 材质名称
25415
25630
  * @param [time] - 检索值的时间。
@@ -25429,24 +25644,20 @@ declare class WaterLightMaterialProperty extends BaseMaterialProperty {
25429
25644
  * @returns 两者是同一个对象
25430
25645
  */
25431
25646
  equals(other?: Cesium.Property): boolean;
25432
- /**
25433
- * 图片路径,镜面反射纹理材质图片
25434
- */
25435
- specularMap: string;
25436
25647
  }
25437
25648
 
25438
25649
  /**
25439
25650
  * 水面效果材质
25440
25651
  * @param [options] - 参数对象,包括以下:
25441
25652
  * @param [options.baseWaterColor = new Cesium.Color(0.2, 0.3, 0.6, 1.0)] - 基础颜色
25442
- * @param [options.blendColor = new Cesium.Color(0.0, 1.0, 0.699, 1.0)] - 从水中混合到非水域时使用的rgba颜色对象。
25443
- * @param [options.specularMap] - 单一通道纹理用来指示水域的面积。
25444
- * @param [options.normalMap] - 水正常扰动的法线图。
25445
- * @param [options.frequency = 100] - 控制波数的数字。
25446
- * @param [options.animationSpeed = 0.01] - 控制水的动画速度的数字。
25447
- * @param [options.amplitude = 10] - 控制水波振幅的数字。
25448
- * @param [options.specularIntensity = 0.5] - 控制镜面反射强度的数字。
25449
- * @param [options.fadeFactor = 1.0] - fadeFactor
25653
+ * @param [options.blendColor = new Cesium.Color(0.0, 1.0, 0.699, 1.0)] - 从水中混合到非水域时使用的rgba颜色
25654
+ * @param [options.specularMap] - 单一通道纹理用来指示水域的面积
25655
+ * @param [options.normalMap] - 水正常扰动的法线图
25656
+ * @param [options.frequency = 100] - 控制波数的数字
25657
+ * @param [options.animationSpeed = 0.01] - 控制水的动画速度的数字
25658
+ * @param [options.amplitude = 10] - 控制水波振幅的数字
25659
+ * @param [options.specularIntensity = 0.5] - 控制镜面反射强度的数字
25660
+ * @param [options.fadeFactor = 1.0] - 衰减因子
25450
25661
  */
25451
25662
  declare class WaterMaterialProperty extends BaseMaterialProperty {
25452
25663
  constructor(options?: {
@@ -25460,6 +25671,42 @@ declare class WaterMaterialProperty extends BaseMaterialProperty {
25460
25671
  specularIntensity?: number;
25461
25672
  fadeFactor?: number;
25462
25673
  });
25674
+ /**
25675
+ * 基础颜色
25676
+ */
25677
+ baseWaterColor: Cesium.Color;
25678
+ /**
25679
+ * 从水中混合到非水域时使用的rgba颜色
25680
+ */
25681
+ blendColor: Cesium.Color;
25682
+ /**
25683
+ * 单一通道纹理用来指示水域的面积
25684
+ */
25685
+ specularMap: string;
25686
+ /**
25687
+ * 水正常扰动的法线图
25688
+ */
25689
+ normalMap: string;
25690
+ /**
25691
+ * 控制波数的数字
25692
+ */
25693
+ frequency: number;
25694
+ /**
25695
+ * 控制水的动画速度的数字
25696
+ */
25697
+ animationSpeed: number;
25698
+ /**
25699
+ * 控制水波振幅的数字
25700
+ */
25701
+ amplitude: number;
25702
+ /**
25703
+ * 控制镜面反射强度的数字
25704
+ */
25705
+ specularIntensity: number;
25706
+ /**
25707
+ * 衰减因子
25708
+ */
25709
+ fadeFactor: number;
25463
25710
  /**
25464
25711
  * 获取 材质名称
25465
25712
  * @param [time] - 检索值的时间。
@@ -25479,22 +25726,6 @@ declare class WaterMaterialProperty extends BaseMaterialProperty {
25479
25726
  * @returns 两者是同一个对象
25480
25727
  */
25481
25728
  equals(other?: Cesium.Property): boolean;
25482
- /**
25483
- * 基础颜色
25484
- */
25485
- baseWaterColor: Cesium.Color;
25486
- /**
25487
- * 从水中混合到非水域时使用的rgba颜色对象。
25488
- */
25489
- blendColor: Cesium.Color;
25490
- /**
25491
- * 单一通道纹理用来指示水域的面积。
25492
- */
25493
- specularMap: string;
25494
- /**
25495
- * 水正常扰动的法线图。
25496
- */
25497
- normalMap: string;
25498
25729
  }
25499
25730
 
25500
25731
  /**
@@ -31585,9 +31816,10 @@ declare namespace GraphicUtil {
31585
31816
  * 注册矢量数据类
31586
31817
  * @param type - 矢量数据类型
31587
31818
  * @param graphicClass - 矢量数据类
31819
+ * @param [isPoint] - 是否为点状数据
31588
31820
  * @returns 无
31589
31821
  */
31590
- function register(type: string, graphicClass: BaseGraphic | any): void;
31822
+ function register(type: string, graphicClass: BaseGraphic | any, isPoint?: boolean): void;
31591
31823
  /**
31592
31824
  * 根据 矢量数据类型 获取 矢量数据类
31593
31825
  * @param type - 矢量数据类型
@@ -32189,6 +32421,13 @@ declare namespace PointUtil {
32189
32421
  }): number;
32190
32422
  /**
32191
32423
  * 异步精确计算坐标的 贴地(或贴模型)高度
32424
+ * @example
32425
+ * const position = graphic.position
32426
+ * mars3d.PointUtil.getSurfaceHeight(map.scene, graphic.position, { has3dtiles: true }).then((result) => {
32427
+ * console.log("原始高度为:" + result.height_original.toFixed(2) + ",贴地高度:" + result.height.toFixed(2))
32428
+ *
32429
+ * graphic.position = result.position
32430
+ * })
32192
32431
  * @param scene - 三维地图场景对象,一般用map.scene或viewer.scene
32193
32432
  * @param position - 坐标
32194
32433
  * @param [options = {}] - 参数对象:
@@ -32619,12 +32858,12 @@ declare namespace PolyUtil {
32619
32858
  * @param positions - 坐标数组
32620
32859
  * @param [options = {}] - 参数对象:
32621
32860
  * @param [options.splitNum] - 插值数,等比分割的个数,默认不插值
32622
- * @param [options.minDistance] - 插值时的最小间隔(单位:米),优先级高于splitNum
32861
+ * @param [options.minDistance] - 插值时的最小间隔(单位:米),优先级高于splitNum,如果传"auto",自动计算坐标中最小的2点距离
32623
32862
  * @returns 插值后的坐标对象
32624
32863
  */
32625
32864
  function interLine(positions: LngLatPoint[] | Cesium.Cartesian3[] | any[], options?: {
32626
32865
  splitNum?: number;
32627
- minDistance?: number;
32866
+ minDistance?: number | string;
32628
32867
  }): Cesium.Cartesian3[];
32629
32868
  /**
32630
32869
  * 求路线的贴地线坐标(插值)
@@ -33289,6 +33528,7 @@ declare namespace control {
33289
33528
  export { Compass }
33290
33529
  export { DistanceLegend }
33291
33530
  export { MapSplit }
33531
+ export { MapCompare }
33292
33532
  export { OverviewMap }
33293
33533
  export { ClockAnimate }
33294
33534
  export { Timeline }
@@ -33538,6 +33778,7 @@ declare namespace layer {
33538
33778
  export { GraphicLayer as DivLayer }
33539
33779
  export { GraphicGroupLayer }
33540
33780
  export { GeoJsonLayer }
33781
+ export { BusineDataLayer }
33541
33782
  export { TilesetLayer }
33542
33783
  export { OsmBuildingsLayer }
33543
33784
  export { GraticuleLayer }