mars3d 3.4.10 → 3.4.11
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.css +2 -2
- package/dist/mars3d.d.ts +66 -19
- package/dist/mars3d.js +3 -3
- package/package.json +2 -2
package/dist/mars3d.css
CHANGED
package/dist/mars3d.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Mars3D三维可视化平台 mars3d
|
|
4
4
|
*
|
|
5
|
-
* 版本信息:v3.4.
|
|
6
|
-
* 编译日期:2022-10-
|
|
5
|
+
* 版本信息:v3.4.11
|
|
6
|
+
* 编译日期:2022-10-24 18:57:15
|
|
7
7
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
8
8
|
* 使用单位:免费公开版 ,2022-06-01
|
|
9
9
|
*/
|
|
@@ -982,6 +982,7 @@ declare enum Lang {
|
|
|
982
982
|
"_面下" = "[\"\u9762\u4E0B\",\"\u9762\u4E0B\",\"Down\"]",
|
|
983
983
|
"_米" = "[\"\u7C73\",\"\u7C73\",\"m\"]",
|
|
984
984
|
"_公里" = "[\"\u516C\u91CC\",\"\u516C\u88CF\",\"km\"]",
|
|
985
|
+
"_万米" = "[\"\u4E07\u7C73\",\"\u4E07\u7C73\",\"myriametre\"]",
|
|
985
986
|
"_海里" = "[\"\u6D77\u91CC\",\"\u6D77\u88CF\",\"mile\"]",
|
|
986
987
|
"_丈" = "[\"\u4E08\",\"\u4E08\",\"zhang\"]",
|
|
987
988
|
"_平方米" = "[\"\u5E73\u65B9\u7C73\",\"\u5E73\u65B9\u7C73\",\"m\u00B2\"]",
|
|
@@ -2112,6 +2113,7 @@ declare class OverviewMap extends BaseControl {
|
|
|
2112
2113
|
/**
|
|
2113
2114
|
* 时间线 控件
|
|
2114
2115
|
* @param [options] - 参数对象,包括以下:
|
|
2116
|
+
* @param [options.maxSpan = 1] - 刻度放大的最大刻度跨度,单位:秒
|
|
2115
2117
|
* @param [options.style] - 可以CSS样式,如:
|
|
2116
2118
|
* @param [options.style.top] - css定位top位置, 如 top: '10px'
|
|
2117
2119
|
* @param [options.style.bottom = 0] - css定位bottom位置
|
|
@@ -2125,6 +2127,7 @@ declare class OverviewMap extends BaseControl {
|
|
|
2125
2127
|
*/
|
|
2126
2128
|
declare class Timeline extends BaseControl {
|
|
2127
2129
|
constructor(options?: {
|
|
2130
|
+
maxSpan?: number;
|
|
2128
2131
|
style?: {
|
|
2129
2132
|
top?: string;
|
|
2130
2133
|
bottom?: string;
|
|
@@ -10344,6 +10347,8 @@ declare namespace PolylineVolumeEntity {
|
|
|
10344
10347
|
* @property [slices] - 边数,比如为4时是矩形管;星状管代表角的个数;
|
|
10345
10348
|
* @property [startAngle = 0] - 开始角度,取值范围0-360
|
|
10346
10349
|
* @property [endAngle = 360] - 结束角度,取值范围0-360,比如endAngle=180的空心管是拱形半圆管道
|
|
10350
|
+
* @property [vscale = 1] - 垂直缩放比例
|
|
10351
|
+
* @property [hscale = 1] - 水平缩放比例
|
|
10347
10352
|
* @property [fill = true] - 是否填充
|
|
10348
10353
|
* @property [color = "#FFFF00"] - 颜色
|
|
10349
10354
|
* @property [opacity = 1.0] - 透明度,取值范围:0.0-1.0
|
|
@@ -10371,6 +10376,8 @@ declare namespace PolylineVolumeEntity {
|
|
|
10371
10376
|
slices?: number;
|
|
10372
10377
|
startAngle?: number;
|
|
10373
10378
|
endAngle?: number;
|
|
10379
|
+
vscale?: number;
|
|
10380
|
+
hscale?: number;
|
|
10374
10381
|
fill?: boolean;
|
|
10375
10382
|
color?: string | Cesium.Color;
|
|
10376
10383
|
opacity?: number;
|
|
@@ -11942,7 +11949,7 @@ declare class AngleMeasure extends PolylineEntity {
|
|
|
11942
11949
|
readonly measured: any;
|
|
11943
11950
|
/**
|
|
11944
11951
|
* 更新测量结果的文本
|
|
11945
|
-
* @param unit - 计量单位,{@link MeasureUtil#formatDistance} 可选值:auto、m、km、mile、zhang 等。auto时根据距离值自动选用k或km
|
|
11952
|
+
* @param unit - 计量单位,{@link MeasureUtil#formatDistance} 可选值:auto、m、km、wm、mile、zhang 等。auto时根据距离值自动选用k或km
|
|
11946
11953
|
* @returns 无
|
|
11947
11954
|
*/
|
|
11948
11955
|
updateText(unit: string): void;
|
|
@@ -12278,7 +12285,7 @@ declare class HeightMeasure extends PolylineEntity {
|
|
|
12278
12285
|
readonly measured: any;
|
|
12279
12286
|
/**
|
|
12280
12287
|
* 更新测量结果的文本
|
|
12281
|
-
* @param unit - 计量单位,{@link MeasureUtil#formatDistance} 可选值:auto、m、km、mile、zhang 等。auto时根据距离值自动选用k或km
|
|
12288
|
+
* @param unit - 计量单位,{@link MeasureUtil#formatDistance} 可选值:auto、m、km、wm、mile、zhang 等。auto时根据距离值自动选用k或km
|
|
12282
12289
|
* @returns 无
|
|
12283
12290
|
*/
|
|
12284
12291
|
updateText(unit: string): void;
|
|
@@ -12344,7 +12351,7 @@ declare class HeightTriangleMeasure extends HeightMeasure {
|
|
|
12344
12351
|
});
|
|
12345
12352
|
/**
|
|
12346
12353
|
* 更新测量结果的文本
|
|
12347
|
-
* @param unit - 计量单位,{@link MeasureUtil#formatDistance} 可选值:auto、m、km、mile、zhang 等。auto时根据距离值自动选用k或km
|
|
12354
|
+
* @param unit - 计量单位,{@link MeasureUtil#formatDistance} 可选值:auto、m、km、wm、mile、zhang 等。auto时根据距离值自动选用k或km
|
|
12348
12355
|
* @returns 无
|
|
12349
12356
|
*/
|
|
12350
12357
|
updateText(unit: string): void;
|
|
@@ -12484,6 +12491,7 @@ declare class SectionMeasure extends DistanceMeasure {
|
|
|
12484
12491
|
* @param [options.labelHeight] - 各边界点高度结果文本的样式
|
|
12485
12492
|
* @param [options.decimal = 2] - 显示的 数值 文本中保留的小数位
|
|
12486
12493
|
* @param [options.has3dtiles] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
12494
|
+
* @param [options.exact = true] - 是否进行精确计算, 传false时是否快速概略计算方式,该方式计算精度较低,但计算速度快,仅能计算在当前视域内坐标的高度
|
|
12487
12495
|
* @param [options.id = createGuid()] - 矢量数据id标识
|
|
12488
12496
|
* @param [options.name = ''] - 矢量数据名称
|
|
12489
12497
|
* @param [options.show = true] - 矢量数据是否显示
|
|
@@ -12507,6 +12515,7 @@ declare class VolumeMeasure extends AreaMeasure {
|
|
|
12507
12515
|
labelHeight?: LabelEntity.StyleOptions | any;
|
|
12508
12516
|
decimal?: number;
|
|
12509
12517
|
has3dtiles?: boolean;
|
|
12518
|
+
exact?: boolean;
|
|
12510
12519
|
id?: string | number;
|
|
12511
12520
|
name?: string;
|
|
12512
12521
|
show?: boolean;
|
|
@@ -15395,6 +15404,8 @@ declare namespace PolylineVolumePrimitive {
|
|
|
15395
15404
|
* @property [slices] - 边数,比如为4时是矩形管;星状管代表角的个数;
|
|
15396
15405
|
* @property [startAngle = 0] - 开始角度,取值范围0-360
|
|
15397
15406
|
* @property [endAngle = 360] - 结束角度,取值范围0-360,比如endAngle=180的空心管是拱形半圆管道
|
|
15407
|
+
* @property [vscale = 1] - 垂直缩放比例
|
|
15408
|
+
* @property [hscale = 1] - 水平缩放比例
|
|
15398
15409
|
* @property [materialType = "Color"] - 填充材质类型 ,可选项:{@link MaterialType}
|
|
15399
15410
|
* @property [materialOptions] - materialType对应的{@link MaterialType}中材质参数
|
|
15400
15411
|
* @property [material] - 指定用于填充的材质,指定material后`materialType`和`materialOptions`将被覆盖。
|
|
@@ -15424,6 +15435,8 @@ declare namespace PolylineVolumePrimitive {
|
|
|
15424
15435
|
slices?: number;
|
|
15425
15436
|
startAngle?: number;
|
|
15426
15437
|
endAngle?: number;
|
|
15438
|
+
vscale?: number;
|
|
15439
|
+
hscale?: number;
|
|
15427
15440
|
materialType?: string;
|
|
15428
15441
|
materialOptions?: any;
|
|
15429
15442
|
material?: Cesium.Material;
|
|
@@ -19074,10 +19087,14 @@ declare class TilesetLayer extends BaseGraphicLayer {
|
|
|
19074
19087
|
* 模型当前中心点坐标
|
|
19075
19088
|
*/
|
|
19076
19089
|
center: LngLatPoint;
|
|
19090
|
+
/**
|
|
19091
|
+
* 调整修改模型高度, 同alt
|
|
19092
|
+
*/
|
|
19093
|
+
height: number;
|
|
19077
19094
|
/**
|
|
19078
19095
|
* 调整修改模型高度
|
|
19079
19096
|
*/
|
|
19080
|
-
|
|
19097
|
+
alt: number;
|
|
19081
19098
|
/**
|
|
19082
19099
|
* 模型的边界球体。
|
|
19083
19100
|
*/
|
|
@@ -22579,7 +22596,6 @@ declare class WmsLayer extends BaseTileLayer {
|
|
|
22579
22596
|
* @param [options.hasAlphaChannel = true] - 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。
|
|
22580
22597
|
* @param [options.tileWidth = 256] - 图像图块的像素宽度。
|
|
22581
22598
|
* @param [options.tileHeight = 256] - 图像图块的像素高度。
|
|
22582
|
-
* @param [options.customTags] - 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。
|
|
22583
22599
|
* @param [options.id = createGuid()] - 图层id标识
|
|
22584
22600
|
* @param [options.pid = -1] - 图层父级的id,一般图层管理中使用
|
|
22585
22601
|
* @param [options.name = ''] - 图层名称
|
|
@@ -22649,7 +22665,6 @@ declare class WmtsLayer extends BaseTileLayer {
|
|
|
22649
22665
|
hasAlphaChannel?: boolean;
|
|
22650
22666
|
tileWidth?: number;
|
|
22651
22667
|
tileHeight?: number;
|
|
22652
|
-
customTags?: any;
|
|
22653
22668
|
id?: string | number;
|
|
22654
22669
|
pid?: string | number;
|
|
22655
22670
|
name?: string;
|
|
@@ -23027,6 +23042,12 @@ declare class MouseEvent {
|
|
|
23027
23042
|
* 是否不拾取数据
|
|
23028
23043
|
*/
|
|
23029
23044
|
noPickEntity: boolean;
|
|
23045
|
+
/**
|
|
23046
|
+
* 更新图层参数
|
|
23047
|
+
* @param options - 与类的构造方法参数相同
|
|
23048
|
+
* @returns 当前对象本身,可以链式调用
|
|
23049
|
+
*/
|
|
23050
|
+
setOptions(options: any): MouseEvent;
|
|
23030
23051
|
/**
|
|
23031
23052
|
* 清除鼠标移动的clearTimeout延迟
|
|
23032
23053
|
* @returns 无
|
|
@@ -26075,6 +26096,7 @@ declare class EchartsLayer extends BaseLayer {
|
|
|
26075
26096
|
* @param [options.style.arc = false] - 是否显示曲面热力图
|
|
26076
26097
|
* @param [options.style.arcRadiusScale = 1.5] - 曲面热力图时,radius扩大比例
|
|
26077
26098
|
* @param [options.style.arcBlurScale = 1.5] - 曲面热力图时,blur扩大比例
|
|
26099
|
+
* @param [options.style.arcDirection = 1] - 曲面热力图时,凹陷的方向,1向上,-1向下,0双面
|
|
26078
26100
|
* @param [options.style.height = 0] - 高度,相对于椭球面的高度。
|
|
26079
26101
|
* @param [options.style.diffHeight] - 曲面的起伏差值高,默认根据数据范围的比例自动计算。
|
|
26080
26102
|
* @param [options.style.多个参数] - rectangle矩形支持的样式
|
|
@@ -26114,10 +26136,11 @@ declare class HeatLayer extends BaseLayer {
|
|
|
26114
26136
|
gradient?: any;
|
|
26115
26137
|
};
|
|
26116
26138
|
style?: {
|
|
26117
|
-
opacity?:
|
|
26139
|
+
opacity?: number;
|
|
26118
26140
|
arc?: boolean;
|
|
26119
|
-
arcRadiusScale?:
|
|
26120
|
-
arcBlurScale?:
|
|
26141
|
+
arcRadiusScale?: number;
|
|
26142
|
+
arcBlurScale?: number;
|
|
26143
|
+
arcDirection?: number;
|
|
26121
26144
|
height?: number;
|
|
26122
26145
|
diffHeight?: number;
|
|
26123
26146
|
多个参数?: RectanglePrimitive.StyleOptions | any;
|
|
@@ -29547,7 +29570,7 @@ declare class Measure extends BaseThing {
|
|
|
29547
29570
|
* 测量 空间长度
|
|
29548
29571
|
* @param [options] - 控制参数
|
|
29549
29572
|
* @param [options.style] - 路线的样式
|
|
29550
|
-
* @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatDistance}可选值:auto、m、km、mile、zhang
|
|
29573
|
+
* @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatDistance}可选值:auto、m、km、wm、mile、zhang 等。auto时根据距离值自动选用k或km
|
|
29551
29574
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
29552
29575
|
* @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值
|
|
29553
29576
|
* @param [options.showAddText = true] - 是否显示每一段的增加部分距离,如(+10.1km)
|
|
@@ -29566,12 +29589,13 @@ declare class Measure extends BaseThing {
|
|
|
29566
29589
|
* 测量 贴地长度
|
|
29567
29590
|
* @param [options] - 控制参数
|
|
29568
29591
|
* @param [options.style] - 路线的样式
|
|
29569
|
-
* @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatDistance}可选值:auto、m、km、mile、zhang
|
|
29592
|
+
* @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatDistance}可选值:auto、m、km、wm、mile、zhang 等。auto时根据距离值自动选用k或km
|
|
29570
29593
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
29571
29594
|
* @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值
|
|
29572
29595
|
* @param [options.showAddText = true] - 是否显示每一段的增加部分距离,如(+10.1km)
|
|
29573
29596
|
* @param [options.splitNum = 100] - 插值数,将线段分割的个数
|
|
29574
29597
|
* @param [options.has3dtiles = auto] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
29598
|
+
* @param [options.exact = true] - 是否进行精确计算, 传false时是否快速概略计算方式,该方式计算精度较低,但计算速度快,仅能计算在当前视域内坐标的高度
|
|
29575
29599
|
* @param [options.decimal = 2] - 显示的文本中保留的小数位
|
|
29576
29600
|
* @returns 绘制创建完成的Promise,返回 贴地长度测量控制类 对象
|
|
29577
29601
|
*/
|
|
@@ -29583,17 +29607,19 @@ declare class Measure extends BaseThing {
|
|
|
29583
29607
|
showAddText?: boolean;
|
|
29584
29608
|
splitNum?: number;
|
|
29585
29609
|
has3dtiles?: boolean;
|
|
29610
|
+
exact?: boolean;
|
|
29586
29611
|
decimal?: number;
|
|
29587
29612
|
}): Promise<DistanceSurfaceMeasure | any>;
|
|
29588
29613
|
/**
|
|
29589
29614
|
* 剖面分析,测量线插值点的高程数据
|
|
29590
29615
|
* @param [options] - 控制参数
|
|
29591
29616
|
* @param [options.style] - 路线的样式
|
|
29592
|
-
* @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatDistance}可选值:auto、m、km、mile、zhang
|
|
29617
|
+
* @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatDistance}可选值:auto、m、km、wm、mile、zhang 等。auto时根据距离值自动选用k或km
|
|
29593
29618
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
29594
29619
|
* @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值
|
|
29595
29620
|
* @param [options.splitNum = 200] - 插值数,将线段分割的个数
|
|
29596
29621
|
* @param [options.has3dtiles = auto] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
29622
|
+
* @param [options.exact = true] - 是否进行精确计算, 传false时是否快速概略计算方式,该方式计算精度较低,但计算速度快,仅能计算在当前视域内坐标的高度
|
|
29597
29623
|
* @param [options.decimal = 2] - 显示的文本中保留的小数位
|
|
29598
29624
|
* @returns 绘制创建完成的Promise,返回 剖面分析控制类矢量对象
|
|
29599
29625
|
*/
|
|
@@ -29604,6 +29630,7 @@ declare class Measure extends BaseThing {
|
|
|
29604
29630
|
addHeight?: number;
|
|
29605
29631
|
splitNum?: number;
|
|
29606
29632
|
has3dtiles?: boolean;
|
|
29633
|
+
exact?: boolean;
|
|
29607
29634
|
decimal?: number;
|
|
29608
29635
|
}): Promise<SectionMeasure | any>;
|
|
29609
29636
|
/**
|
|
@@ -29643,6 +29670,7 @@ declare class Measure extends BaseThing {
|
|
|
29643
29670
|
* @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatArea}可选值:auto、m、km、mu、ha 。auto时根据面积值自动选用k或km
|
|
29644
29671
|
* @param [options.splitNum = 10] - 插值数,将面分割的网格数
|
|
29645
29672
|
* @param [options.has3dtiles] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
29673
|
+
* @param [options.exact = true] - 是否进行精确计算, 传false时是否快速概略计算方式,该方式计算精度较低,但计算速度快,仅能计算在当前视域内坐标的高度
|
|
29646
29674
|
* @param [options.minHeight] - 可以指定最低高度(单位:米)
|
|
29647
29675
|
* @param [options.maxHeight] - 可以指定最高高度(单位:米)
|
|
29648
29676
|
* @param [options.height] - 可以指定基准面高度(单位:米),默认是绘制后的最低高度值
|
|
@@ -29659,6 +29687,7 @@ declare class Measure extends BaseThing {
|
|
|
29659
29687
|
unit?: string;
|
|
29660
29688
|
splitNum?: number;
|
|
29661
29689
|
has3dtiles?: boolean;
|
|
29690
|
+
exact?: boolean;
|
|
29662
29691
|
minHeight?: number;
|
|
29663
29692
|
maxHeight?: number;
|
|
29664
29693
|
height?: number;
|
|
@@ -29673,7 +29702,7 @@ declare class Measure extends BaseThing {
|
|
|
29673
29702
|
* 高度测量
|
|
29674
29703
|
* @param [options] - 控制参数
|
|
29675
29704
|
* @param [options.style] - 路线的样式
|
|
29676
|
-
* @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatDistance}可选值:auto、m、km、mile、zhang
|
|
29705
|
+
* @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatDistance}可选值:auto、m、km、wm、mile、zhang 等。auto时根据距离值自动选用k或km
|
|
29677
29706
|
* @param [options.decimal = 2] - 显示的文本中保留的小数位
|
|
29678
29707
|
* @returns 绘制创建完成的Promise,返回 高度测量 对象
|
|
29679
29708
|
*/
|
|
@@ -29687,7 +29716,7 @@ declare class Measure extends BaseThing {
|
|
|
29687
29716
|
* 包括水平距离、空间距离、高度差。
|
|
29688
29717
|
* @param [options] - 控制参数
|
|
29689
29718
|
* @param [options.style] - 路线的样式
|
|
29690
|
-
* @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatDistance}可选值:auto、m、km、mile、zhang
|
|
29719
|
+
* @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatDistance}可选值:auto、m、km、wm、mile、zhang 等。auto时根据距离值自动选用k或km
|
|
29691
29720
|
* @param [options.decimal = 2] - 显示的文本中保留的小数位
|
|
29692
29721
|
* @returns 绘制创建完成的Promise,返回 三角高度测量控制类 对象
|
|
29693
29722
|
*/
|
|
@@ -29741,7 +29770,7 @@ declare class Measure extends BaseThing {
|
|
|
29741
29770
|
clear(): void;
|
|
29742
29771
|
/**
|
|
29743
29772
|
* 更新量测结果的单位
|
|
29744
|
-
* @param unit - 计量单位,{@link MeasureUtil#formatDistance}{@link MeasureUtil#formatArea} 可选值:auto、m、km、mile、zhang
|
|
29773
|
+
* @param unit - 计量单位,{@link MeasureUtil#formatDistance}{@link MeasureUtil#formatArea} 可选值:auto、m、km、wm、mile、zhang 等等。auto时根据距离值自动选用k或km
|
|
29745
29774
|
* @returns 无
|
|
29746
29775
|
*/
|
|
29747
29776
|
updateUnit(unit: string): void;
|
|
@@ -30603,6 +30632,16 @@ declare class FloodByMaterial extends TerrainEditBase {
|
|
|
30603
30632
|
* @returns 无
|
|
30604
30633
|
*/
|
|
30605
30634
|
clear(): void;
|
|
30635
|
+
/**
|
|
30636
|
+
* 添加单个区域
|
|
30637
|
+
* @param positions - 坐标位置数组
|
|
30638
|
+
* @param [options = {}] - 控制的参数
|
|
30639
|
+
* @param [options.diffHeight] - 开挖深度(地形开挖时,可以控制单个区域的开挖深度)
|
|
30640
|
+
* @returns 添加区域的记录对象
|
|
30641
|
+
*/
|
|
30642
|
+
addArea(positions: string[] | any[][] | LngLatPoint[] | Cesium.Cartesian3[], options?: {
|
|
30643
|
+
diffHeight?: any;
|
|
30644
|
+
}): any;
|
|
30606
30645
|
}
|
|
30607
30646
|
|
|
30608
30647
|
declare namespace Slope {
|
|
@@ -32476,6 +32515,7 @@ declare namespace MeasureUtil {
|
|
|
32476
32515
|
* @param options.scene - 三维地图场景对象,一般用map.scene或viewer.scene
|
|
32477
32516
|
* @param [options.splitNum = 100] - 插值数,将线段分割的个数
|
|
32478
32517
|
* @param [options.has3dtiles = auto] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
32518
|
+
* @param [options.exact = true] - 是否进行精确计算, 传false时是否快速概略计算方式,该方式计算精度较低,但计算速度快,仅能计算在当前视域内坐标的高度
|
|
32479
32519
|
* @param options.endItem - 异步计算贴地距离中,每计算完成2个点之间的距离后 的回调方法
|
|
32480
32520
|
* @param options.end - 异步计算完成的 回调方法
|
|
32481
32521
|
* @returns 异步计算完成的Promise
|
|
@@ -32484,6 +32524,7 @@ declare namespace MeasureUtil {
|
|
|
32484
32524
|
scene: Cesium.Scene;
|
|
32485
32525
|
splitNum?: number;
|
|
32486
32526
|
has3dtiles?: boolean;
|
|
32527
|
+
exact?: boolean;
|
|
32487
32528
|
endItem: getClampDistance_endItem;
|
|
32488
32529
|
end: getClampDistance_endItem;
|
|
32489
32530
|
}): Promise<any>;
|
|
@@ -32514,7 +32555,7 @@ declare namespace MeasureUtil {
|
|
|
32514
32555
|
* @param options.scene - 三维地图场景对象,一般用map.scene或viewer.scene
|
|
32515
32556
|
* @param [options.splitNum = 10] - 插值数,将面分割的网格数
|
|
32516
32557
|
* @param [options.has3dtiles = auto] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
32517
|
-
* @param [options.exact] -
|
|
32558
|
+
* @param [options.exact = true] - 是否进行精确计算, 传false时是否快速概略计算方式,该方式计算精度较低,但计算速度快,仅能计算在当前视域内坐标的高度
|
|
32518
32559
|
* @returns 异步计算完成的Promise
|
|
32519
32560
|
*/
|
|
32520
32561
|
function getClampArea(positions: Cesium.Cartesian3[] | LngLatPoint[], options: {
|
|
@@ -32535,7 +32576,7 @@ declare namespace MeasureUtil {
|
|
|
32535
32576
|
* 格式化显示距离值, 可指定单位
|
|
32536
32577
|
* @param val - 距离值,米
|
|
32537
32578
|
* @param [options] - 参数:
|
|
32538
|
-
* @param [options.unit = 'auto'] - 计量单位, 可选值:auto、m、km、mile、zhang
|
|
32579
|
+
* @param [options.unit = 'auto'] - 计量单位, 可选值:auto、m、km、wm、mile、zhang 等。auto时根据距离值自动选用k或km
|
|
32539
32580
|
* @param [options.lang = 0] - 使用的语言
|
|
32540
32581
|
* @param [options.decimal = 2] - 保留的小数位
|
|
32541
32582
|
* @returns 带单位的格式化距离值字符串,如:20.17 米
|
|
@@ -33268,6 +33309,7 @@ declare namespace PolyUtil {
|
|
|
33268
33309
|
* @param [options.minDistance] - 插值最小间隔(单位:米),优先级高于splitNum
|
|
33269
33310
|
* @param [options.has3dtiles = auto] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
33270
33311
|
* @param [options.objectsToExclude] - 贴模型分析时,排除的不进行贴模型计算的模型对象,可以是: primitives, entities, 或 3D Tiles features
|
|
33312
|
+
* @param [options.exact = false] - 是否进行精确计算, 传false时是否快速概略计算方式,该方式计算精度较低,但计算速度快,仅能计算在当前视域内坐标的高度
|
|
33271
33313
|
* @param [options.offset = 0] - 可以按需增加偏移高度(单位:米),便于可视
|
|
33272
33314
|
* @returns 异步计算完成的Promise, 等价于callback
|
|
33273
33315
|
*/
|
|
@@ -33278,6 +33320,7 @@ declare namespace PolyUtil {
|
|
|
33278
33320
|
minDistance?: number;
|
|
33279
33321
|
has3dtiles?: boolean;
|
|
33280
33322
|
objectsToExclude?: any;
|
|
33323
|
+
exact?: boolean;
|
|
33281
33324
|
offset?: number;
|
|
33282
33325
|
}): Promise<any>;
|
|
33283
33326
|
/**
|
|
@@ -33287,6 +33330,7 @@ declare namespace PolyUtil {
|
|
|
33287
33330
|
* @param options.positions - 坐标数组
|
|
33288
33331
|
* @param [options.has3dtiles = auto] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
33289
33332
|
* @param [options.objectsToExclude] - 贴模型分析时,排除的不进行贴模型计算的模型对象,可以是: primitives, entities, 或 3D Tiles features
|
|
33333
|
+
* @param [options.exact = false] - 是否进行精确计算, 传false时是否快速概略计算方式,该方式计算精度较低,但计算速度快,仅能计算在当前视域内坐标的高度
|
|
33290
33334
|
* @param [options.offset = 0] - 可以按需增加偏移高度(单位:米),便于可视
|
|
33291
33335
|
* @returns 异步计算完成的Promise, 等价于callback
|
|
33292
33336
|
*/
|
|
@@ -33295,6 +33339,7 @@ declare namespace PolyUtil {
|
|
|
33295
33339
|
positions: Cesium.Cartesian3[] | LngLatPoint[];
|
|
33296
33340
|
has3dtiles?: boolean;
|
|
33297
33341
|
objectsToExclude?: any;
|
|
33342
|
+
exact?: boolean;
|
|
33298
33343
|
offset?: number;
|
|
33299
33344
|
}): Promise<any>;
|
|
33300
33345
|
/**
|
|
@@ -33318,6 +33363,7 @@ declare namespace PolyUtil {
|
|
|
33318
33363
|
* @param [options.minDistance] - 插值最小间隔(单位:米),优先级高于splitNum
|
|
33319
33364
|
* @param [options.has3dtiles = auto] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
33320
33365
|
* @param [options.objectsToExclude] - 贴模型分析时,排除的不进行贴模型计算的模型对象,可以是: primitives, entities, 或 3D Tiles features
|
|
33366
|
+
* @param [options.exact = false] - 是否进行精确计算, 传false时是否快速概略计算方式,该方式计算精度较低,但计算速度快,仅能计算在当前视域内坐标的高度
|
|
33321
33367
|
* @param [options.offset = 0] - 可以按需增加偏移高度(单位:米),便于可视
|
|
33322
33368
|
* @param options.endItem - 异步计算高度完成后 的回调方法
|
|
33323
33369
|
* @param options.end - 异步计算高度完成后 的回调方法
|
|
@@ -33330,6 +33376,7 @@ declare namespace PolyUtil {
|
|
|
33330
33376
|
minDistance?: number;
|
|
33331
33377
|
has3dtiles?: boolean;
|
|
33332
33378
|
objectsToExclude?: any;
|
|
33379
|
+
exact?: boolean;
|
|
33333
33380
|
offset?: number;
|
|
33334
33381
|
endItem: computeStepSurfaceLine_endItem;
|
|
33335
33382
|
end: computeStepSurfaceLine_end;
|