mars3d 3.4.7 → 3.4.9

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.7
6
- * 编译日期:2022-09-07 14:44:52
5
+ * 版本信息:v3.4.9
6
+ * 编译日期:2022-10-10 17:11:33
7
7
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
8
8
  * 使用单位:免费公开版 ,2022-06-01
9
9
  */
@@ -1163,6 +1163,7 @@ declare namespace MaterialType {
1163
1163
  * @property [repeat = new Cesium.Cartesian2(1.0, 1.0)] - 横纵方向重复次数
1164
1164
  * @property [speed = 10] - 速度,值越大越快
1165
1165
  * @property [axisY = false] - 是否Y轴朝上
1166
+ * @property [mixt = false] - 默认为color颜色,true时color颜色与图片颜色混合
1166
1167
  * @property [hasImage2 = false] - 是否有2张图片的混合模式
1167
1168
  * @property [image2 = Cesium.Material.DefaultImageId] - 第2张背景图片URL地址
1168
1169
  * @property [color2 = new Cesium.Color(1, 1, 1)] - 第2张背景图片颜色
@@ -2141,10 +2142,6 @@ declare class Timeline extends BaseControl {
2141
2142
  * @param stopTime - 结束时间
2142
2143
  */
2143
2144
  zoomTo(startTime: Cesium.JulianDate, stopTime: Cesium.JulianDate): void;
2144
- /**
2145
- * 父容器DOM对象
2146
- */
2147
- readonly parentContainer: HTMLElement;
2148
2145
  }
2149
2146
 
2150
2147
  declare namespace ToolButton {
@@ -3027,6 +3024,7 @@ declare class BloomEffect extends BaseEffect {
3027
3024
  * @param [options.ratio = 2.0] - 亮度增强比例
3028
3025
  * @param [options.threshold = 0.0] - 亮度阈值
3029
3026
  * @param [options.smoothWidth = 0.01] - 亮度光滑的宽度
3027
+ * @param [options.objectsToExclude] - 排除不拾取的对象,支持TilesetLayer或Graphic对象
3030
3028
  * @param [options.enabled = true] - 对象的启用状态
3031
3029
  */
3032
3030
  declare class BloomTargetEffect extends BaseEffect {
@@ -3042,6 +3040,7 @@ declare class BloomTargetEffect extends BaseEffect {
3042
3040
  ratio?: number;
3043
3041
  threshold?: number;
3044
3042
  smoothWidth?: number;
3043
+ objectsToExclude?: any[];
3045
3044
  enabled?: boolean;
3046
3045
  });
3047
3046
  /**
@@ -5145,7 +5144,8 @@ declare class ArcFrustum extends BasePointPrimitive {
5145
5144
  * @param options - 参数对象,包括以下:
5146
5145
  * @param options.positions - 轨迹的 坐标数组
5147
5146
  * @param [options.offsetHeight = 0] - 轨迹偏移增加的高度
5148
- * @param [options.interpolation] - 是否LagrangePolynomialApproximation插值,对轨迹进行圆弧状插值
5147
+ * @param [options.interpolation] - 是否使用插值算法
5148
+ * @param [options.interpolationAlgorithm = Cesium.HermitePolynomialApproximation] - 当interpolation为true时,使用的插值算法,如:Cesium.HermitePolynomialApproximation、Cesium.LagrangePolynomialApproximation、Cesium.LinearApproximation
5149
5149
  * @param [options.interpolationDegree = 2] - 当interpolation为true时,使用的插值程度。
5150
5150
  * @param [options.showStop = true] - 是否在start前或stop后显示矢量对象
5151
5151
  * @param options.speed - 轨迹的 速度( 单位:千米/小时)
@@ -5200,7 +5200,8 @@ declare class FixedRoute extends Route {
5200
5200
  positions: any[][] | LngLatPoint[];
5201
5201
  offsetHeight?: number;
5202
5202
  interpolation?: boolean;
5203
- interpolationDegree?: boolean;
5203
+ interpolationAlgorithm?: number;
5204
+ interpolationDegree?: Cesium.InterpolationAlgorithm | number;
5204
5205
  showStop?: boolean;
5205
5206
  speed: any[][] | number;
5206
5207
  timeField?: string;
@@ -6108,6 +6109,10 @@ declare class DivBoderLabel extends DivGraphic {
6108
6109
  show?: boolean;
6109
6110
  eventParent?: BaseClass | boolean;
6110
6111
  });
6112
+ /**
6113
+ * 设置或获取当前对象对应的Html
6114
+ */
6115
+ html: string | HTMLDivElement;
6111
6116
  }
6112
6117
 
6113
6118
  declare namespace DivGraphic {
@@ -6466,6 +6471,10 @@ declare class DivLightPoint extends DivGraphic {
6466
6471
  show?: boolean;
6467
6472
  eventParent?: BaseClass | boolean;
6468
6473
  });
6474
+ /**
6475
+ * 设置或获取当前对象对应的Html
6476
+ */
6477
+ html: string | HTMLDivElement;
6469
6478
  }
6470
6479
 
6471
6480
  declare namespace DivUpLabel {
@@ -6569,6 +6578,10 @@ declare class DivUpLabel extends DivGraphic {
6569
6578
  show?: boolean;
6570
6579
  eventParent?: BaseClass | boolean;
6571
6580
  });
6581
+ /**
6582
+ * 设置或获取当前对象对应的Html
6583
+ */
6584
+ html: string | HTMLDivElement;
6572
6585
  }
6573
6586
 
6574
6587
  /**
@@ -6630,6 +6643,7 @@ declare namespace Popup {
6630
6643
  * @property [zIndex = "10000000"] - 指定固定的zIndex层级属性(当hasZIndex为true时无效)
6631
6644
  * @property [depthTest = true] - 是否打开深度判断(true时判断是否在球背面)
6632
6645
  * @property [hasCache = true] - 是否启用缓存机制,如为true,在视角未变化时不重新渲染。
6646
+ * @property [checkData] - 在多个Popup时,校验是否相同Popup进行判断关闭
6633
6647
  */
6634
6648
  type StyleOptions = any | {
6635
6649
  html?: string;
@@ -6663,6 +6677,7 @@ declare namespace Popup {
6663
6677
  zIndex?: number | string;
6664
6678
  depthTest?: boolean;
6665
6679
  hasCache?: boolean;
6680
+ checkData?: (...params: any[]) => any;
6666
6681
  };
6667
6682
  }
6668
6683
 
@@ -9462,6 +9477,14 @@ declare class ModelEntity extends BasePointEntity {
9462
9477
  * 模型整体的缩放比例
9463
9478
  */
9464
9479
  scale: number;
9480
+ /**
9481
+ * 获取模型完成解析加载完成的Promise承诺, 等价于load事件(区别在于load事件必须在load完成前绑定才能监听)。
9482
+ * @example
9483
+ * model.readyPromise.then(function(layer) {
9484
+ * console.log("load完成", layer)
9485
+ * })
9486
+ */
9487
+ readonly readyPromise: Promise<ModelEntity | any>;
9465
9488
  /**
9466
9489
  * 获取模型的当前时间的实际hpr角度(如动态模型)
9467
9490
  * @returns Heading Pitch Roll方向
@@ -9997,6 +10020,7 @@ declare namespace PolygonEntity {
9997
10020
  * @property [outlineColor = "#ffffff"] - 边框颜色
9998
10021
  * @property [outlineOpacity = 0.6] - 边框透明度
9999
10022
  * @property [outlineStyle] - 边框的完整自定义样式,会覆盖outlineWidth、outlineColor等参数。
10023
+ * // * @property {Boolean} [outlineStyle.closure = true] 边线是否闭合
10000
10024
  * @property [distanceDisplayCondition = false] - 是否按视距显示 或 指定此框将显示在与摄像机的多大距离。
10001
10025
  * @property [distanceDisplayCondition_far = 100000] - 最大距离
10002
10026
  * @property [distanceDisplayCondition_near = 0] - 最小距离
@@ -11724,6 +11748,7 @@ declare class Regular extends PolygonEntity {
11724
11748
  * @param options.style.radius - 扇形区域的半径(单位:米)
11725
11749
  * @param options.style.startAngle - 扇形区域的开始角度(正东方向为0,顺时针到360度)
11726
11750
  * @param options.style.endAngle - 扇形区域的结束角度(正东方向为0,顺时针到360度)
11751
+ * @param [options.style.noCenter] - 不连中心点
11727
11752
  * @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
11728
11753
  * @param [options.availability] - 与该对象关联的可用性(如果有的话)。
11729
11754
  * @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
@@ -11749,6 +11774,7 @@ declare class Sector extends PolygonEntity {
11749
11774
  radius: number;
11750
11775
  startAngle: number;
11751
11776
  endAngle: number;
11777
+ noCenter?: boolean;
11752
11778
  };
11753
11779
  attr?: any;
11754
11780
  availability?: Cesium.TimeIntervalCollection;
@@ -11779,12 +11805,14 @@ declare class Sector extends PolygonEntity {
11779
11805
  * @param options.radius - 扇形区域的半径(单位:米)
11780
11806
  * @param options.startAngle - 扇形区域的开始角度(正东方向为0,顺时针到360度)
11781
11807
  * @param options.endAngle - 扇形区域的结束角度(正东方向为0,顺时针到360度)
11808
+ * @param [options.noCenter] - 不连中心点
11782
11809
  * @returns 边界坐标点
11783
11810
  */
11784
11811
  static getOutlinePositions(center: Cesium.Cartesian3, options: {
11785
11812
  radius: number;
11786
11813
  startAngle: number;
11787
11814
  endAngle: number;
11815
+ noCenter?: boolean;
11788
11816
  }): Cesium.Cartesian3[];
11789
11817
  /**
11790
11818
  * 位置坐标数组 (笛卡尔坐标), 赋值时可以传入LatLngPoint数组对象 或 Cesium.PolygonHierarchy
@@ -16387,6 +16415,11 @@ declare class BaseLayer extends BaseClass {
16387
16415
  * @param [options = {}] - 参数对象:
16388
16416
  * @param [options.radius] - 点状数据时,相机距离目标点的距离(单位:米)
16389
16417
  * @param [options.scale = 1.2] - 线面数据时,缩放比例,可以控制视角比矩形略大一些,这样效果更友好。
16418
+ * @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
16419
+ * @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
16420
+ * @param [options.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0至360
16421
+ * @param [options.pitch] - 俯仰角度值,绕纬度线旋转角度, -90至90
16422
+ * @param [options.roll] - 翻滚角度值,绕经度线旋转角度, -90至90
16390
16423
  * @param [options.duration] - 飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。
16391
16424
  * @param [options.complete] - 飞行完成后要执行的函数。
16392
16425
  * @param [options.cancel] - 飞行取消时要执行的函数。
@@ -16402,6 +16435,11 @@ declare class BaseLayer extends BaseClass {
16402
16435
  flyTo(options?: {
16403
16436
  radius?: number;
16404
16437
  scale?: number;
16438
+ minHeight?: number;
16439
+ maxHeight?: number;
16440
+ heading?: number;
16441
+ pitch?: number;
16442
+ roll?: number;
16405
16443
  duration?: number;
16406
16444
  complete?: Cesium.Camera.FlightCompleteCallback;
16407
16445
  cancel?: Cesium.Camera.FlightCancelledCallback;
@@ -16657,6 +16695,11 @@ declare class CzmGeoJsonLayer extends BaseGraphicLayer {
16657
16695
  * @param [options = {}] - 参数对象:
16658
16696
  * @param [options.radius] - 点状数据时,相机距离目标点的距离(单位:米)
16659
16697
  * @param [options.scale = 1.2] - 线面数据时,缩放比例,可以控制视角比矩形略大一些,这样效果更友好。
16698
+ * @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
16699
+ * @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
16700
+ * @param [options.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0至360
16701
+ * @param [options.pitch] - 俯仰角度值,绕纬度线旋转角度, -90至90
16702
+ * @param [options.roll] - 翻滚角度值,绕经度线旋转角度, -90至90
16660
16703
  * @param [options.duration] - 飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。
16661
16704
  * @param [options.complete] - 飞行完成后要执行的函数。
16662
16705
  * @param [options.cancel] - 飞行取消时要执行的函数。
@@ -16672,6 +16715,11 @@ declare class CzmGeoJsonLayer extends BaseGraphicLayer {
16672
16715
  flyTo(options?: {
16673
16716
  radius?: number;
16674
16717
  scale?: number;
16718
+ minHeight?: number;
16719
+ maxHeight?: number;
16720
+ heading?: number;
16721
+ pitch?: number;
16722
+ roll?: number;
16675
16723
  duration?: number;
16676
16724
  complete?: Cesium.Camera.FlightCompleteCallback;
16677
16725
  cancel?: Cesium.Camera.FlightCancelledCallback;
@@ -16943,6 +16991,7 @@ declare class KmlLayer extends CzmGeoJsonLayer {
16943
16991
  * @param [options.clustering.enabled = false] - 是否开启聚合
16944
16992
  * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合
16945
16993
  * @param [options.clustering.clampToGround = true] - 是否贴地
16994
+ * @param [options.clustering.style] - 聚合点的样式参数
16946
16995
  * @param [options.clustering.radius = 28] - 圆形图标的整体半径大小(单位:像素)
16947
16996
  * @param [options.clustering.radiusIn = radius-5] - 圆形图标的内圆半径大小(单位:像素)
16948
16997
  * @param [options.clustering.fontColor = '#ffffff'] - 数字的颜色
@@ -17015,6 +17064,7 @@ declare class ArcGisWfsLayer extends LodGraphicLayer {
17015
17064
  enabled?: boolean;
17016
17065
  pixelRange?: number;
17017
17066
  clampToGround?: boolean;
17067
+ style?: BillboardEntity.StyleOptions | any;
17018
17068
  radius?: number;
17019
17069
  radiusIn?: number;
17020
17070
  fontColor?: string;
@@ -17214,6 +17264,7 @@ declare class ArcGisWfsSingleLayer extends GeoJsonLayer {
17214
17264
  * @param [options.clustering.enabled = false] - 是否开启聚合
17215
17265
  * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合
17216
17266
  * @param [options.clustering.clampToGround = true] - 是否贴地
17267
+ * @param [options.clustering.style] - 聚合点的样式参数
17217
17268
  * @param [options.clustering.radius = 26] - 内置样式时,圆形图标的半径大小(单位:像素)
17218
17269
  * @param [options.clustering.fontColor = '#ffffff'] - 内置样式时,数字的颜色
17219
17270
  * @param [options.clustering.color = 'rgba(181, 226, 140, 0.6)'] - 内置样式时,圆形图标的背景颜色
@@ -17284,6 +17335,7 @@ declare class BusineDataLayer extends GraphicLayer {
17284
17335
  enabled?: boolean;
17285
17336
  pixelRange?: number;
17286
17337
  clampToGround?: boolean;
17338
+ style?: BillboardEntity.StyleOptions | any;
17287
17339
  radius?: number;
17288
17340
  fontColor?: string;
17289
17341
  color?: string;
@@ -17370,6 +17422,7 @@ declare class BusineDataLayer extends GraphicLayer {
17370
17422
  * @param [options.clustering.enabled = false] - 是否开启聚合
17371
17423
  * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合
17372
17424
  * @param [options.clustering.clampToGround = true] - 是否贴地
17425
+ * @param [options.clustering.style] - 聚合点的样式参数
17373
17426
  * @param [options.clustering.radius = 28] - 圆形图标的整体半径大小(单位:像素)
17374
17427
  * @param [options.clustering.radiusIn = radius-5] - 圆形图标的内圆半径大小(单位:像素)
17375
17428
  * @param [options.clustering.fontColor = '#ffffff'] - 数字的颜色
@@ -17419,6 +17472,7 @@ declare class GeodePoiLayer extends LodGraphicLayer {
17419
17472
  enabled?: boolean;
17420
17473
  pixelRange?: number;
17421
17474
  clampToGround?: boolean;
17475
+ style?: BillboardEntity.StyleOptions | any;
17422
17476
  radius?: number;
17423
17477
  radiusIn?: number;
17424
17478
  fontColor?: string;
@@ -17555,6 +17609,7 @@ declare namespace GeoJsonLayer {
17555
17609
  * @param [options.clustering.enabled = false] - 是否开启聚合
17556
17610
  * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合
17557
17611
  * @param [options.clustering.clampToGround = true] - 是否贴地
17612
+ * @param [options.clustering.style] - 聚合点的样式参数
17558
17613
  * @param [options.clustering.radius = 26] - 内置样式时,圆形图标的半径大小(单位:像素)
17559
17614
  * @param [options.clustering.fontColor = '#ffffff'] - 内置样式时,数字的颜色
17560
17615
  * @param [options.clustering.color = 'rgba(181, 226, 140, 0.6)'] - 内置样式时,圆形图标的背景颜色
@@ -17628,6 +17683,7 @@ declare class GeoJsonLayer extends GraphicLayer {
17628
17683
  enabled?: boolean;
17629
17684
  pixelRange?: number;
17630
17685
  clampToGround?: boolean;
17686
+ style?: BillboardEntity.StyleOptions | any;
17631
17687
  radius?: number;
17632
17688
  fontColor?: string;
17633
17689
  color?: string;
@@ -17970,6 +18026,7 @@ declare namespace GraphicLayer {
17970
18026
  * @param [options.clustering.enabled = false] - 是否开启聚合
17971
18027
  * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合
17972
18028
  * @param [options.clustering.clampToGround = true] - 是否贴地
18029
+ * @param [options.clustering.style] - 聚合点的样式参数
17973
18030
  * @param [options.clustering.radius = 26] - 内置样式时,圆形图标的半径大小(单位:像素)
17974
18031
  * @param [options.clustering.fontColor = '#ffffff'] - 内置样式时,数字的颜色
17975
18032
  * @param [options.clustering.color = 'rgba(181, 226, 140, 0.6)'] - 内置样式时,圆形图标的背景颜色
@@ -18029,6 +18086,7 @@ declare class GraphicLayer extends BaseGraphicLayer {
18029
18086
  enabled?: boolean;
18030
18087
  pixelRange?: number;
18031
18088
  clampToGround?: boolean;
18089
+ style?: BillboardEntity.StyleOptions | any;
18032
18090
  radius?: number;
18033
18091
  fontColor?: string;
18034
18092
  color?: string;
@@ -18775,9 +18833,10 @@ declare namespace TilesetLayer {
18775
18833
  * 这个值如果设置的过小,导致cesium几乎每帧都在尝试淘汰数据,增加了遍历的时间,也同时增加了崩溃的风险。<br />
18776
18834
  * 这个值如果设置的过大,cesium的淘汰机制失效,那么容易导致显存超过显卡内存,也会导致崩溃。 这个值应该处于最差视角下资源占用 和 显存最大量之间。<br />
18777
18835
  * @param [options.position] - 自定义新的中心点位置(移动模型)
18778
- * @param options.position.lng - 经度值, 180 - 180
18779
- * @param options.position.lat - 纬度值, -90 - 90
18780
- * @param options.position.alt - 高度值(单位:米)
18836
+ * @param [options.position.lng] - 经度值, 180 - 180
18837
+ * @param [options.position.lat] - 纬度值, -90 - 90
18838
+ * @param [options.position.alt] - 高度值(单位:米)
18839
+ * @param [options.position.alt_offset] - 相对于模型本身高度的偏移值(单位:米) ,如果有alt时已alt优先。
18781
18840
  * @param [options.rotation] - 自定义旋转方向(旋转模型)
18782
18841
  * @param options.rotation.x - X方向,角度值0-360
18783
18842
  * @param options.rotation.y - Y方向,角度值0-360
@@ -18864,9 +18923,10 @@ declare class TilesetLayer extends BaseGraphicLayer {
18864
18923
  maximumScreenSpaceError?: number;
18865
18924
  maximumMemoryUsage?: number;
18866
18925
  position?: {
18867
- lng: number;
18868
- lat: number;
18869
- alt: number;
18926
+ lng?: number;
18927
+ lat?: number;
18928
+ alt?: number;
18929
+ alt_offset?: number;
18870
18930
  };
18871
18931
  rotation?: {
18872
18932
  x: number;
@@ -19167,15 +19227,16 @@ declare class TilesetLayer extends BaseGraphicLayer {
19167
19227
  * @returns 无
19168
19228
  */
19169
19229
  stopEditing(): void;
19170
- /**
19171
- * 透明度,取值范围:0.0-1.0
19172
- */
19173
- opacity: number;
19174
19230
  /**
19175
19231
  * 飞行定位至图层数据所在的视角
19176
19232
  * @param [options = {}] - 参数对象:
19177
19233
  * @param [options.radius] - 点状数据时,相机距离目标点的距离(单位:米)
19178
19234
  * @param [options.scale = 1.2] - 线面数据时,缩放比例,可以控制视角比矩形略大一些,这样效果更友好。
19235
+ * @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
19236
+ * @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
19237
+ * @param [options.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0至360
19238
+ * @param [options.pitch] - 俯仰角度值,绕纬度线旋转角度, -90至90
19239
+ * @param [options.roll] - 翻滚角度值,绕经度线旋转角度, -90至90
19179
19240
  * @param [options.duration] - 飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。
19180
19241
  * @param [options.complete] - 飞行完成后要执行的函数。
19181
19242
  * @param [options.cancel] - 飞行取消时要执行的函数。
@@ -19191,6 +19252,11 @@ declare class TilesetLayer extends BaseGraphicLayer {
19191
19252
  flyTo(options?: {
19192
19253
  radius?: number;
19193
19254
  scale?: number;
19255
+ minHeight?: number;
19256
+ maxHeight?: number;
19257
+ heading?: number;
19258
+ pitch?: number;
19259
+ roll?: number;
19194
19260
  duration?: number;
19195
19261
  complete?: Cesium.Camera.FlightCompleteCallback;
19196
19262
  cancel?: Cesium.Camera.FlightCancelledCallback;
@@ -19214,7 +19280,7 @@ declare class TilesetLayer extends BaseGraphicLayer {
19214
19280
  * @param [options.parameters.sortBy] - 排序的属性名称,默认升序,降序时+D
19215
19281
  * @param [options.parameters.service = 'WFS'] - 服务类型
19216
19282
  * @param [options.parameters.version = '1.0.0'] - 服务版本
19217
- * @param [options.geometryName = 'the_geom'] - geometry字段名称
19283
+ * @param [options.geometryName = 'the_geom'] - geometry字段名称, 比如:geom 或 the_geom
19218
19284
  * @param [options.headers] - 将被添加到HTTP请求头。
19219
19285
  * @param [options.proxy] - 加载资源时使用的代理。
19220
19286
  * @param options.layer - 图层名称(命名空间:图层名称),多个图层名称用逗号隔开
@@ -19248,6 +19314,7 @@ declare class TilesetLayer extends BaseGraphicLayer {
19248
19314
  * @param [options.clustering.enabled = false] - 是否开启聚合
19249
19315
  * @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合
19250
19316
  * @param [options.clustering.clampToGround = true] - 是否贴地
19317
+ * @param [options.clustering.style] - 聚合点的样式参数
19251
19318
  * @param [options.clustering.radius = 26] - 内置样式时,圆形图标的半径大小(单位:像素)
19252
19319
  * @param [options.clustering.fontColor = '#ffffff'] - 内置样式时,数字的颜色
19253
19320
  * @param [options.clustering.color = 'rgba(181, 226, 140, 0.6)'] - 内置样式时,圆形图标的背景颜色
@@ -19334,6 +19401,7 @@ declare class WfsLayer extends LodGraphicLayer {
19334
19401
  enabled?: boolean;
19335
19402
  pixelRange?: number;
19336
19403
  clampToGround?: boolean;
19404
+ style?: BillboardEntity.StyleOptions | any;
19337
19405
  radius?: number;
19338
19406
  fontColor?: string;
19339
19407
  color?: string;
@@ -20438,6 +20506,11 @@ declare class BaseTileLayer extends BaseLayer {
20438
20506
  * @param [options = {}] - 参数对象:
20439
20507
  * @param [options.radius] - 点状数据时,相机距离目标点的距离(单位:米)
20440
20508
  * @param [options.scale = 1.2] - 线面数据时,缩放比例,可以控制视角比矩形略大一些,这样效果更友好。
20509
+ * @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
20510
+ * @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
20511
+ * @param [options.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0至360
20512
+ * @param [options.pitch] - 俯仰角度值,绕纬度线旋转角度, -90至90
20513
+ * @param [options.roll] - 翻滚角度值,绕经度线旋转角度, -90至90
20441
20514
  * @param [options.duration] - 飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。
20442
20515
  * @param [options.complete] - 飞行完成后要执行的函数。
20443
20516
  * @param [options.cancel] - 飞行取消时要执行的函数。
@@ -20453,6 +20526,11 @@ declare class BaseTileLayer extends BaseLayer {
20453
20526
  flyTo(options?: {
20454
20527
  radius?: number;
20455
20528
  scale?: number;
20529
+ minHeight?: number;
20530
+ maxHeight?: number;
20531
+ heading?: number;
20532
+ pitch?: number;
20533
+ roll?: number;
20456
20534
  duration?: number;
20457
20535
  complete?: Cesium.Camera.FlightCompleteCallback;
20458
20536
  cancel?: Cesium.Camera.FlightCancelledCallback;
@@ -23266,7 +23344,7 @@ declare namespace Map {
23266
23344
  * @property [多个参数] - 每种不同type都有自己的不同属性,具体参考{@link LayerType}找到type对应的BaseTileLayer子类图层类,查看其构造参数
23267
23345
  */
23268
23346
  type basemapOptions = {
23269
- type: string;
23347
+ type: string | LayerType;
23270
23348
  多个参数?: any;
23271
23349
  };
23272
23350
  /**
@@ -23284,7 +23362,7 @@ declare namespace Map {
23284
23362
  * @property [多个参数] - 每种type都有自己的不同属性,具体参考{@link LayerType}找到type对应的图层类,查看其构造参数
23285
23363
  */
23286
23364
  type layerOptions = {
23287
- type: string;
23365
+ type: string | LayerType;
23288
23366
  id?: string | number;
23289
23367
  pid?: string | number;
23290
23368
  name?: string;
@@ -23522,6 +23600,10 @@ declare class Map extends BaseClass {
23522
23600
  * 是否只拾取模型上的点
23523
23601
  */
23524
23602
  onlyPickModelPosition: boolean;
23603
+ /**
23604
+ * 是否只拾取地形上的点,忽略模型和矢量数据
23605
+ */
23606
+ onlyPickTerrainPosition: boolean;
23525
23607
  /**
23526
23608
  * 获取鼠标事件控制器
23527
23609
  */
@@ -23602,7 +23684,7 @@ declare class Map extends BaseClass {
23602
23684
  * 提取地球当前视域边界,示例:{ xmin: 70, xmax: 140, ymin: 0, ymax: 55, height: 0, }
23603
23685
  * @param [options = {}] - 参数对象:
23604
23686
  * @param [options.formatNum = false] - 是否格式化小数位,只保留6位小数
23605
- * @param [options.scale = 1] - 通过在每个方向上按给定比例扩展当前边界,0.x时返回缩小的比例边界,大于1时返回放大的边界
23687
+ * @param [options.scale = 1] - 在每个方向上按给定比例扩展(大于0)或缩小(-1到0时)当前边界所创建的边界。比率为0.5时,边界在每个方向上扩展了50%。
23606
23688
  * @returns 当前视域边界
23607
23689
  */
23608
23690
  getExtent(options?: {
@@ -23949,9 +24031,9 @@ declare class Map extends BaseClass {
23949
24031
  * 为了兼容老版本用户习惯和center参数名称一致而用的别名方法。
23950
24032
  * @param cameraView - 飞行参数,同 setCameraView 方法
23951
24033
  * @param [options = {}] - 参数对象,同 setCameraView 方法
23952
- * @returns
24034
+ * @returns 如果飞行成功则解析为true的承诺,如果当前未在场景中可视化目标或取消飞行,则为false的Promise
23953
24035
  */
23954
- centerAt(cameraView: any, options?: any): void;
24036
+ centerAt(cameraView: any, options?: any): Promise<boolean>;
23955
24037
  /**
23956
24038
  * 飞行到默认视角,
23957
24039
  * 一般为config.json中的center参数配置的视角。
@@ -24860,6 +24942,7 @@ declare class LineFlowColorMaterialProperty extends BaseMaterialProperty {
24860
24942
  * @param [options.color = new Cesium.Color(1, 0, 0, 1.0)] - 背景图片颜色
24861
24943
  * @param [options.repeat = new Cesium.Cartesian2(1.0, 1.0)] - 横纵方向重复次数
24862
24944
  * @param [options.axisY = false] - 是否Y轴朝上
24945
+ * @param [options.mixt = false] - 默认为color颜色,true时color颜色与图片颜色混合
24863
24946
  * @param [options.speed = 10] - 速度
24864
24947
  * @param [options.duration] - 播放总时长,单位:秒 (会覆盖speed参数)
24865
24948
  * @param [options.hasImage2 = false] - 是否有2张图片的混合模式
@@ -24872,6 +24955,7 @@ declare class LineFlowMaterialProperty extends BaseMaterialProperty {
24872
24955
  color?: string | Cesium.Color;
24873
24956
  repeat?: Cesium.Cartesian2;
24874
24957
  axisY?: boolean;
24958
+ mixt?: boolean;
24875
24959
  speed?: number;
24876
24960
  duration?: number;
24877
24961
  hasImage2?: boolean;
@@ -24890,6 +24974,10 @@ declare class LineFlowMaterialProperty extends BaseMaterialProperty {
24890
24974
  * 是否Y轴朝上
24891
24975
  */
24892
24976
  axisY: boolean;
24977
+ /**
24978
+ * 默认为color颜色,true时color颜色与图片颜色混合
24979
+ */
24980
+ mixt: boolean;
24893
24981
  /**
24894
24982
  * 速度
24895
24983
  */
@@ -26471,10 +26559,10 @@ declare namespace CamberRadar {
26471
26559
  * @property [outlineColor = new Cesium.Color(1.0, 0.0, 0.0)] - 边线颜色
26472
26560
  * @property startRadius - 内曲面半径 (单位:米)
26473
26561
  * @property radius - 外曲面半径 (单位:米)
26474
- * @property [startFovH = Cesium.Math.toRadians(-50)] - 左横截面角度(弧度值)
26475
- * @property [endFovH = Cesium.Math.toRadians(50)] - 右横截面角度(弧度值)
26476
- * @property [startFovV = Cesium.Math.toRadians(5)] - 垂直起始角度(弧度值)
26477
- * @property [endFovV = Cesium.Math.toRadians(85)] - 垂直结束角度(弧度值)
26562
+ * @property [startFovH = -50] - 左横截面角度(角度值)
26563
+ * @property [endFovH = 50] - 右横截面角度(角度值)
26564
+ * @property [startFovV = 5] - 垂直起始角度(角度值)
26565
+ * @property [endFovV = 85] - 垂直结束角度(角度值)
26478
26566
  * @property [segmentH = 60] - 垂直方向(类似经度线)分割数
26479
26567
  * @property [segmentV = 20] - 水平方向(类似纬度线)分割数
26480
26568
  * @property [heading = 0] - 方向角 (度数值,0-360度)
@@ -26533,19 +26621,19 @@ declare class CamberRadar extends BasePointPrimitive {
26533
26621
  */
26534
26622
  radius: number;
26535
26623
  /**
26536
- * 左横截面角度(弧度值)
26624
+ * 左横截面角度(角度值)
26537
26625
  */
26538
26626
  startFovV: number;
26539
26627
  /**
26540
- * 右横截面角度(弧度值)
26628
+ * 右横截面角度(角度值)
26541
26629
  */
26542
26630
  endFovV: number;
26543
26631
  /**
26544
- * 垂直起始角度(弧度值)
26632
+ * 垂直起始角度(角度值)
26545
26633
  */
26546
26634
  startFovH: number;
26547
26635
  /**
26548
- * 垂直结束角度(弧度值)
26636
+ * 垂直结束角度(角度值)
26549
26637
  */
26550
26638
  endFovH: number;
26551
26639
  /**
@@ -27323,6 +27411,11 @@ declare class S3MLayer extends BaseLayer {
27323
27411
  * @param [options = {}] - 参数对象:
27324
27412
  * @param [options.radius] - 点状数据时,相机距离目标点的距离(单位:米)
27325
27413
  * @param [options.scale = 1.2] - 线面数据时,缩放比例,可以控制视角比矩形略大一些,这样效果更友好。
27414
+ * @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
27415
+ * @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
27416
+ * @param [options.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0至360
27417
+ * @param [options.pitch] - 俯仰角度值,绕纬度线旋转角度, -90至90
27418
+ * @param [options.roll] - 翻滚角度值,绕经度线旋转角度, -90至90
27326
27419
  * @param [options.duration] - 飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。
27327
27420
  * @param [options.complete] - 飞行完成后要执行的函数。
27328
27421
  * @param [options.cancel] - 飞行取消时要执行的函数。
@@ -27338,6 +27431,11 @@ declare class S3MLayer extends BaseLayer {
27338
27431
  flyTo(options?: {
27339
27432
  radius?: number;
27340
27433
  scale?: number;
27434
+ minHeight?: number;
27435
+ maxHeight?: number;
27436
+ heading?: number;
27437
+ pitch?: number;
27438
+ roll?: number;
27341
27439
  duration?: number;
27342
27440
  complete?: Cesium.Camera.FlightCompleteCallback;
27343
27441
  cancel?: Cesium.Camera.FlightCancelledCallback;
@@ -27556,6 +27654,11 @@ declare class SmMvtLayer extends BaseLayer {
27556
27654
  * @param [options = {}] - 参数对象:
27557
27655
  * @param [options.radius] - 点状数据时,相机距离目标点的距离(单位:米)
27558
27656
  * @param [options.scale = 1.2] - 线面数据时,缩放比例,可以控制视角比矩形略大一些,这样效果更友好。
27657
+ * @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
27658
+ * @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
27659
+ * @param [options.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0至360
27660
+ * @param [options.pitch] - 俯仰角度值,绕纬度线旋转角度, -90至90
27661
+ * @param [options.roll] - 翻滚角度值,绕经度线旋转角度, -90至90
27559
27662
  * @param [options.duration] - 飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。
27560
27663
  * @param [options.complete] - 飞行完成后要执行的函数。
27561
27664
  * @param [options.cancel] - 飞行取消时要执行的函数。
@@ -27571,6 +27674,11 @@ declare class SmMvtLayer extends BaseLayer {
27571
27674
  flyTo(options?: {
27572
27675
  radius?: number;
27573
27676
  scale?: number;
27677
+ minHeight?: number;
27678
+ maxHeight?: number;
27679
+ heading?: number;
27680
+ pitch?: number;
27681
+ roll?: number;
27574
27682
  duration?: number;
27575
27683
  complete?: Cesium.Camera.FlightCompleteCallback;
27576
27684
  cancel?: Cesium.Camera.FlightCancelledCallback;
@@ -29090,7 +29198,7 @@ declare class QueryGeoServer extends BaseClass {
29090
29198
  * @param [queryOptions.column] - 检索关键字时,对应的字段名称
29091
29199
  * @param [queryOptions.like = true] - 检索关键字时,是否模糊匹配,false时精确查询
29092
29200
  * @param [queryOptions.graphic] - 限定的搜索区域
29093
- * @param [queryOptions.geometryName = 'the_geom'] - 限定的搜索区域时,对应的geometry字段名称
29201
+ * @param [queryOptions.geometryName = 'the_geom'] - 限定的搜索区域时,对应的geometry字段名称, 比如:geom 或 the_geom
29094
29202
  * @param [queryOptions.maxFeatures = 1000] - 返回结果最大数量
29095
29203
  * @param [queryOptions.sortBy] - 排序的属性名称,默认升序,降序时+D
29096
29204
  * @param [queryOptions.更多参数] - WFS服务支持的其他参数,均支持
@@ -29175,6 +29283,23 @@ declare class TdtPOI {
29175
29283
  success?: (...params: any[]) => any;
29176
29284
  error?: (...params: any[]) => any;
29177
29285
  }): Promise<any>;
29286
+ /**
29287
+ * 天地图搜索提示
29288
+ * @param queryOptions - 查询参数
29289
+ * @param queryOptions.text - 输入建议关键字(支持拼音)
29290
+ * @param [queryOptions.location] - 建议使用location参数,可在此location附近优先返回搜索关键词信息,在请求参数city不为空时生效
29291
+ * @param [queryOptions.city] - 可以限定查询的行政区
29292
+ * @param [queryOptions.success] - 查询完成的回调方法
29293
+ * @param [queryOptions.error] - 查询失败的回调方法
29294
+ * @returns 查询完成的Promise,等价于success参数
29295
+ */
29296
+ autoTip(queryOptions: {
29297
+ text: string;
29298
+ location?: LngLatPoint | Cesium.Cartesian3 | string | any[] | any;
29299
+ city?: string;
29300
+ success?: (...params: any[]) => any;
29301
+ error?: (...params: any[]) => any;
29302
+ }): Promise<any>;
29178
29303
  /**
29179
29304
  * 按限定区域搜索
29180
29305
  * @param queryOptions - 查询参数
@@ -29204,7 +29329,8 @@ declare class TdtPOI {
29204
29329
  * @param queryOptions.text - 检索关键字。支持多个关键字并集检索,不同关键字间以空格符号分隔,最多支持10个关键字检索。
29205
29330
  * @param [queryOptions.types = ''] - 检索分类偏好,与text组合进行检索,多个分类以","分隔(POI分类),如果需要严格按分类检索,请通过text参数设置
29206
29331
  * @param [queryOptions.city] - 可以重新限定查询的区域,默认为类构造时传入的city
29207
- * @param [queryOptions.citylimit = false] - 取值为"true",仅返回city中指定城市检索结果
29332
+ * @param [queryOptions.level = 18] - 查询的级别,1-18级
29333
+ * @param [queryOptions.mapBound] - 查询的地图范围: "minx,miny,maxx,maxy"
29208
29334
  * @param [queryOptions.count = 20] - 单次召回POI数量,最大返回300条。多关键字检索时,返回的记录数为关键字个数*count。多关键词检索时,单页返回总数=关键词数量*count
29209
29335
  * @param [queryOptions.page = 0] - 分页页码,默认为0, 0代表第一页,1代表第二页,以此类推。常与 count 搭配使用,仅当返回结果为poi时可以翻页。
29210
29336
  * @param [queryOptions.success] - 查询完成的回调方法
@@ -29215,7 +29341,8 @@ declare class TdtPOI {
29215
29341
  text: string;
29216
29342
  types?: string;
29217
29343
  city?: string;
29218
- citylimit?: boolean;
29344
+ level?: string;
29345
+ mapBound?: string;
29219
29346
  count?: number;
29220
29347
  page?: number;
29221
29348
  success?: (...params: any[]) => any;
@@ -29269,6 +29396,27 @@ declare class TdtPOI {
29269
29396
  success?: (...params: any[]) => any;
29270
29397
  error?: (...params: any[]) => any;
29271
29398
  }): Promise<any>;
29399
+ /**
29400
+ * 视野内搜索
29401
+ * @param queryOptions - 查询参数
29402
+ * @param queryOptions.text - 检索关键字。支持多个关键字并集检索,不同关键字间以空格符号分隔,最多支持10个关键字检索。
29403
+ * @param [queryOptions.types = ''] - 检索分类偏好,与text组合进行检索,多个分类以","分隔(POI分类),如果需要严格按分类检索,请通过text参数设置
29404
+ * @param queryOptions.extent - 可传入左上右下两顶点坐标对;
29405
+ * @param [queryOptions.count = 20] - 单次召回POI数量,最大返回25条。多关键字检索时,返回的记录数为关键字个数*count。多关键词检索时,单页返回总数=关键词数量*count
29406
+ * @param [queryOptions.page = 0] - 分页页码,默认为0, 0代表第一页,1代表第二页,以此类推。常与 count 搭配使用,仅当返回结果为poi时可以翻页。
29407
+ * @param [queryOptions.success] - 查询完成的回调方法
29408
+ * @param [queryOptions.error] - 查询失败的回调方法
29409
+ * @returns 查询完成的Promise,等价于success参数
29410
+ */
29411
+ queryExtent(queryOptions: {
29412
+ text: string;
29413
+ types?: string;
29414
+ extent: any[][];
29415
+ count?: number;
29416
+ page?: number;
29417
+ success?: (...params: any[]) => any;
29418
+ error?: (...params: any[]) => any;
29419
+ }): Promise<any>;
29272
29420
  }
29273
29421
 
29274
29422
  declare namespace Measure {
@@ -31004,6 +31152,11 @@ declare class TilesetEditBase extends BaseThing {
31004
31152
  * @returns 添加区域的记录对象
31005
31153
  */
31006
31154
  addArea(positions: string[] | any[][] | LngLatPoint[] | Cesium.Cartesian3[]): any;
31155
+ /**
31156
+ * 转为Json简单对象,用于存储后再传参加载
31157
+ * @returns Json简单对象
31158
+ */
31159
+ toJSON(): any;
31007
31160
  }
31008
31161
 
31009
31162
  /**
@@ -31087,6 +31240,11 @@ declare class TilesetFlat extends TilesetEditBase {
31087
31240
  * @returns 无
31088
31241
  */
31089
31242
  removeArea(item: number | any): void;
31243
+ /**
31244
+ * 转为Json简单对象,用于存储后再传参加载
31245
+ * @returns Json简单对象
31246
+ */
31247
+ toJSON(): any;
31090
31248
  /**
31091
31249
  * 清除分析
31092
31250
  * @returns 无
@@ -31304,6 +31462,11 @@ declare class TilesetPlanClip extends BaseThing {
31304
31462
  * @returns 无
31305
31463
  */
31306
31464
  updateAllNormalZ(val: number): void;
31465
+ /**
31466
+ * 转为Json简单对象,用于存储后再传参加载
31467
+ * @returns Json简单对象
31468
+ */
31469
+ toJSON(): any;
31307
31470
  }
31308
31471
 
31309
31472
  /**