mars3d 3.3.10 → 3.3.13
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/README.md +31 -23
- package/dist/mars3d.css +3 -6
- package/dist/mars3d.d.ts +224 -108
- package/dist/mars3d.js +4 -4
- package/package.json +2 -2
package/dist/mars3d.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Mars3D三维可视化平台 mars3d
|
|
4
4
|
*
|
|
5
|
-
* 版本信息:v3.3.
|
|
6
|
-
* 编译日期:2022-
|
|
5
|
+
* 版本信息:v3.3.13
|
|
6
|
+
* 编译日期:2022-06-13 09:12:56
|
|
7
7
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
8
8
|
* 使用单位:免费公开版 ,2022-02-01
|
|
9
9
|
*/
|
|
@@ -187,6 +187,10 @@ declare enum EventType {
|
|
|
187
187
|
* 更新了对象
|
|
188
188
|
*/
|
|
189
189
|
update = "update",
|
|
190
|
+
/**
|
|
191
|
+
* 更新了坐标位置
|
|
192
|
+
*/
|
|
193
|
+
updatePosition = "updatePosition",
|
|
190
194
|
/**
|
|
191
195
|
* 更新了style对象
|
|
192
196
|
*/
|
|
@@ -1081,7 +1085,7 @@ declare enum LayerType {
|
|
|
1081
1085
|
* width: 5,
|
|
1082
1086
|
* material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.LineFlow, {
|
|
1083
1087
|
* color: '#00ff00',
|
|
1084
|
-
* image: 'img/textures/
|
|
1088
|
+
* image: 'img/textures/line-pulse.png',
|
|
1085
1089
|
* speed: 5,
|
|
1086
1090
|
* }),
|
|
1087
1091
|
* },
|
|
@@ -1098,7 +1102,7 @@ declare enum LayerType {
|
|
|
1098
1102
|
* width: 5,
|
|
1099
1103
|
* material: mars3d.MaterialUtil.createMaterial(mars3d.MaterialType.LineFlow, {
|
|
1100
1104
|
* color: '#1a9850',
|
|
1101
|
-
* image: 'img/textures/
|
|
1105
|
+
* image: 'img/textures/line-arrow.png',
|
|
1102
1106
|
* speed: 10,
|
|
1103
1107
|
* }),
|
|
1104
1108
|
* },
|
|
@@ -2516,7 +2520,7 @@ declare class LngLatPoint {
|
|
|
2516
2520
|
* 复制一份对象
|
|
2517
2521
|
* @returns 无
|
|
2518
2522
|
*/
|
|
2519
|
-
clone():
|
|
2523
|
+
clone(): LngLatPoint;
|
|
2520
2524
|
/**
|
|
2521
2525
|
* 格式化对象内的经纬度的小数位为6位,高度小数位为1位。
|
|
2522
2526
|
* @returns 当前对象本身,可以链式调用
|
|
@@ -2772,6 +2776,14 @@ declare class BaseEffect extends BaseThing {
|
|
|
2772
2776
|
* @returns 无
|
|
2773
2777
|
*/
|
|
2774
2778
|
remove(destroy?: boolean): void;
|
|
2779
|
+
/**
|
|
2780
|
+
* 触发指定类型的事件。
|
|
2781
|
+
* @param type - 事件类型
|
|
2782
|
+
* @param [data] - 传输的数据或对象,可在事件回调方法中event对象中获取进行使用
|
|
2783
|
+
* @param [propagate = null] - 将事件传播给父类 (用addEventParent设置)
|
|
2784
|
+
* @returns 当前对象本身,可以链式调用
|
|
2785
|
+
*/
|
|
2786
|
+
fire(type: EventType | string, data?: any, propagate?: BaseClass): BaseClass;
|
|
2775
2787
|
}
|
|
2776
2788
|
|
|
2777
2789
|
/**
|
|
@@ -3552,6 +3564,14 @@ declare class BaseGraphic extends BaseClass {
|
|
|
3552
3564
|
* @returns 无
|
|
3553
3565
|
*/
|
|
3554
3566
|
destroy(noDel?: boolean): void;
|
|
3567
|
+
/**
|
|
3568
|
+
* 触发指定类型的事件。
|
|
3569
|
+
* @param type - 事件类型
|
|
3570
|
+
* @param [data] - 传输的数据或对象,可在事件回调方法中event对象中获取进行使用
|
|
3571
|
+
* @param [propagate = null] - 将事件传播给父类 (用addEventParent设置)
|
|
3572
|
+
* @returns 当前对象本身,可以链式调用
|
|
3573
|
+
*/
|
|
3574
|
+
fire(type: EventType | string, data?: any, propagate?: BaseClass): BaseClass;
|
|
3555
3575
|
}
|
|
3556
3576
|
|
|
3557
3577
|
/**
|
|
@@ -3670,7 +3690,7 @@ declare class BasePolyCombine extends BaseCombine {
|
|
|
3670
3690
|
*/
|
|
3671
3691
|
openHighlight(highlightStyle?: any, closeLast?: boolean): void;
|
|
3672
3692
|
/**
|
|
3673
|
-
*
|
|
3693
|
+
* 清除已选中的高亮,原有style的配置项需要与highlightStyle配置有一一对应关系,否则无法清除
|
|
3674
3694
|
* @returns 无
|
|
3675
3695
|
*/
|
|
3676
3696
|
closeHighlight(): void;
|
|
@@ -4019,13 +4039,13 @@ declare class EllipsoidCombine extends BasePolyCombine {
|
|
|
4019
4039
|
declare namespace FlatBillboard {
|
|
4020
4040
|
/**
|
|
4021
4041
|
* 平放的图标 单个数据对象
|
|
4022
|
-
* @property image - 图标URL
|
|
4023
4042
|
* @property position - 位置坐标
|
|
4043
|
+
* @property image - 图标URL
|
|
4024
4044
|
* @property [angle = 0] - 图标的角度(角度值,0-360)
|
|
4025
4045
|
*/
|
|
4026
4046
|
type DataOptions = {
|
|
4047
|
+
position: Cesium.Cartesian3 | LngLatPoint;
|
|
4027
4048
|
image: string;
|
|
4028
|
-
position: Cesium.Cartesian3;
|
|
4029
4049
|
angle?: number;
|
|
4030
4050
|
};
|
|
4031
4051
|
}
|
|
@@ -4218,9 +4238,6 @@ declare namespace ModelCombine {
|
|
|
4218
4238
|
* @param [options.shadows = ShadowMode.ENABLED] - 指定模型是投射还是接收来自光源的阴影。
|
|
4219
4239
|
* @param [options.imageBasedLightingFactor = new Cartesian2(1.0, 1.0)] - 指定来自基于图像的漫反射和镜面照明的贡献。
|
|
4220
4240
|
* @param [options.lightColor] - 光的颜色当遮光模型。当undefined场景的浅色被使用代替。
|
|
4221
|
-
* @param [options.luminanceAtZenith = 0.2] - 太阳在天顶的亮度,单位是千坎德拉每平方米,用于这个模型的程序环境地图。
|
|
4222
|
-
* @param [options.sphericalHarmonicCoefficients] - 三阶球面调和系数用于基于图像的漫射色彩照明。
|
|
4223
|
-
* @param [options.specularEnvironmentMaps] - 一个KTX文件的URL,该文件包含高光照明的立方体映射和复杂的高光mipmaps。
|
|
4224
4241
|
* @param [options.backFaceCulling = true] - 是否剔除面向背面的几何图形。当为真时,背面剔除由glTF材质的双面属性决定;当为false时,禁用背面剔除。
|
|
4225
4242
|
* @param [options.debugShowBoundingVolume = false] - 仅供调试。查看模型的包围边界球。
|
|
4226
4243
|
* @param [options.debugWireframe = false] - 仅供调试。查看模型的三角网线框图。
|
|
@@ -4258,9 +4275,6 @@ declare class ModelCombine extends BaseCombine {
|
|
|
4258
4275
|
shadows?: Cesium.ShadowMode;
|
|
4259
4276
|
imageBasedLightingFactor?: Cesium.Cartesian2;
|
|
4260
4277
|
lightColor?: Cesium.Cartesian3;
|
|
4261
|
-
luminanceAtZenith?: number;
|
|
4262
|
-
sphericalHarmonicCoefficients?: Cesium.Cartesian3[];
|
|
4263
|
-
specularEnvironmentMaps?: string;
|
|
4264
4278
|
backFaceCulling?: boolean;
|
|
4265
4279
|
debugShowBoundingVolume?: boolean;
|
|
4266
4280
|
debugWireframe?: boolean;
|
|
@@ -4874,7 +4888,7 @@ declare namespace ParticleSystem {
|
|
|
4874
4888
|
}
|
|
4875
4889
|
|
|
4876
4890
|
/**
|
|
4877
|
-
* 粒子效果
|
|
4891
|
+
* 粒子效果 对象,该对象暂不支持鼠标交互和拾取
|
|
4878
4892
|
* @param options - 参数对象,包括以下:
|
|
4879
4893
|
* @param options.position - 坐标位置
|
|
4880
4894
|
* @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。
|
|
@@ -4961,7 +4975,7 @@ declare namespace Tetrahedron {
|
|
|
4961
4975
|
}
|
|
4962
4976
|
|
|
4963
4977
|
/**
|
|
4964
|
-
*
|
|
4978
|
+
* 四面体(顶部正方形+倒立的三角椎体),该对象暂不支持鼠标交互和拾取
|
|
4965
4979
|
* @param options - 参数对象,包括以下:
|
|
4966
4980
|
* @param options.position - 坐标位置
|
|
4967
4981
|
* @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。
|
|
@@ -5026,7 +5040,7 @@ declare namespace Video3D {
|
|
|
5026
5040
|
}
|
|
5027
5041
|
|
|
5028
5042
|
/**
|
|
5029
|
-
* 视频融合(投射3D
|
|
5043
|
+
* 视频融合(投射3D,贴物体表面),该对象暂不支持鼠标交互和拾取
|
|
5030
5044
|
* @param options - 参数对象,包括以下:
|
|
5031
5045
|
* @param options.position - 相机位置
|
|
5032
5046
|
* @param [options.targetPosition] - 目标视点位置,可以替代style中的相机heading\pitch\roll方向和distance距离参数
|
|
@@ -5100,7 +5114,7 @@ declare namespace ViewShed {
|
|
|
5100
5114
|
}
|
|
5101
5115
|
|
|
5102
5116
|
/**
|
|
5103
|
-
* 可视域
|
|
5117
|
+
* 可视域 矢量对象,该对象暂不支持鼠标交互和拾取
|
|
5104
5118
|
* @param options - 参数对象,包括以下:
|
|
5105
5119
|
* @param options.position - 相机位置
|
|
5106
5120
|
* @param [options.targetPosition] - 目标视点位置,可以替代style中的相机heading\pitch\roll方向和distance距离参数
|
|
@@ -5159,7 +5173,7 @@ declare class ViewShed extends BasePointPrimitive {
|
|
|
5159
5173
|
/**
|
|
5160
5174
|
* 目标点位置(笛卡尔坐标)
|
|
5161
5175
|
*/
|
|
5162
|
-
targetPosition: Cesium.Cartesian3;
|
|
5176
|
+
targetPosition: Cesium.Cartesian3 | LngLatPoint;
|
|
5163
5177
|
/**
|
|
5164
5178
|
* 定位至相机的第一视角
|
|
5165
5179
|
* @returns 无
|
|
@@ -5186,7 +5200,7 @@ declare class ViewShed extends BasePointPrimitive {
|
|
|
5186
5200
|
/**
|
|
5187
5201
|
* 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
|
|
5188
5202
|
*/
|
|
5189
|
-
position: Cesium.Cartesian3;
|
|
5203
|
+
position: Cesium.Cartesian3 | LngLatPoint;
|
|
5190
5204
|
}
|
|
5191
5205
|
|
|
5192
5206
|
declare namespace DivBoderLabel {
|
|
@@ -5459,7 +5473,7 @@ declare class DivGraphic extends BaseGraphic {
|
|
|
5459
5473
|
/**
|
|
5460
5474
|
* 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
|
|
5461
5475
|
*/
|
|
5462
|
-
position: Cesium.Cartesian3;
|
|
5476
|
+
position: Cesium.Cartesian3 | LngLatPoint;
|
|
5463
5477
|
/**
|
|
5464
5478
|
* 位置坐标 (笛卡尔坐标)
|
|
5465
5479
|
*/
|
|
@@ -5512,6 +5526,12 @@ declare class DivGraphic extends BaseGraphic {
|
|
|
5512
5526
|
* 设置或获取当前对象对应的Html
|
|
5513
5527
|
*/
|
|
5514
5528
|
html: string | HTMLDivElement;
|
|
5529
|
+
/**
|
|
5530
|
+
* 设置透明度
|
|
5531
|
+
* @param value - 透明度
|
|
5532
|
+
* @returns 无
|
|
5533
|
+
*/
|
|
5534
|
+
setOpacity(value: number): void;
|
|
5515
5535
|
/**
|
|
5516
5536
|
* 更新刷新下DIV的位置,可以外部主动驱动来更新。
|
|
5517
5537
|
* @returns 当前对象本身,可以链式调用
|
|
@@ -5543,7 +5563,7 @@ declare class DivGraphic extends BaseGraphic {
|
|
|
5543
5563
|
*/
|
|
5544
5564
|
openHighlight(highlightStyle?: any, closeLast?: boolean): void;
|
|
5545
5565
|
/**
|
|
5546
|
-
*
|
|
5566
|
+
* 清除已选中的高亮,原有style的配置项需要与highlightStyle配置有一一对应关系,否则无法清除
|
|
5547
5567
|
* @returns 无
|
|
5548
5568
|
*/
|
|
5549
5569
|
closeHighlight(): void;
|
|
@@ -5560,6 +5580,15 @@ declare class DivGraphic extends BaseGraphic {
|
|
|
5560
5580
|
objectsToExclude?: any;
|
|
5561
5581
|
callback: Globe.getSurfaceHeight_callback;
|
|
5562
5582
|
}): BasePointEntity;
|
|
5583
|
+
/**
|
|
5584
|
+
* 获取数据的矩形边界
|
|
5585
|
+
* @param [options] - 控制参数
|
|
5586
|
+
* @param [options.isFormat = false] - 是否格式化,格式化时示例: { xmin: 73.16895, xmax: 134.86816, ymin: 12.2023, ymax: 54.11485 }
|
|
5587
|
+
* @returns isFormat:true时,返回格式化对象,isFormat:false时返回Cesium.Rectangle对象
|
|
5588
|
+
*/
|
|
5589
|
+
getRectangle(options?: {
|
|
5590
|
+
isFormat?: boolean;
|
|
5591
|
+
}): Cesium.Rectangle | any;
|
|
5563
5592
|
/**
|
|
5564
5593
|
* 开始绘制创建矢量数据,绘制的数据会加载在layer图层。
|
|
5565
5594
|
* @param layer - 图层
|
|
@@ -5936,6 +5965,10 @@ declare class Popup extends DivGraphic {
|
|
|
5936
5965
|
* @returns DIV点对象
|
|
5937
5966
|
*/
|
|
5938
5967
|
static fromDraw(layer: GraphicLayer, options: any): DivGraphic;
|
|
5968
|
+
/**
|
|
5969
|
+
* 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
|
|
5970
|
+
*/
|
|
5971
|
+
position: Cesium.Cartesian3 | LngLatPoint;
|
|
5939
5972
|
}
|
|
5940
5973
|
|
|
5941
5974
|
declare namespace Tooltip {
|
|
@@ -6168,7 +6201,7 @@ declare class BaseEntity extends BaseGraphic {
|
|
|
6168
6201
|
*/
|
|
6169
6202
|
openHighlight(highlightStyle?: any, closeLast?: boolean): void;
|
|
6170
6203
|
/**
|
|
6171
|
-
*
|
|
6204
|
+
* 清除已选中的高亮,原有style的配置项需要与highlightStyle配置有一一对应关系,否则无法清除
|
|
6172
6205
|
* @returns 无
|
|
6173
6206
|
*/
|
|
6174
6207
|
closeHighlight(): void;
|
|
@@ -6310,7 +6343,7 @@ declare class BasePointEntity extends BaseEntity {
|
|
|
6310
6343
|
/**
|
|
6311
6344
|
* 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
|
|
6312
6345
|
*/
|
|
6313
|
-
position: Cesium.Cartesian3;
|
|
6346
|
+
position: Cesium.Cartesian3 | LngLatPoint;
|
|
6314
6347
|
/**
|
|
6315
6348
|
* 位置坐标
|
|
6316
6349
|
*/
|
|
@@ -6402,8 +6435,9 @@ declare class BasePointEntity extends BaseEntity {
|
|
|
6402
6435
|
/**
|
|
6403
6436
|
* 按Cesium.CallbackProperty的方式 更新坐标(更加平滑)
|
|
6404
6437
|
* @param position - 坐标
|
|
6438
|
+
* @returns 当前坐标
|
|
6405
6439
|
*/
|
|
6406
|
-
setCallbackPosition(position: string | any[] | any | Cesium.Cartesian3 | any):
|
|
6440
|
+
setCallbackPosition(position: string | any[] | any | Cesium.Cartesian3 | any): Cesium.Cartesian3;
|
|
6407
6441
|
/**
|
|
6408
6442
|
* 显示隐藏状态
|
|
6409
6443
|
*/
|
|
@@ -6544,8 +6578,9 @@ declare class BasePolyEntity extends BaseEntity {
|
|
|
6544
6578
|
/**
|
|
6545
6579
|
* 按Cesium.CallbackProperty的方式 更新坐标集合(更加平滑)
|
|
6546
6580
|
* @param positions - 坐标数组
|
|
6581
|
+
* @returns 当前坐标集合
|
|
6547
6582
|
*/
|
|
6548
|
-
setCallbackPositions(positions: string[] | any[][] | LngLatPoint[]):
|
|
6583
|
+
setCallbackPositions(positions: string[] | any[][] | LngLatPoint[]): Cesium.Cartesian3[];
|
|
6549
6584
|
}
|
|
6550
6585
|
|
|
6551
6586
|
declare namespace BillboardEntity {
|
|
@@ -7206,7 +7241,7 @@ declare class CircleEntity extends BasePointEntity {
|
|
|
7206
7241
|
/**
|
|
7207
7242
|
* 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
|
|
7208
7243
|
*/
|
|
7209
|
-
position: Cesium.Cartesian3;
|
|
7244
|
+
position: Cesium.Cartesian3 | LngLatPoint;
|
|
7210
7245
|
/**
|
|
7211
7246
|
* 飞行定位至 数据所在的视角
|
|
7212
7247
|
* @param [options = {}] - 参数对象:
|
|
@@ -7733,7 +7768,7 @@ declare class CylinderEntity extends BasePointEntity {
|
|
|
7733
7768
|
/**
|
|
7734
7769
|
* 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
|
|
7735
7770
|
*/
|
|
7736
|
-
position: Cesium.Cartesian3;
|
|
7771
|
+
position: Cesium.Cartesian3 | LngLatPoint;
|
|
7737
7772
|
}
|
|
7738
7773
|
|
|
7739
7774
|
declare namespace DivBillboardEntity {
|
|
@@ -8219,7 +8254,7 @@ declare namespace EllipsoidEntity {
|
|
|
8219
8254
|
* @param options.style - 样式信息
|
|
8220
8255
|
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
8221
8256
|
* @param [options.orientation] - 实体方向
|
|
8222
|
-
* @param options.scanPlane - 动态扫描面
|
|
8257
|
+
* @param [options.scanPlane] - 动态扫描面
|
|
8223
8258
|
* @param [options.availability] - 与该对象关联的可用性(如果有的话)。
|
|
8224
8259
|
* @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
|
|
8225
8260
|
* @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
|
|
@@ -8243,7 +8278,7 @@ declare class EllipsoidEntity extends BasePointEntity {
|
|
|
8243
8278
|
style: EllipsoidEntity.StyleOptions | any;
|
|
8244
8279
|
attr?: any;
|
|
8245
8280
|
orientation?: Cesium.Property;
|
|
8246
|
-
scanPlane
|
|
8281
|
+
scanPlane?: EllipsoidEntity.ScanPlaneOptions | EllipsoidEntity.ScanPlaneOptions[];
|
|
8247
8282
|
availability?: Cesium.TimeIntervalCollection;
|
|
8248
8283
|
description?: Cesium.Property | string;
|
|
8249
8284
|
viewFrom?: Cesium.Property;
|
|
@@ -8296,7 +8331,7 @@ declare class EllipsoidEntity extends BasePointEntity {
|
|
|
8296
8331
|
/**
|
|
8297
8332
|
* 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
|
|
8298
8333
|
*/
|
|
8299
|
-
position: Cesium.Cartesian3;
|
|
8334
|
+
position: Cesium.Cartesian3 | LngLatPoint;
|
|
8300
8335
|
}
|
|
8301
8336
|
|
|
8302
8337
|
declare namespace FontBillboardEntity {
|
|
@@ -8643,7 +8678,6 @@ declare namespace ModelEntity {
|
|
|
8643
8678
|
* @property [incrementallyLoadTextures = true] - 确定模型加载后纹理是否会继续流进来。
|
|
8644
8679
|
* @property [runAnimations = true] - 指定模型中指定的glTF动画是否应该启动。
|
|
8645
8680
|
* @property [clampAnimations = true] - 指定在没有关键帧的情况下,glTF动画是否应该保持最后一个姿势。
|
|
8646
|
-
* @property [imageBasedLightingFactor = new Cartesian2(1.0, 1.0)] - 指定来自基于图像的漫反射和镜面照明的贡献。
|
|
8647
8681
|
* @property [lightColor] - 在为模型着色时指定光的颜色的属性。当undefined场景的浅色被使用代替。
|
|
8648
8682
|
* @property [nodeTransformations] - 一个对象,其中键是节点的名称,值是{@link TranslationRotationScale}属性,描述要应用到该节点的转换。该转换是在节点的现有转换之后(如glTF中指定的那样)应用的,并且不会替换节点的现有转换。
|
|
8649
8683
|
* @property [articulations] - An object, where keys are composed of an articulation name, a single space, and a stage name, and the values are numeric properties.
|
|
@@ -8684,7 +8718,6 @@ declare namespace ModelEntity {
|
|
|
8684
8718
|
incrementallyLoadTextures?: boolean;
|
|
8685
8719
|
runAnimations?: boolean;
|
|
8686
8720
|
clampAnimations?: boolean;
|
|
8687
|
-
imageBasedLightingFactor?: Cesium.Cartesian2;
|
|
8688
8721
|
lightColor?: Cesium.Color;
|
|
8689
8722
|
nodeTransformations?: Cesium.PropertyBag | {
|
|
8690
8723
|
[key: string]: Cesium.TranslationRotationScale;
|
|
@@ -8912,7 +8945,11 @@ declare class ModelEntity extends BasePointEntity {
|
|
|
8912
8945
|
/**
|
|
8913
8946
|
* 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
|
|
8914
8947
|
*/
|
|
8915
|
-
position: Cesium.Cartesian3;
|
|
8948
|
+
position: Cesium.Cartesian3 | LngLatPoint;
|
|
8949
|
+
/**
|
|
8950
|
+
* 四周方向角,0-360度角度值
|
|
8951
|
+
*/
|
|
8952
|
+
heading: number;
|
|
8916
8953
|
}
|
|
8917
8954
|
|
|
8918
8955
|
declare namespace PathEntity {
|
|
@@ -9062,7 +9099,7 @@ declare class PathEntity extends BasePointEntity {
|
|
|
9062
9099
|
/**
|
|
9063
9100
|
* 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
|
|
9064
9101
|
*/
|
|
9065
|
-
position: Cesium.Cartesian3;
|
|
9102
|
+
position: Cesium.Cartesian3 | LngLatPoint;
|
|
9066
9103
|
}
|
|
9067
9104
|
|
|
9068
9105
|
declare namespace PlaneEntity {
|
|
@@ -9474,6 +9511,10 @@ declare class PolygonEntity extends BasePolyEntity {
|
|
|
9474
9511
|
* 编辑处理类
|
|
9475
9512
|
*/
|
|
9476
9513
|
readonly EditClass: EditPolygon;
|
|
9514
|
+
/**
|
|
9515
|
+
* 周长 距离(单位:米)
|
|
9516
|
+
*/
|
|
9517
|
+
readonly distance: number;
|
|
9477
9518
|
/**
|
|
9478
9519
|
* 对应的Cesium面entity内部位置对象
|
|
9479
9520
|
*/
|
|
@@ -9519,8 +9560,9 @@ declare class PolygonEntity extends BasePolyEntity {
|
|
|
9519
9560
|
/**
|
|
9520
9561
|
* 按Cesium.CallbackProperty的方式 更新坐标集合(更加平滑)
|
|
9521
9562
|
* @param positions - 坐标数组
|
|
9563
|
+
* @returns 当前坐标集合
|
|
9522
9564
|
*/
|
|
9523
|
-
setCallbackPositions(positions: string[] | any[][] | LngLatPoint[]):
|
|
9565
|
+
setCallbackPositions(positions: string[] | any[][] | LngLatPoint[]): Cesium.Cartesian3[];
|
|
9524
9566
|
}
|
|
9525
9567
|
|
|
9526
9568
|
declare namespace PolylineEntity {
|
|
@@ -9935,6 +9977,10 @@ declare class RectangleEntity extends BasePolyEntity {
|
|
|
9935
9977
|
* 坐标数据对应的矩形边界对象
|
|
9936
9978
|
*/
|
|
9937
9979
|
rectangle: Cesium.Rectangle;
|
|
9980
|
+
/**
|
|
9981
|
+
* 周长 距离(单位:米)
|
|
9982
|
+
*/
|
|
9983
|
+
readonly distance: number;
|
|
9938
9984
|
/**
|
|
9939
9985
|
* 将矢量数据导出为GeoJSON格式规范对象。
|
|
9940
9986
|
* @param [options] - 参数对象:
|
|
@@ -9987,10 +10033,6 @@ declare class RectangleEntity extends BasePolyEntity {
|
|
|
9987
10033
|
* 中心点坐标 (笛卡尔坐标)
|
|
9988
10034
|
*/
|
|
9989
10035
|
readonly center: Cesium.Cartesian3;
|
|
9990
|
-
/**
|
|
9991
|
-
* 距离(单位:米)
|
|
9992
|
-
*/
|
|
9993
|
-
readonly distance: number;
|
|
9994
10036
|
/**
|
|
9995
10037
|
* 面积(单位:平方米)
|
|
9996
10038
|
*/
|
|
@@ -12141,7 +12183,7 @@ declare class BasePointPrimitive extends BasePrimitive {
|
|
|
12141
12183
|
/**
|
|
12142
12184
|
* 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
|
|
12143
12185
|
*/
|
|
12144
|
-
position: Cesium.Cartesian3;
|
|
12186
|
+
position: Cesium.Cartesian3 | LngLatPoint;
|
|
12145
12187
|
/**
|
|
12146
12188
|
* 同 positions只是为了兼容entity的同名属性
|
|
12147
12189
|
*/
|
|
@@ -12497,7 +12539,7 @@ declare class BasePrimitive extends BaseGraphic {
|
|
|
12497
12539
|
*/
|
|
12498
12540
|
openHighlight(highlightStyle?: any, closeLast?: boolean): void;
|
|
12499
12541
|
/**
|
|
12500
|
-
*
|
|
12542
|
+
* 清除已选中的高亮,原有style的配置项需要与highlightStyle配置有一一对应关系,否则无法清除
|
|
12501
12543
|
* @returns 无
|
|
12502
12544
|
*/
|
|
12503
12545
|
closeHighlight(): void;
|
|
@@ -12574,7 +12616,7 @@ declare namespace BoxPrimitive {
|
|
|
12574
12616
|
* @property [flat = false] - 当true时,在片段着色器中使用平面着色,不考虑光照。
|
|
12575
12617
|
* @property [faceForward = !closed] - 当true时,片段着色器根据需要翻转表面的法线,以确保法线面向查看器以避免黑点。
|
|
12576
12618
|
* @property [translucent = true] - 当true时,几何图形将显示为半透明,因此{@link Cesium.PerInstanceColorAppearance#renderState}将启用alpha混合。
|
|
12577
|
-
* @property [closed =
|
|
12619
|
+
* @property [closed = true] - 当true时,几何图形将被关闭,因此{@link Cesium.PerInstanceColorAppearance#renderState}启用了背面剔除。
|
|
12578
12620
|
* @property [vertexShaderSource] - 可选的GLSL顶点着色器源,覆盖默认的顶点着色器。
|
|
12579
12621
|
* @property [fragmentShaderSource] - 可选的GLSL片段着色器源覆盖默认的片段着色器。
|
|
12580
12622
|
* @property [renderState] - 可选渲染状态,以覆盖默认渲染状态。
|
|
@@ -13427,6 +13469,7 @@ declare namespace DiffuseWall {
|
|
|
13427
13469
|
* @property [color = "#3388ff"] - 颜色
|
|
13428
13470
|
* @property [opacity = 1.0] - 透明度,取值范围:0.0-1.0
|
|
13429
13471
|
* @property [speed = 10] - 扩散的速度,值越大越快
|
|
13472
|
+
* @property [maxScale = 1] - 扩散的最大比例
|
|
13430
13473
|
* @property [shadows = Cesium.ShadowMode.DISABLED] - 指定对象是投射还是接收来自光源的阴影。
|
|
13431
13474
|
*/
|
|
13432
13475
|
type StyleOptions = any | {
|
|
@@ -13434,6 +13477,7 @@ declare namespace DiffuseWall {
|
|
|
13434
13477
|
color?: string | Cesium.Color;
|
|
13435
13478
|
opacity?: number;
|
|
13436
13479
|
speed?: number;
|
|
13480
|
+
maxScale?: number;
|
|
13437
13481
|
shadows?: Cesium.ShadowMode;
|
|
13438
13482
|
};
|
|
13439
13483
|
}
|
|
@@ -13614,7 +13658,7 @@ declare namespace EllipsoidPrimitive {
|
|
|
13614
13658
|
* @property [flat = false] - 当true时,在片段着色器中使用平面着色,不考虑光照。
|
|
13615
13659
|
* @property [faceForward = !closed] - 当true时,片段着色器根据需要翻转表面的法线,以确保法线面向查看器以避免黑点。
|
|
13616
13660
|
* @property [translucent = true] - 当true时,几何图形将显示为半透明,因此{@link Cesium.PerInstanceColorAppearance#renderState}将启用alpha混合。
|
|
13617
|
-
* @property [closed =
|
|
13661
|
+
* @property [closed = true] - 当true时,几何图形将被关闭,因此{@link Cesium.PerInstanceColorAppearance#renderState}启用了背面剔除。
|
|
13618
13662
|
* @property [vertexShaderSource] - 可选的GLSL顶点着色器源,覆盖默认的顶点着色器。
|
|
13619
13663
|
* @property [fragmentShaderSource] - 可选的GLSL片段着色器源覆盖默认的片段着色器。
|
|
13620
13664
|
* @property [renderState] - 可选渲染状态,以覆盖默认渲染状态。
|
|
@@ -13743,7 +13787,7 @@ declare namespace FrustumPrimitive {
|
|
|
13743
13787
|
* @property [flat = false] - 当true时,在片段着色器中使用平面着色,不考虑光照。
|
|
13744
13788
|
* @property [faceForward = !closed] - 当true时,片段着色器根据需要翻转表面的法线,以确保法线面向查看器以避免黑点。
|
|
13745
13789
|
* @property [translucent = true] - 当true时,几何图形将显示为半透明,因此{@link Cesium.PerInstanceColorAppearance#renderState}将启用alpha混合。
|
|
13746
|
-
* @property [closed =
|
|
13790
|
+
* @property [closed = true] - 当true时,几何图形将被关闭,因此{@link Cesium.PerInstanceColorAppearance#renderState}启用了背面剔除。
|
|
13747
13791
|
* @property [vertexShaderSource] - 可选的GLSL顶点着色器源,覆盖默认的顶点着色器。
|
|
13748
13792
|
* @property [fragmentShaderSource] - 可选的GLSL片段着色器源覆盖默认的片段着色器。
|
|
13749
13793
|
* @property [renderState] - 可选渲染状态,以覆盖默认渲染状态。
|
|
@@ -13840,7 +13884,7 @@ declare class FrustumPrimitive extends BasePointPrimitive {
|
|
|
13840
13884
|
/**
|
|
13841
13885
|
* 圆锥追踪的目标(确定了方向和距离)
|
|
13842
13886
|
*/
|
|
13843
|
-
targetPosition: Cesium.Cartesian3;
|
|
13887
|
+
targetPosition: Cesium.Cartesian3 | LngLatPoint;
|
|
13844
13888
|
/**
|
|
13845
13889
|
* 圆锥追踪的目标位置坐标
|
|
13846
13890
|
*/
|
|
@@ -14026,7 +14070,6 @@ declare namespace ModelPrimitive {
|
|
|
14026
14070
|
* @property [incrementallyLoadTextures = true] - 确定模型加载后纹理是否会继续流进来。
|
|
14027
14071
|
* @property [runAnimations = true] - 指定模型中指定的glTF动画是否应该启动。
|
|
14028
14072
|
* @property [clampAnimations = true] - 指定在没有关键帧的情况下,glTF动画是否应该保持最后一个姿势。
|
|
14029
|
-
* @property [imageBasedLightingFactor = new Cartesian2(1.0, 1.0)] - 指定来自基于图像的漫反射和镜面照明的贡献。
|
|
14030
14073
|
* @property [lightColor] - 在为模型着色时指定光的颜色的属性。当undefined场景的浅色被使用代替。
|
|
14031
14074
|
* @property [nodeTransformations] - 一个对象,其中键是节点的名称,值是{@link TranslationRotationScale}属性,描述要应用到该节点的转换。该转换是在节点的现有转换之后(如glTF中指定的那样)应用的,并且不会替换节点的现有转换。
|
|
14032
14075
|
* @property [articulations] - An object, where keys are composed of an articulation name, a single space, and a stage name, and the values are numeric properties.
|
|
@@ -14085,7 +14128,6 @@ declare namespace ModelPrimitive {
|
|
|
14085
14128
|
incrementallyLoadTextures?: boolean;
|
|
14086
14129
|
runAnimations?: boolean;
|
|
14087
14130
|
clampAnimations?: boolean;
|
|
14088
|
-
imageBasedLightingFactor?: Cesium.Cartesian2;
|
|
14089
14131
|
lightColor?: Cesium.Color;
|
|
14090
14132
|
nodeTransformations?: Cesium.PropertyBag | {
|
|
14091
14133
|
[key: string]: Cesium.TranslationRotationScale;
|
|
@@ -14164,9 +14206,11 @@ declare namespace ModelPrimitive {
|
|
|
14164
14206
|
* gltf小模型 Primitive图元矢量对象
|
|
14165
14207
|
* @param options - 参数对象,包括以下:
|
|
14166
14208
|
* @param options.position - 坐标位置
|
|
14209
|
+
* @param [options.orientation] - 实体方向,仅position是回调属性时有效
|
|
14167
14210
|
* @param [options.modelMatrix] - 将图元(所有几何实例)从模型转换为世界坐标的4x4变换矩阵,可以替代position。
|
|
14168
14211
|
* @param options.style - 样式信息
|
|
14169
14212
|
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
14213
|
+
* @param [options.frameRate = 1] - 当postion为CallbackProperty时,多少帧获取一次数据。用于控制效率,如果卡顿就把该数值调大一些。
|
|
14170
14214
|
* @param [options.appearance] - [cesium原生]用于渲染图元的外观。
|
|
14171
14215
|
* @param [options.attributes] - [cesium原生]每个实例的属性。
|
|
14172
14216
|
* @param [options.maxCacheCount = 50] - 当使用addDynamicPosition设置为动画轨迹位置时,保留的坐标点数量
|
|
@@ -14188,10 +14232,12 @@ declare namespace ModelPrimitive {
|
|
|
14188
14232
|
*/
|
|
14189
14233
|
declare class ModelPrimitive extends BasePointPrimitive {
|
|
14190
14234
|
constructor(options: {
|
|
14191
|
-
position: LngLatPoint | Cesium.Cartesian3 | number[];
|
|
14235
|
+
position: LngLatPoint | Cesium.Cartesian3 | number[] | Cesium.PositionProperty;
|
|
14236
|
+
orientation?: Cesium.Property;
|
|
14192
14237
|
modelMatrix?: Cesium.Matrix4;
|
|
14193
14238
|
style: ModelPrimitive.StyleOptions | any;
|
|
14194
14239
|
attr?: any;
|
|
14240
|
+
frameRate?: number;
|
|
14195
14241
|
appearance?: Cesium.Appearance;
|
|
14196
14242
|
attributes?: Cesium.Appearance;
|
|
14197
14243
|
maxCacheCount?: number;
|
|
@@ -14678,6 +14724,10 @@ declare class PolygonPrimitive extends BasePolyPrimitive {
|
|
|
14678
14724
|
eventParent?: BaseClass | boolean;
|
|
14679
14725
|
allowDrillPick?: boolean | ((...params: any[]) => any);
|
|
14680
14726
|
});
|
|
14727
|
+
/**
|
|
14728
|
+
* 周长 距离(单位:米)
|
|
14729
|
+
*/
|
|
14730
|
+
readonly distance: number;
|
|
14681
14731
|
/**
|
|
14682
14732
|
* 位置坐标数组 (笛卡尔坐标), 赋值时可以传入LatLngPoint数组对象
|
|
14683
14733
|
*/
|
|
@@ -15100,6 +15150,10 @@ declare class RectanglePrimitive extends BasePolyPrimitive {
|
|
|
15100
15150
|
* 坐标数据对应的矩形边界对象
|
|
15101
15151
|
*/
|
|
15102
15152
|
rectangle: Cesium.Rectangle;
|
|
15153
|
+
/**
|
|
15154
|
+
* 周长 距离(单位:米)
|
|
15155
|
+
*/
|
|
15156
|
+
readonly distance: number;
|
|
15103
15157
|
/**
|
|
15104
15158
|
* 获取数据的矩形边界
|
|
15105
15159
|
* @param [options] - 控制参数
|
|
@@ -15115,6 +15169,10 @@ declare class RectanglePrimitive extends BasePolyPrimitive {
|
|
|
15115
15169
|
* @returns 是否在矩形内
|
|
15116
15170
|
*/
|
|
15117
15171
|
isInPoly(position: Cesium.Cartesian3 | LngLatPoint): boolean;
|
|
15172
|
+
/**
|
|
15173
|
+
* 中心点坐标 (笛卡尔坐标)
|
|
15174
|
+
*/
|
|
15175
|
+
readonly center: Cesium.Cartesian3;
|
|
15118
15176
|
/**
|
|
15119
15177
|
* 面积(单位:平方米)
|
|
15120
15178
|
*/
|
|
@@ -15628,18 +15686,6 @@ declare class BaseRoamLine extends BaseGraphic {
|
|
|
15628
15686
|
y: number;
|
|
15629
15687
|
z: number;
|
|
15630
15688
|
}): Cesium.Matrix4;
|
|
15631
|
-
/**
|
|
15632
|
-
* 重新赋值参数,同构造方法参数一致。
|
|
15633
|
-
* @param options - 参数,与类的构造方法参数相同
|
|
15634
|
-
* @returns 当前对象本身,可以链式调用
|
|
15635
|
-
*/
|
|
15636
|
-
setOptions(options: any): BaseRoamLine | any;
|
|
15637
|
-
/**
|
|
15638
|
-
* 设置 样式信息 的钩子方法
|
|
15639
|
-
* @param newStyle - 本次更新的部分样式信息,内部会合并属性
|
|
15640
|
-
* @returns 当前对象本身,可以链式调用
|
|
15641
|
-
*/
|
|
15642
|
-
setStyle(newStyle: any): BaseGraphic | any;
|
|
15643
15689
|
/**
|
|
15644
15690
|
* 高亮对象。
|
|
15645
15691
|
* @param [highlightStyle] - 高亮的样式,具体见各{@link GraphicType}矢量数据的style参数。
|
|
@@ -15648,7 +15694,7 @@ declare class BaseRoamLine extends BaseGraphic {
|
|
|
15648
15694
|
*/
|
|
15649
15695
|
openHighlight(highlightStyle?: any, closeLast?: boolean): void;
|
|
15650
15696
|
/**
|
|
15651
|
-
*
|
|
15697
|
+
* 清除已选中的高亮,原有style的配置项需要与highlightStyle配置有一一对应关系,否则无法清除
|
|
15652
15698
|
* @returns 无
|
|
15653
15699
|
*/
|
|
15654
15700
|
closeHighlight(): void;
|
|
@@ -15835,14 +15881,6 @@ declare class BaseRoamLine extends BaseGraphic {
|
|
|
15835
15881
|
* 矢量数据对应的 Cesium内部对象 (不同子类中实现)
|
|
15836
15882
|
*/
|
|
15837
15883
|
readonly czmObject: Cesium.Entity | Cesium.Primitive | Cesium.GroundPrimitive | Cesium.ClassificationPrimitive | any;
|
|
15838
|
-
/**
|
|
15839
|
-
* 显示隐藏状态
|
|
15840
|
-
*/
|
|
15841
|
-
show: boolean;
|
|
15842
|
-
/**
|
|
15843
|
-
* 名称
|
|
15844
|
-
*/
|
|
15845
|
-
name: string;
|
|
15846
15884
|
/**
|
|
15847
15885
|
* 当前类的构造参数
|
|
15848
15886
|
*/
|
|
@@ -15899,12 +15937,15 @@ declare namespace DynamicRoamLine {
|
|
|
15899
15937
|
* @param options - 参数对象,包括以下:
|
|
15900
15938
|
* @param [options.model] - 设置是否显示 gltf模型 和对应的样式, 还额外包括:<br />
|
|
15901
15939
|
* // * @param {Boolean} [options.model.noPitchRoll] 设置为true时,可以设置模型只动态更改方向,内部固定模型的Pitch和Roll方向值为0
|
|
15902
|
-
* @param [options.model] - 设置是否显示 gltf模型 和对应的样式
|
|
15903
15940
|
* @param [options.label] - 设置是否显示 文本 和对应的样式
|
|
15904
15941
|
* @param [options.billboard] - 设置是否显示 图标 和对应的样式,如果不设置gltf模型时,可以选择该项。
|
|
15905
15942
|
* @param [options.point] - 设置是否显示 图标 和对应的样式,如果不设置gltf模型时,可以选择该项。
|
|
15906
15943
|
* @param [options.circle] - 设置是否显示 圆对象 和对应的样式
|
|
15907
15944
|
* @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。
|
|
15945
|
+
* @param [options.availability] - 与该对象关联的可用性。
|
|
15946
|
+
* @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
|
|
15947
|
+
* @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
|
|
15948
|
+
* @param [options.parent] - 要与此实体关联的父实体。
|
|
15908
15949
|
* @param [options.hasCache = true] - 是否记录缓存,提高效率
|
|
15909
15950
|
* @param [options.maxCacheCount = 50] - 保留的坐标点数量,当为-1时保留所有
|
|
15910
15951
|
* @param [options.forwardExtrapolationType = Cesium.ExtrapolationType.HOLD] - 在任何可用坐标之后一次请求值时要执行的推断类型,默认为最后一个坐标位置。
|
|
@@ -15944,13 +15985,16 @@ declare namespace DynamicRoamLine {
|
|
|
15944
15985
|
*/
|
|
15945
15986
|
declare class DynamicRoamLine extends BaseRoamLine {
|
|
15946
15987
|
constructor(options: {
|
|
15947
|
-
model?: ModelEntity.StyleOptions | any;
|
|
15948
15988
|
model?: ModelEntity.StyleOptions | any;
|
|
15949
15989
|
label?: LabelEntity.StyleOptions | any;
|
|
15950
15990
|
billboard?: BillboardEntity.StyleOptions | any;
|
|
15951
15991
|
point?: PointEntity.StyleOptions | any;
|
|
15952
15992
|
circle?: CircleEntity.StyleOptions | any;
|
|
15953
15993
|
attr?: any;
|
|
15994
|
+
availability?: Cesium.TimeIntervalCollection;
|
|
15995
|
+
description?: Cesium.Property | string;
|
|
15996
|
+
viewFrom?: Cesium.Property;
|
|
15997
|
+
parent?: Cesium.Entity;
|
|
15954
15998
|
hasCache?: boolean;
|
|
15955
15999
|
maxCacheCount?: number;
|
|
15956
16000
|
forwardExtrapolationType?: Cesium.ExtrapolationType;
|
|
@@ -16089,6 +16133,10 @@ declare namespace RoamLine {
|
|
|
16089
16133
|
* @param [options.path] - 设置是否显示 轨迹路线 和对应的样式
|
|
16090
16134
|
* @param [options.circle] - 设置是否显示 圆对象 和对应的样式
|
|
16091
16135
|
* @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。
|
|
16136
|
+
* @param [options.availability] - 与该对象关联的可用性。
|
|
16137
|
+
* @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
|
|
16138
|
+
* @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
|
|
16139
|
+
* @param [options.parent] - 要与此实体关联的父实体。
|
|
16092
16140
|
* @param [options.offsetHeight = 0] - 轨迹偏移增加的高度
|
|
16093
16141
|
* @param [options.startTime = clock.currentTime] - 轨迹的开始时间
|
|
16094
16142
|
* @param [options.pauseTime = 0] - 每个点的停留时长(单位:秒)
|
|
@@ -16146,6 +16194,10 @@ declare class RoamLine extends BaseRoamLine {
|
|
|
16146
16194
|
path?: PathEntity.StyleOptions | any | any;
|
|
16147
16195
|
circle?: CircleEntity.StyleOptions | any | any;
|
|
16148
16196
|
attr?: any;
|
|
16197
|
+
availability?: Cesium.TimeIntervalCollection;
|
|
16198
|
+
description?: Cesium.Property | string;
|
|
16199
|
+
viewFrom?: Cesium.Property;
|
|
16200
|
+
parent?: Cesium.Entity;
|
|
16149
16201
|
offsetHeight?: number;
|
|
16150
16202
|
startTime?: string | Date | Cesium.JulianDate;
|
|
16151
16203
|
pauseTime?: number | ((...params: any[]) => any);
|
|
@@ -16488,7 +16540,7 @@ declare class BaseGraphicLayer extends BaseLayer {
|
|
|
16488
16540
|
* callback: function (e) {
|
|
16489
16541
|
* let graphic = e.graphic
|
|
16490
16542
|
* let strDis = mars3d.MeasureUtil.formatDistance(graphic.distance)
|
|
16491
|
-
*
|
|
16543
|
+
* alert('该对象的长度为:' + strDis)
|
|
16492
16544
|
* },
|
|
16493
16545
|
* },
|
|
16494
16546
|
* ])
|
|
@@ -16733,6 +16785,14 @@ declare class BaseLayer extends BaseClass {
|
|
|
16733
16785
|
* @returns 无
|
|
16734
16786
|
*/
|
|
16735
16787
|
destroy(noDel?: boolean): void;
|
|
16788
|
+
/**
|
|
16789
|
+
* 触发指定类型的事件。
|
|
16790
|
+
* @param type - 事件类型
|
|
16791
|
+
* @param [data] - 传输的数据或对象,可在事件回调方法中event对象中获取进行使用
|
|
16792
|
+
* @param [propagate = null] - 将事件传播给父类 (用addEventParent设置)
|
|
16793
|
+
* @returns 当前对象本身,可以链式调用
|
|
16794
|
+
*/
|
|
16795
|
+
fire(type: EventType | string, data?: any, propagate?: BaseClass): BaseClass;
|
|
16736
16796
|
}
|
|
16737
16797
|
|
|
16738
16798
|
declare namespace CzmGeoJsonLayer {
|
|
@@ -17223,6 +17283,9 @@ declare class KmlLayer extends CzmGeoJsonLayer {
|
|
|
17223
17283
|
* @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。
|
|
17224
17284
|
* @param [options.symbol.merge] - 是否合并并覆盖json中已有的style,默认不合并。
|
|
17225
17285
|
* @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; }
|
|
17286
|
+
* @param [options.graphicOptions] - 默认的graphic的构造参数,每种不同类型数据都有不同的属性,具体见各{@link GraphicType}矢量数据的构造参数。
|
|
17287
|
+
* @param [options.chinaCRS] - 标识数据的国内坐标系(用于自动纠偏或加偏)
|
|
17288
|
+
* @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
|
|
17226
17289
|
* @param [options.buildings] - 标识当前图层为建筑物白膜类型数据
|
|
17227
17290
|
* @param [options.buildings.bottomHeight] - 建筑物底部高度(如:0) 属性字段名称(如:{bottomHeight})
|
|
17228
17291
|
* @param [options.buildings.cloumn = 1] - 层数,楼的实际高度 = height*cloumn
|
|
@@ -17291,6 +17354,9 @@ declare class ArcGisWfsLayer extends LodGraphicLayer {
|
|
|
17291
17354
|
merge?: boolean;
|
|
17292
17355
|
callback?: (...params: any[]) => any;
|
|
17293
17356
|
};
|
|
17357
|
+
graphicOptions?: any;
|
|
17358
|
+
chinaCRS?: ChinaCRS;
|
|
17359
|
+
allowDrillPick?: boolean | ((...params: any[]) => any);
|
|
17294
17360
|
buildings?: {
|
|
17295
17361
|
bottomHeight?: string;
|
|
17296
17362
|
cloumn?: string;
|
|
@@ -17357,6 +17423,7 @@ declare class ArcGisWfsLayer extends LodGraphicLayer {
|
|
|
17357
17423
|
* @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。
|
|
17358
17424
|
* @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。
|
|
17359
17425
|
* @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, entity, styleOpt){ return { color: "#ff0000" }; }
|
|
17426
|
+
* @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
|
|
17360
17427
|
* @param [options.buildings] - 标识当前图层为建筑物白膜类型数据
|
|
17361
17428
|
* @param [options.buildings.bottomHeight] - 建筑物底部高度(如:0) 属性字段名称(如:{bottomHeight})
|
|
17362
17429
|
* @param [options.buildings.cloumn = 1] - 层数,楼的实际高度 = height*cloumn
|
|
@@ -17406,6 +17473,7 @@ declare class ArcGisWfsSingleLayer extends GeoJsonLayer {
|
|
|
17406
17473
|
styleFieldOptions?: any;
|
|
17407
17474
|
callback?: (...params: any[]) => any;
|
|
17408
17475
|
};
|
|
17476
|
+
allowDrillPick?: boolean | ((...params: any[]) => any);
|
|
17409
17477
|
buildings?: {
|
|
17410
17478
|
bottomHeight?: string;
|
|
17411
17479
|
cloumn?: string;
|
|
@@ -17648,10 +17716,11 @@ declare namespace GeoJsonLayer {
|
|
|
17648
17716
|
* @param [options.url] - geojson文件或服务url地址
|
|
17649
17717
|
* @param [options.data] - geojson格式规范数据对象,与url二选一即可。
|
|
17650
17718
|
* @param [options.crs] - 原始数据的坐标系,如'EPSG:3857'
|
|
17719
|
+
* @param [options.chinaCRS] - 标识数据的国内坐标系(用于自动纠偏或加偏)
|
|
17651
17720
|
* @param [options.format] - 可以对加载的geojson数据进行格式化或转换操作
|
|
17652
17721
|
* @param [options.onCreateGraphic] - 解析geojson后,外部自定义方法来创建Graphic对象
|
|
17653
17722
|
* @param [options.mask] - 标识是否绘制区域边界的反选遮罩层,也可以传入object配置范围: { xmin: 73.0, xmax: 136.0, ymin: 3.0, ymax: 59.0 }
|
|
17654
|
-
* @param [options.
|
|
17723
|
+
* @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
|
|
17655
17724
|
* @param [options.opacity = 1.0] - 透明度(部分图层),取值范围:0.0-1.0
|
|
17656
17725
|
* @param [options.zIndex] - 控制图层的叠加层次(部分图层),默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。
|
|
17657
17726
|
* @param [options.symbol] - 矢量数据的style样式,为Function时是完全自定义的回调处理 symbol(attr, style, feature)
|
|
@@ -17661,6 +17730,7 @@ declare namespace GeoJsonLayer {
|
|
|
17661
17730
|
* @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。
|
|
17662
17731
|
* @param [options.symbol.merge] - 是否合并并覆盖json中已有的style,默认不合并。
|
|
17663
17732
|
* @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; }
|
|
17733
|
+
* @param [options.graphicOptions] - 默认的graphic的构造参数,每种不同类型数据都有不同的属性,具体见各{@link GraphicType}矢量数据的构造参数。
|
|
17664
17734
|
* @param [options.buildings] - 标识当前图层为建筑物白膜类型数据
|
|
17665
17735
|
* @param [options.buildings.bottomHeight] - 建筑物底部高度(如:0) 属性字段名称(如:{bottomHeight})
|
|
17666
17736
|
* @param [options.buildings.cloumn = 1] - 层数,楼的实际高度 = height*cloumn
|
|
@@ -17705,10 +17775,11 @@ declare class GeoJsonLayer extends GraphicLayer {
|
|
|
17705
17775
|
url?: string;
|
|
17706
17776
|
data?: any;
|
|
17707
17777
|
crs?: string;
|
|
17778
|
+
chinaCRS?: ChinaCRS;
|
|
17708
17779
|
format?: (...params: any[]) => any;
|
|
17709
17780
|
onCreateGraphic?: (...params: any[]) => any;
|
|
17710
17781
|
mask?: boolean | any;
|
|
17711
|
-
|
|
17782
|
+
allowDrillPick?: boolean | ((...params: any[]) => any);
|
|
17712
17783
|
opacity?: number;
|
|
17713
17784
|
zIndex?: number;
|
|
17714
17785
|
symbol?: {
|
|
@@ -17719,6 +17790,7 @@ declare class GeoJsonLayer extends GraphicLayer {
|
|
|
17719
17790
|
merge?: boolean;
|
|
17720
17791
|
callback?: (...params: any[]) => any;
|
|
17721
17792
|
};
|
|
17793
|
+
graphicOptions?: any;
|
|
17722
17794
|
buildings?: {
|
|
17723
17795
|
bottomHeight?: string;
|
|
17724
17796
|
cloumn?: string;
|
|
@@ -18037,7 +18109,6 @@ declare namespace GraphicLayer {
|
|
|
18037
18109
|
* @param [options.isAutoEditing = true] - 完成标绘时是否自动启动编辑(需要hasEdit:true时)
|
|
18038
18110
|
* @param [options.isContinued = false] - 是否连续标绘,联系标绘状态下无法编辑已有对象。
|
|
18039
18111
|
* @param [options.isRestorePositions = false] - 在标绘和编辑结束时,是否将坐标还原为普通值,true: 停止编辑时会有闪烁,但效率要好些。
|
|
18040
|
-
* @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
|
|
18041
18112
|
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效,且只有贴地对象有效)。
|
|
18042
18113
|
* @param [options.symbol] - 矢量数据的style样式,为Function时是完全自定义的回调处理 symbol(attr, style, feature)
|
|
18043
18114
|
* @param [options.symbol.type] - 标识数据类型,默认是根据数据生成 point、polyline、polygon
|
|
@@ -18045,6 +18116,7 @@ declare namespace GraphicLayer {
|
|
|
18045
18116
|
* @param [options.symbol.styleField] - 按 styleField 属性设置不同样式。
|
|
18046
18117
|
* @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。
|
|
18047
18118
|
* @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; }
|
|
18119
|
+
* @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
|
|
18048
18120
|
* @param [options.clustering] - Entity点数据时,设置聚合相关参数:
|
|
18049
18121
|
* @param [options.clustering.enabled = false] - 是否开启聚合
|
|
18050
18122
|
* @param [options.clustering.pixelRange = 20] - 多少像素矩形范围内聚合
|
|
@@ -18095,7 +18167,6 @@ declare class GraphicLayer extends BaseGraphicLayer {
|
|
|
18095
18167
|
isAutoEditing?: boolean;
|
|
18096
18168
|
isContinued?: boolean;
|
|
18097
18169
|
isRestorePositions?: boolean;
|
|
18098
|
-
allowDrillPick?: boolean | ((...params: any[]) => any);
|
|
18099
18170
|
zIndex?: number;
|
|
18100
18171
|
symbol?: {
|
|
18101
18172
|
type?: GraphicType | string;
|
|
@@ -18104,6 +18175,7 @@ declare class GraphicLayer extends BaseGraphicLayer {
|
|
|
18104
18175
|
styleFieldOptions?: any;
|
|
18105
18176
|
callback?: (...params: any[]) => any;
|
|
18106
18177
|
};
|
|
18178
|
+
allowDrillPick?: boolean | ((...params: any[]) => any);
|
|
18107
18179
|
clustering?: {
|
|
18108
18180
|
enabled?: boolean;
|
|
18109
18181
|
pixelRange?: number;
|
|
@@ -18274,14 +18346,21 @@ declare class GraphicLayer extends BaseGraphicLayer {
|
|
|
18274
18346
|
* @param attrVal - 属性值
|
|
18275
18347
|
* @returns 矢量数据对象
|
|
18276
18348
|
*/
|
|
18277
|
-
getGraphicByAttr(attrName:
|
|
18349
|
+
getGraphicByAttr(attrName: string, attrVal: string | number | boolean | any): BaseGraphic | any;
|
|
18278
18350
|
/**
|
|
18279
18351
|
* 根据 指定属性 获取 矢量数据对象 数组
|
|
18280
18352
|
* @param attrName - 属性名称值(如id、name等)
|
|
18281
18353
|
* @param attrVal - 属性值
|
|
18282
18354
|
* @returns 矢量数据对象
|
|
18283
18355
|
*/
|
|
18284
|
-
getGraphicsByAttr(attrName:
|
|
18356
|
+
getGraphicsByAttr(attrName: string, attrVal: string | number | boolean | any): BaseGraphic[];
|
|
18357
|
+
/**
|
|
18358
|
+
* 根据 指定style样式 获取 矢量数据对象 数组
|
|
18359
|
+
* @param styleName - style内的字段名称
|
|
18360
|
+
* @param styleVal - 属性值
|
|
18361
|
+
* @returns 矢量数据对象
|
|
18362
|
+
*/
|
|
18363
|
+
getGraphicsByStyle(styleName: string, styleVal: string | number | boolean | any): BaseGraphic[];
|
|
18285
18364
|
/**
|
|
18286
18365
|
* 遍历所有矢量数据并将其作为参数传递给回调函数
|
|
18287
18366
|
* @param method - 回调方法
|
|
@@ -19066,11 +19145,7 @@ declare namespace TilesetLayer {
|
|
|
19066
19145
|
* @param [options.clippingPlanes] - {@link Cesium.ClippingPlaneCollection}用于选择性地禁用tile集的渲染。
|
|
19067
19146
|
* @param [options.classificationType] - 确定地形、3D贴图或两者都将被这个贴图集分类。有关限制和限制的详细信息,请参阅{@link cesium3dtilesset #classificationType}。
|
|
19068
19147
|
* @param [options.pointCloudShading] - 基于几何误差和光照构造一个{@link Cesium.PointCloudShading}对象来控制点衰减的选项。
|
|
19069
|
-
* @param [options.imageBasedLightingFactor = new Cartesian2(1.0, 1.0)] - 缩放来自地球、天空、大气和星星天空盒的漫反射和高光图像照明。
|
|
19070
19148
|
* @param [options.lightColor] - 光的颜色当遮光模型。当undefined场景的浅色被使用代替。
|
|
19071
|
-
* @param [options.luminanceAtZenith = 0.2] - 太阳在天顶的亮度,单位是千坎德拉每平方米,用于这个模型的程序环境地图。
|
|
19072
|
-
* @param [options.sphericalHarmonicCoefficients] - 三阶球面调和系数用于基于图像的漫射色彩照明。
|
|
19073
|
-
* @param [options.specularEnvironmentMaps] - 一个KTX文件的URL,该文件包含高光照明的立方体映射和复杂的高光mipmaps。
|
|
19074
19149
|
* @param [options.backFaceCulling = true] - 是否剔除面向背面的几何图形。当为真时,背面剔除由glTF材质的双面属性决定;当为false时,禁用背面剔除。
|
|
19075
19150
|
* @param [options.debugHeatmapTilePropertyName] - 是否剔除面向背面的几何图形。当为真时,背面剔除由glTF材质的双面属性决定;作为热图着色的tile变量。所有渲染的贴图都将相对于其他指定的变量值着色。
|
|
19076
19151
|
* @param [options.pickPrimitive] - 要在拾取过程中呈现的原语,而不是tile集合。
|
|
@@ -19157,11 +19232,7 @@ declare class TilesetLayer extends BaseGraphicLayer {
|
|
|
19157
19232
|
clippingPlanes?: Cesium.ClippingPlaneCollection;
|
|
19158
19233
|
classificationType?: Cesium.ClassificationType;
|
|
19159
19234
|
pointCloudShading?: any;
|
|
19160
|
-
imageBasedLightingFactor?: Cesium.Cartesian2;
|
|
19161
19235
|
lightColor?: Cesium.Cartesian3;
|
|
19162
|
-
luminanceAtZenith?: number;
|
|
19163
|
-
sphericalHarmonicCoefficients?: Cesium.Cartesian3[];
|
|
19164
|
-
specularEnvironmentMaps?: string;
|
|
19165
19236
|
backFaceCulling?: boolean;
|
|
19166
19237
|
debugHeatmapTilePropertyName?: string;
|
|
19167
19238
|
pickPrimitive?: any;
|
|
@@ -19336,7 +19407,7 @@ declare class TilesetLayer extends BaseGraphicLayer {
|
|
|
19336
19407
|
*/
|
|
19337
19408
|
openHighlight(highlightStyle?: any, closeLast?: boolean, feature?: Cesium.Cesium3DTileFeature): void;
|
|
19338
19409
|
/**
|
|
19339
|
-
*
|
|
19410
|
+
* 清除已选中的高亮,原有style的配置项需要与highlightStyle配置有一一对应关系,否则无法清除
|
|
19340
19411
|
* @returns 无
|
|
19341
19412
|
*/
|
|
19342
19413
|
closeHighlight(): void;
|
|
@@ -19362,6 +19433,10 @@ declare class TilesetLayer extends BaseGraphicLayer {
|
|
|
19362
19433
|
* @returns 当前对象本身,可以链式调用
|
|
19363
19434
|
*/
|
|
19364
19435
|
closePopup(): BaseGraphicLayer;
|
|
19436
|
+
/**
|
|
19437
|
+
* 透明度,取值范围:0.0-1.0
|
|
19438
|
+
*/
|
|
19439
|
+
opacity: number;
|
|
19365
19440
|
/**
|
|
19366
19441
|
* 飞行定位至图层数据所在的视角
|
|
19367
19442
|
* @param [options = {}] - 参数对象:
|
|
@@ -19402,6 +19477,7 @@ declare class TilesetLayer extends BaseGraphicLayer {
|
|
|
19402
19477
|
* @param [options.parameters] - 要在URL中 传递给WFS服务GetFeature请求的其他参数。
|
|
19403
19478
|
* @param [options.parameters.maxFeatures] - 返回结果最大数量
|
|
19404
19479
|
* @param [options.parameters.cql_filter] - 筛选服务数据的[SQL语句]{@link https://docs.geoserver.org/2.12.2/user/services/wfs/vendor.html#wfs-vendor-parameters}
|
|
19480
|
+
* @param [options.parameters.sortBy] - 排序的属性名称,默认升序,降序时+D
|
|
19405
19481
|
* @param [options.parameters.service = 'WFS'] - 服务类型
|
|
19406
19482
|
* @param [options.parameters.version = '1.0.0'] - 服务版本
|
|
19407
19483
|
* @param [options.geometryName = 'the_geom'] - geometry字段名称
|
|
@@ -19427,6 +19503,9 @@ declare class TilesetLayer extends BaseGraphicLayer {
|
|
|
19427
19503
|
* @param [options.symbol.styleFieldOptions] - 按styleField值与对应style样式的键值对象。
|
|
19428
19504
|
* @param [options.symbol.merge] - 是否合并并覆盖json中已有的style,默认不合并。
|
|
19429
19505
|
* @param [options.symbol.callback] - 自定义判断处理返回style ,示例:callback: function (attr, styleOpt){ return { color: "#ff0000" }; }
|
|
19506
|
+
* @param [options.graphicOptions] - 默认的graphic的构造参数,每种不同类型数据都有不同的属性,具体见各{@link GraphicType}矢量数据的构造参数。
|
|
19507
|
+
* @param [options.chinaCRS] - 标识数据的国内坐标系(用于自动纠偏或加偏)
|
|
19508
|
+
* @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
|
|
19430
19509
|
* @param [options.buildings] - 标识当前图层为建筑物白膜类型数据
|
|
19431
19510
|
* @param [options.buildings.bottomHeight] - 建筑物底部高度(如:0) 属性字段名称(如:{bottomHeight})
|
|
19432
19511
|
* @param [options.buildings.cloumn = 1] - 层数,楼的实际高度 = height*cloumn
|
|
@@ -19480,6 +19559,7 @@ declare class WfsLayer extends LodGraphicLayer {
|
|
|
19480
19559
|
parameters?: {
|
|
19481
19560
|
maxFeatures?: number;
|
|
19482
19561
|
cql_filter?: string;
|
|
19562
|
+
sortBy?: string;
|
|
19483
19563
|
service?: string;
|
|
19484
19564
|
version?: string;
|
|
19485
19565
|
};
|
|
@@ -19508,6 +19588,9 @@ declare class WfsLayer extends LodGraphicLayer {
|
|
|
19508
19588
|
merge?: boolean;
|
|
19509
19589
|
callback?: (...params: any[]) => any;
|
|
19510
19590
|
};
|
|
19591
|
+
graphicOptions?: any;
|
|
19592
|
+
chinaCRS?: ChinaCRS;
|
|
19593
|
+
allowDrillPick?: boolean | ((...params: any[]) => any);
|
|
19511
19594
|
buildings?: {
|
|
19512
19595
|
bottomHeight?: string;
|
|
19513
19596
|
cloumn?: string;
|
|
@@ -20596,7 +20679,7 @@ declare class BaseTileLayer extends BaseLayer {
|
|
|
20596
20679
|
*/
|
|
20597
20680
|
openHighlight(highlightStyle?: any, closeLast?: boolean): void;
|
|
20598
20681
|
/**
|
|
20599
|
-
*
|
|
20682
|
+
* 清除已选中的高亮,原有style的配置项需要与highlightStyle配置有一一对应关系,否则无法清除
|
|
20600
20683
|
* @returns 无
|
|
20601
20684
|
*/
|
|
20602
20685
|
closeHighlight(): void;
|
|
@@ -23150,7 +23233,7 @@ declare namespace Map {
|
|
|
23150
23233
|
* @property [backgroundColor] - 空间背景色 ,css颜色值
|
|
23151
23234
|
*
|
|
23152
23235
|
* 以下是Cesium.Viewer所支持的options【控件相关的写在另外的control属性中】
|
|
23153
|
-
* @property [sceneMode = Cesium.SceneMode.SCENE3D] -
|
|
23236
|
+
* @property [sceneMode = Cesium.SceneMode.SCENE3D] - 初始场景模式。可以设置进入场景后初始是2D、2.5D、3D 模式。
|
|
23154
23237
|
* @property [scene3DOnly = false] - 为 true 时,每个几何实例将仅以3D渲染以节省GPU内存。
|
|
23155
23238
|
* @property [mapProjection = new Cesium.GeographicProjection()] - 在二维模式下地图的呈现坐标系,默认为EPSG4326坐标系,如果需要EPSG3857墨卡托坐标系展示,传 new Cesium.WebMercatorProjection() 即可
|
|
23156
23239
|
* @property [shouldAnimate = true] - 是否开启时钟动画
|
|
@@ -24054,10 +24137,10 @@ declare class Map extends BaseClass {
|
|
|
24054
24137
|
* @param cameraView - 飞行参数
|
|
24055
24138
|
* @param cameraView.lng - 经度值, 180 - 180
|
|
24056
24139
|
* @param cameraView.lat - 纬度值, -90 - 90
|
|
24057
|
-
* @param cameraView.alt - 高度值
|
|
24058
|
-
* @param cameraView.heading - 方向角度值,绕垂直于地心的轴旋转角度, 0-360
|
|
24059
|
-
* @param cameraView.pitch - 俯仰角度值,绕纬度线旋转角度, 0-360
|
|
24060
|
-
* @param cameraView.roll - 翻滚角度值,绕经度线旋转角度, 0-360
|
|
24140
|
+
* @param [cameraView.alt] - 高度值
|
|
24141
|
+
* @param [cameraView.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0-360
|
|
24142
|
+
* @param [cameraView.pitch] - 俯仰角度值,绕纬度线旋转角度, 0-360
|
|
24143
|
+
* @param [cameraView.roll] - 翻滚角度值,绕经度线旋转角度, 0-360
|
|
24061
24144
|
* @param [options = {}] - 参数对象:
|
|
24062
24145
|
* @param [options.duration] - 飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。
|
|
24063
24146
|
* @param [options.complete] - 飞行完成后要执行的函数。
|
|
@@ -24074,10 +24157,10 @@ declare class Map extends BaseClass {
|
|
|
24074
24157
|
setCameraView(cameraView: {
|
|
24075
24158
|
lng: number;
|
|
24076
24159
|
lat: number;
|
|
24077
|
-
alt
|
|
24078
|
-
heading
|
|
24079
|
-
pitch
|
|
24080
|
-
roll
|
|
24160
|
+
alt?: number;
|
|
24161
|
+
heading?: number;
|
|
24162
|
+
pitch?: number;
|
|
24163
|
+
roll?: number;
|
|
24081
24164
|
}, options?: {
|
|
24082
24165
|
duration?: number;
|
|
24083
24166
|
complete?: Cesium.Camera.FlightCompleteCallback;
|
|
@@ -24355,12 +24438,12 @@ declare class Map extends BaseClass {
|
|
|
24355
24438
|
* @param [options = {}] - 参数对象:
|
|
24356
24439
|
* @param [options.center = getCameraView()] - 飞行到的指定区域视角参数
|
|
24357
24440
|
* @param [options.callback = null] - 飞行结束的回调方法
|
|
24358
|
-
* @returns
|
|
24441
|
+
* @returns 飞行结束的Promise
|
|
24359
24442
|
*/
|
|
24360
24443
|
openFlyAnimation(options?: {
|
|
24361
24444
|
center?: any;
|
|
24362
24445
|
callback?: (...params: any[]) => any;
|
|
24363
|
-
}):
|
|
24446
|
+
}): Promise;
|
|
24364
24447
|
/**
|
|
24365
24448
|
* 执行旋转地球动画
|
|
24366
24449
|
* @param [options = {}] - 参数对象:
|
|
@@ -25595,6 +25678,8 @@ declare class EchartsLayer extends BaseLayer {
|
|
|
25595
25678
|
* @param options.rectangle.xmax - 最大纬度值
|
|
25596
25679
|
* @param options.rectangle.ymin - 最小纬度值
|
|
25597
25680
|
* @param options.rectangle.ymax - 最大纬度值
|
|
25681
|
+
* @param [options.max] - 数据集的value值上限,默认内部计算
|
|
25682
|
+
* @param [options.min] - 数据集的value值下限,默认内部计算
|
|
25598
25683
|
* @param [options.heatStyle] - heatmap热力图本身configObject参数,详情也可查阅 [heatmap文档]{@link https://www.patrick-wied.at/static/heatmapjs/docs.html}
|
|
25599
25684
|
* @param [options.heatStyle.maxOpacity = 0.8] - 最大不透明度,取值范围0.0-1.0。
|
|
25600
25685
|
* @param [options.heatStyle.minOpacity = 0.1] - 最小不透明度,取值范围0.0-1.0。
|
|
@@ -25635,6 +25720,8 @@ declare class HeatLayer extends BaseLayer {
|
|
|
25635
25720
|
ymin: number;
|
|
25636
25721
|
ymax: number;
|
|
25637
25722
|
};
|
|
25723
|
+
max?: number;
|
|
25724
|
+
min?: number;
|
|
25638
25725
|
heatStyle?: {
|
|
25639
25726
|
maxOpacity?: number;
|
|
25640
25727
|
minOpacity?: number;
|
|
@@ -26133,7 +26220,7 @@ declare namespace CamberRadar {
|
|
|
26133
26220
|
}
|
|
26134
26221
|
|
|
26135
26222
|
/**
|
|
26136
|
-
*
|
|
26223
|
+
* 双曲面拱形雷达,该对象暂不支持鼠标交互和拾取,
|
|
26137
26224
|
* 【需要引入 mars3d-space 插件库】
|
|
26138
26225
|
* @param options - 参数对象,包括以下:
|
|
26139
26226
|
* @param options.position - 坐标位置
|
|
@@ -26231,7 +26318,7 @@ declare namespace ConicSensor {
|
|
|
26231
26318
|
}
|
|
26232
26319
|
|
|
26233
26320
|
/**
|
|
26234
|
-
*
|
|
26321
|
+
* 圆锥体(单目标雷达),该对象暂不支持鼠标交互和拾取,
|
|
26235
26322
|
* 【需要引入 mars3d-space 插件库】
|
|
26236
26323
|
* @param options - 参数对象,包括以下:
|
|
26237
26324
|
* @param options.position - 坐标位置
|
|
@@ -26395,7 +26482,7 @@ declare namespace RectSensor {
|
|
|
26395
26482
|
}
|
|
26396
26483
|
|
|
26397
26484
|
/**
|
|
26398
|
-
*
|
|
26485
|
+
* 四棱锥体,该对象暂不支持鼠标交互和拾取,
|
|
26399
26486
|
* 【需要引入 mars3d-space 插件库】
|
|
26400
26487
|
* @param options - 参数对象,包括以下:
|
|
26401
26488
|
* @param options.position - 坐标位置
|
|
@@ -26742,7 +26829,7 @@ declare namespace SatelliteSensor {
|
|
|
26742
26829
|
}
|
|
26743
26830
|
|
|
26744
26831
|
/**
|
|
26745
|
-
*
|
|
26832
|
+
* 卫星视锥综合体(圆锥或四凌锥),该对象暂不支持鼠标交互和拾取,
|
|
26746
26833
|
* 【需要引入 mars3d-space 插件库】
|
|
26747
26834
|
* @param [options] - 参数对象,包括以下:
|
|
26748
26835
|
* @param options.position - 坐标位置
|
|
@@ -26844,7 +26931,7 @@ declare class SatelliteSensor extends BasePointPrimitive {
|
|
|
26844
26931
|
/**
|
|
26845
26932
|
* 位置坐标 (笛卡尔坐标), 赋值时可以传入LatLngPoint对象
|
|
26846
26933
|
*/
|
|
26847
|
-
position: Cesium.Cartesian3;
|
|
26934
|
+
position: Cesium.Cartesian3 | LngLatPoint;
|
|
26848
26935
|
}
|
|
26849
26936
|
|
|
26850
26937
|
/**
|
|
@@ -27646,6 +27733,9 @@ declare namespace widget {
|
|
|
27646
27733
|
* uri: "widgets/bookmark/widget.js",
|
|
27647
27734
|
* autoDisable: true,
|
|
27648
27735
|
* testdata:'测试数据1987', //传数据进widget内部,widget内部使用this.config.testdata获取到传的数据
|
|
27736
|
+
* success:function(thisWidget){
|
|
27737
|
+
* //创建完成的回调方法
|
|
27738
|
+
* }
|
|
27649
27739
|
* });
|
|
27650
27740
|
* @param item - 指widget模块的uri 或 指模块的配置参数,当有配置参数时,参数优先级是:
|
|
27651
27741
|
* 【activate方法传入的配置 > init方法传入的配置(widget.json) > widget.js内部配置的】
|
|
@@ -31440,6 +31530,13 @@ declare namespace MaterialUtil {
|
|
|
31440
31530
|
* @returns 材质对象
|
|
31441
31531
|
*/
|
|
31442
31532
|
function createMaterial(type: any, options: any): Cesium.Material;
|
|
31533
|
+
/**
|
|
31534
|
+
* 是否存在指定材质
|
|
31535
|
+
* @param type - 材质类型
|
|
31536
|
+
* @param [property] - 是否属性材质
|
|
31537
|
+
* @returns 是否存在
|
|
31538
|
+
*/
|
|
31539
|
+
function hasMaterial(type: any, property?: boolean): boolean;
|
|
31443
31540
|
/**
|
|
31444
31541
|
* 将材质对象转为Josn简单对象,用于保存。
|
|
31445
31542
|
* @param material - 材质对象
|
|
@@ -31456,9 +31553,10 @@ declare namespace MeasureUtil {
|
|
|
31456
31553
|
/**
|
|
31457
31554
|
* 求坐标数组的空间距离
|
|
31458
31555
|
* @param positions - 坐标数组
|
|
31556
|
+
* @param [closure] - 是否闭合,如求面的周长时,传入true
|
|
31459
31557
|
* @returns 距离(单位:米)
|
|
31460
31558
|
*/
|
|
31461
|
-
function getDistance(positions: Cesium.Cartesian3[] | LngLatPoint[]): number;
|
|
31559
|
+
function getDistance(positions: Cesium.Cartesian3[] | LngLatPoint[], closure?: boolean): number;
|
|
31462
31560
|
/**
|
|
31463
31561
|
* 求坐标数组的 距离(地球表面弧度的),
|
|
31464
31562
|
* 比如北京到纽约(不能穿过球心,是贴地表的线的距离)
|
|
@@ -31934,6 +32032,13 @@ declare namespace PointUtil {
|
|
|
31934
32032
|
* @returns 笛卡尔三维坐标
|
|
31935
32033
|
*/
|
|
31936
32034
|
function getCurrentMousePosition(scene: Cesium.Scene, position: Cesium.Cartesian2, noPickEntity: any): Cesium.Cartesian3;
|
|
32035
|
+
/**
|
|
32036
|
+
* 获取 屏幕XY坐标 对应的 地形上的笛卡尔三维坐标(不拾取模型、矢量数据等)
|
|
32037
|
+
* @param scene - 三维地图场景对象,一般用map.scene或viewer.scene
|
|
32038
|
+
* @param position - 屏幕XY坐标(如鼠标所在位置)
|
|
32039
|
+
* @returns 笛卡尔三维坐标
|
|
32040
|
+
*/
|
|
32041
|
+
function getCurrentMouseTerrainPosition(scene: Cesium.Scene, position: Cesium.Cartesian2): Cesium.Cartesian3;
|
|
31937
32042
|
/**
|
|
31938
32043
|
* 求2点的中间点(贴地表)
|
|
31939
32044
|
* @param mpt1 - 点1坐标
|
|
@@ -32419,6 +32524,15 @@ declare namespace PolyUtil {
|
|
|
32419
32524
|
* @returns 经纬度坐标数组,示例:[ [123.123456,32.654321,198.7], [111.123456,22.654321,50.7] ]
|
|
32420
32525
|
*/
|
|
32421
32526
|
function convex(coordinates: any[][]): any[][];
|
|
32527
|
+
/**
|
|
32528
|
+
* 在 指定bbox区域 内生成 指定数量(概略) 的网格坐标点,
|
|
32529
|
+
* 目前常用于生成坐标点,测试数据量
|
|
32530
|
+
* @param bbox - 区域范围,如:[116.984788, 31.625909, 117.484068, 32.021504]
|
|
32531
|
+
* @param count - 数量(概略),返回坐标接近此数字
|
|
32532
|
+
* @param [alt = 0] - 高度值
|
|
32533
|
+
* @returns 坐标集合 ,如: {points:[LngLatPoint,LngLatPoint], size: 500 }
|
|
32534
|
+
*/
|
|
32535
|
+
function getGridPoints(bbox: number[], count: number, alt?: number): any;
|
|
32422
32536
|
}
|
|
32423
32537
|
|
|
32424
32538
|
/**
|
|
@@ -32725,6 +32839,7 @@ declare namespace Util {
|
|
|
32725
32839
|
* @param [options.style = {}] - Style样式,每种不同类型数据都有不同的样式,具体见各矢量数据的style参数。{@link GraphicType}
|
|
32726
32840
|
* @param [options.crs] - 原始数据的坐标系,如'EPSG:3857' (可以从 {@link http://epsg.io }查询)
|
|
32727
32841
|
* @param [options.hasEdit] - 当需要编辑时可以传true值,指定为Entity类型
|
|
32842
|
+
* @param [options.onPointTrans] - 坐标转换方法,可用于对每个坐标做额外转换处理
|
|
32728
32843
|
* @returns Graphic构造参数(用于创建{@link BaseGraphic})
|
|
32729
32844
|
*/
|
|
32730
32845
|
function featureToGraphic(feature: any, options?: {
|
|
@@ -32732,6 +32847,7 @@ declare namespace Util {
|
|
|
32732
32847
|
style?: any;
|
|
32733
32848
|
crs?: string;
|
|
32734
32849
|
hasEdit?: boolean;
|
|
32850
|
+
onPointTrans?: (...params: any[]) => any;
|
|
32735
32851
|
}): any;
|
|
32736
32852
|
/**
|
|
32737
32853
|
* 根据当前高度获取地图层级
|
|
@@ -32856,10 +32972,10 @@ declare namespace Util {
|
|
|
32856
32972
|
/**
|
|
32857
32973
|
* 执行alert弹窗(手动单击确定关闭窗口)
|
|
32858
32974
|
* @param msg - 弹窗内的内容
|
|
32859
|
-
* @param title - 弹窗的标题
|
|
32975
|
+
* @param [title] - 弹窗的标题
|
|
32860
32976
|
* @returns 无
|
|
32861
32977
|
*/
|
|
32862
|
-
function alert(msg: string, title
|
|
32978
|
+
function alert(msg: string, title?: string): void;
|
|
32863
32979
|
/**
|
|
32864
32980
|
* 执行msg提示窗(自动消失)
|
|
32865
32981
|
* @param msg - 弹窗内的内容
|