mars3d 3.4.9 → 3.4.10
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 +48 -33
- 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.10
|
|
6
|
+
* 编译日期:2022-10-17 17:25:48
|
|
7
7
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
8
8
|
* 使用单位:免费公开版 ,2022-06-01
|
|
9
9
|
*/
|
|
@@ -3882,7 +3882,7 @@ declare class BaseCombine extends BasePrimitive {
|
|
|
3882
3882
|
noAlt?: boolean;
|
|
3883
3883
|
}): any;
|
|
3884
3884
|
/**
|
|
3885
|
-
*
|
|
3885
|
+
* 更新颜色, 只对纯色材质有效,其他材质无法单独更新,需要setStle方法调用(全部更新渲染)。
|
|
3886
3886
|
* @param style - 样式信息
|
|
3887
3887
|
* @param [style.color = "#3388ff"] - 颜色
|
|
3888
3888
|
* @param [style.opacity = 1.0] - 透明度,取值范围:0.0-1.0
|
|
@@ -4416,6 +4416,7 @@ declare namespace FlatBillboard {
|
|
|
4416
4416
|
* @param [options.style] - 所有图标的公共样式信息
|
|
4417
4417
|
* @param [options.scale3d = 0.8] - 二维和三维模式切换后图标的缩放比例。因为二三维模式使用不同渲染方式,可能存在大小偏差,可以该参数调优。
|
|
4418
4418
|
* @param [options.distanceDisplayCondition = new Cesium.DistanceDisplayCondition(0, 5000000)] - 指定数据将显示在与摄像机的多大距离
|
|
4419
|
+
* @param [options.translucent = false] - 当true时,将启用alpha混合。
|
|
4419
4420
|
* @param [options.id = createGuid()] - 矢量数据id标识
|
|
4420
4421
|
* @param [options.name = ''] - 矢量数据名称
|
|
4421
4422
|
* @param [options.show = true] - 矢量数据是否显示
|
|
@@ -4432,6 +4433,7 @@ declare class FlatBillboard extends BaseCombine {
|
|
|
4432
4433
|
style?: FlatBillboard.StyleOptions | any;
|
|
4433
4434
|
scale3d?: number;
|
|
4434
4435
|
distanceDisplayCondition?: Cesium.DistanceDisplayCondition;
|
|
4436
|
+
translucent?: boolean;
|
|
4435
4437
|
id?: string | number;
|
|
4436
4438
|
name?: string;
|
|
4437
4439
|
show?: boolean;
|
|
@@ -10299,7 +10301,7 @@ declare namespace PolylineEntity {
|
|
|
10299
10301
|
*/
|
|
10300
10302
|
declare class PolylineEntity extends BasePolyEntity {
|
|
10301
10303
|
constructor(options: {
|
|
10302
|
-
positions: LngLatPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty | any
|
|
10304
|
+
positions: LngLatPoint[] | Cesium.Cartesian3[] | any[] | Cesium.PositionProperty | any;
|
|
10303
10305
|
style: PolylineEntity.StyleOptions | any;
|
|
10304
10306
|
attr?: any;
|
|
10305
10307
|
availability?: Cesium.TimeIntervalCollection;
|
|
@@ -16300,7 +16302,7 @@ declare class BaseGraphicLayer extends BaseLayer {
|
|
|
16300
16302
|
* @param options.extent.xmax - 最大经度值, -180 至 180
|
|
16301
16303
|
* @param options.extent.ymin - 最小纬度值, -90 至 90
|
|
16302
16304
|
* @param options.extent.ymax - 最大纬度值, -90 至 90
|
|
16303
|
-
* @param [options.extent.height
|
|
16305
|
+
* @param [options.extent.height] - 矩形高度值, 默认取地形高度值
|
|
16304
16306
|
* @param [options.flyTo] - 加载完成数据后是否自动飞行定位到数据所在的区域。
|
|
16305
16307
|
* @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡
|
|
16306
16308
|
*/
|
|
@@ -16415,11 +16417,12 @@ declare class BaseLayer extends BaseClass {
|
|
|
16415
16417
|
* @param [options = {}] - 参数对象:
|
|
16416
16418
|
* @param [options.radius] - 点状数据时,相机距离目标点的距离(单位:米)
|
|
16417
16419
|
* @param [options.scale = 1.2] - 线面数据时,缩放比例,可以控制视角比矩形略大一些,这样效果更友好。
|
|
16418
|
-
* @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
|
|
16419
|
-
* @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
|
|
16420
16420
|
* @param [options.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0至360
|
|
16421
16421
|
* @param [options.pitch] - 俯仰角度值,绕纬度线旋转角度, -90至90
|
|
16422
16422
|
* @param [options.roll] - 翻滚角度值,绕经度线旋转角度, -90至90
|
|
16423
|
+
* @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
|
|
16424
|
+
* @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
|
|
16425
|
+
* @param [extent.height] - 矩形区域时的高度值, 默认取地形高度值
|
|
16423
16426
|
* @param [options.duration] - 飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。
|
|
16424
16427
|
* @param [options.complete] - 飞行完成后要执行的函数。
|
|
16425
16428
|
* @param [options.cancel] - 飞行取消时要执行的函数。
|
|
@@ -16435,11 +16438,11 @@ declare class BaseLayer extends BaseClass {
|
|
|
16435
16438
|
flyTo(options?: {
|
|
16436
16439
|
radius?: number;
|
|
16437
16440
|
scale?: number;
|
|
16438
|
-
minHeight?: number;
|
|
16439
|
-
maxHeight?: number;
|
|
16440
16441
|
heading?: number;
|
|
16441
16442
|
pitch?: number;
|
|
16442
16443
|
roll?: number;
|
|
16444
|
+
minHeight?: number;
|
|
16445
|
+
maxHeight?: number;
|
|
16443
16446
|
duration?: number;
|
|
16444
16447
|
complete?: Cesium.Camera.FlightCompleteCallback;
|
|
16445
16448
|
cancel?: Cesium.Camera.FlightCancelledCallback;
|
|
@@ -16645,13 +16648,13 @@ declare class CzmGeoJsonLayer extends BaseGraphicLayer {
|
|
|
16645
16648
|
* @param [newOptions.url] - geojson文件或服务url地址
|
|
16646
16649
|
* @param [newOptions.data] - geojson格式规范数据对象,与url二选一即可。
|
|
16647
16650
|
* @param [newOptions.类参数] - 包含当前类支持的所有参数
|
|
16648
|
-
* @returns
|
|
16651
|
+
* @returns 加载完成后的回调方法的Promise
|
|
16649
16652
|
*/
|
|
16650
16653
|
load(newOptions?: {
|
|
16651
16654
|
url?: string;
|
|
16652
16655
|
data?: any;
|
|
16653
16656
|
类参数?: any;
|
|
16654
|
-
}):
|
|
16657
|
+
}): Promise<any>;
|
|
16655
16658
|
/**
|
|
16656
16659
|
* 加载新数据 或 刷新数据
|
|
16657
16660
|
* @param symbol - 设置新的symbol 矢量数据样式. {@link GraphicType}
|
|
@@ -16690,16 +16693,24 @@ declare class CzmGeoJsonLayer extends BaseGraphicLayer {
|
|
|
16690
16693
|
* @returns 当前对象本身,可以链式调用
|
|
16691
16694
|
*/
|
|
16692
16695
|
clear(): CzmGeoJsonLayer;
|
|
16696
|
+
/**
|
|
16697
|
+
* 追加数据,处理提供的url或数据对象,而不清除任何现有数据。
|
|
16698
|
+
* @param diejiaData - 要处理的url或对象。
|
|
16699
|
+
* @param [options] - 控制参数
|
|
16700
|
+
* @returns 加载完成后的回调方法的Promise
|
|
16701
|
+
*/
|
|
16702
|
+
process(diejiaData: Resource | string | any, options?: any): Promise<any>;
|
|
16693
16703
|
/**
|
|
16694
16704
|
* 飞行定位至图层数据所在的视角
|
|
16695
16705
|
* @param [options = {}] - 参数对象:
|
|
16696
16706
|
* @param [options.radius] - 点状数据时,相机距离目标点的距离(单位:米)
|
|
16697
16707
|
* @param [options.scale = 1.2] - 线面数据时,缩放比例,可以控制视角比矩形略大一些,这样效果更友好。
|
|
16698
|
-
* @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
|
|
16699
|
-
* @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
|
|
16700
16708
|
* @param [options.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0至360
|
|
16701
16709
|
* @param [options.pitch] - 俯仰角度值,绕纬度线旋转角度, -90至90
|
|
16702
16710
|
* @param [options.roll] - 翻滚角度值,绕经度线旋转角度, -90至90
|
|
16711
|
+
* @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
|
|
16712
|
+
* @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
|
|
16713
|
+
* @param [extent.height] - 矩形区域时的高度值, 默认取地形高度值
|
|
16703
16714
|
* @param [options.duration] - 飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。
|
|
16704
16715
|
* @param [options.complete] - 飞行完成后要执行的函数。
|
|
16705
16716
|
* @param [options.cancel] - 飞行取消时要执行的函数。
|
|
@@ -16715,11 +16726,11 @@ declare class CzmGeoJsonLayer extends BaseGraphicLayer {
|
|
|
16715
16726
|
flyTo(options?: {
|
|
16716
16727
|
radius?: number;
|
|
16717
16728
|
scale?: number;
|
|
16718
|
-
minHeight?: number;
|
|
16719
|
-
maxHeight?: number;
|
|
16720
16729
|
heading?: number;
|
|
16721
16730
|
pitch?: number;
|
|
16722
16731
|
roll?: number;
|
|
16732
|
+
minHeight?: number;
|
|
16733
|
+
maxHeight?: number;
|
|
16723
16734
|
duration?: number;
|
|
16724
16735
|
complete?: Cesium.Camera.FlightCompleteCallback;
|
|
16725
16736
|
cancel?: Cesium.Camera.FlightCancelledCallback;
|
|
@@ -19232,11 +19243,12 @@ declare class TilesetLayer extends BaseGraphicLayer {
|
|
|
19232
19243
|
* @param [options = {}] - 参数对象:
|
|
19233
19244
|
* @param [options.radius] - 点状数据时,相机距离目标点的距离(单位:米)
|
|
19234
19245
|
* @param [options.scale = 1.2] - 线面数据时,缩放比例,可以控制视角比矩形略大一些,这样效果更友好。
|
|
19235
|
-
* @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
|
|
19236
|
-
* @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
|
|
19237
19246
|
* @param [options.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0至360
|
|
19238
19247
|
* @param [options.pitch] - 俯仰角度值,绕纬度线旋转角度, -90至90
|
|
19239
19248
|
* @param [options.roll] - 翻滚角度值,绕经度线旋转角度, -90至90
|
|
19249
|
+
* @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
|
|
19250
|
+
* @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
|
|
19251
|
+
* @param [extent.height] - 矩形区域时的高度值, 默认取地形高度值
|
|
19240
19252
|
* @param [options.duration] - 飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。
|
|
19241
19253
|
* @param [options.complete] - 飞行完成后要执行的函数。
|
|
19242
19254
|
* @param [options.cancel] - 飞行取消时要执行的函数。
|
|
@@ -19252,11 +19264,11 @@ declare class TilesetLayer extends BaseGraphicLayer {
|
|
|
19252
19264
|
flyTo(options?: {
|
|
19253
19265
|
radius?: number;
|
|
19254
19266
|
scale?: number;
|
|
19255
|
-
minHeight?: number;
|
|
19256
|
-
maxHeight?: number;
|
|
19257
19267
|
heading?: number;
|
|
19258
19268
|
pitch?: number;
|
|
19259
19269
|
roll?: number;
|
|
19270
|
+
minHeight?: number;
|
|
19271
|
+
maxHeight?: number;
|
|
19260
19272
|
duration?: number;
|
|
19261
19273
|
complete?: Cesium.Camera.FlightCompleteCallback;
|
|
19262
19274
|
cancel?: Cesium.Camera.FlightCancelledCallback;
|
|
@@ -20506,11 +20518,12 @@ declare class BaseTileLayer extends BaseLayer {
|
|
|
20506
20518
|
* @param [options = {}] - 参数对象:
|
|
20507
20519
|
* @param [options.radius] - 点状数据时,相机距离目标点的距离(单位:米)
|
|
20508
20520
|
* @param [options.scale = 1.2] - 线面数据时,缩放比例,可以控制视角比矩形略大一些,这样效果更友好。
|
|
20509
|
-
* @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
|
|
20510
|
-
* @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
|
|
20511
20521
|
* @param [options.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0至360
|
|
20512
20522
|
* @param [options.pitch] - 俯仰角度值,绕纬度线旋转角度, -90至90
|
|
20513
20523
|
* @param [options.roll] - 翻滚角度值,绕经度线旋转角度, -90至90
|
|
20524
|
+
* @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
|
|
20525
|
+
* @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
|
|
20526
|
+
* @param [extent.height] - 矩形区域时的高度值, 默认取地形高度值
|
|
20514
20527
|
* @param [options.duration] - 飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。
|
|
20515
20528
|
* @param [options.complete] - 飞行完成后要执行的函数。
|
|
20516
20529
|
* @param [options.cancel] - 飞行取消时要执行的函数。
|
|
@@ -20526,11 +20539,11 @@ declare class BaseTileLayer extends BaseLayer {
|
|
|
20526
20539
|
flyTo(options?: {
|
|
20527
20540
|
radius?: number;
|
|
20528
20541
|
scale?: number;
|
|
20529
|
-
minHeight?: number;
|
|
20530
|
-
maxHeight?: number;
|
|
20531
20542
|
heading?: number;
|
|
20532
20543
|
pitch?: number;
|
|
20533
20544
|
roll?: number;
|
|
20545
|
+
minHeight?: number;
|
|
20546
|
+
maxHeight?: number;
|
|
20534
20547
|
duration?: number;
|
|
20535
20548
|
complete?: Cesium.Camera.FlightCompleteCallback;
|
|
20536
20549
|
cancel?: Cesium.Camera.FlightCancelledCallback;
|
|
@@ -24201,7 +24214,7 @@ declare class Map extends BaseClass {
|
|
|
24201
24214
|
* @param extent.xmax - 最大经度值, -180 至 180
|
|
24202
24215
|
* @param extent.ymin - 最小纬度值, -90 至 90
|
|
24203
24216
|
* @param extent.ymax - 最大纬度值, -90 至 90
|
|
24204
|
-
* @param [extent.height
|
|
24217
|
+
* @param [extent.height] - 矩形高度值, 默认取地形高度值
|
|
24205
24218
|
* @param [options = {}] - 参数对象:
|
|
24206
24219
|
* @param [options.scale] - 缩放比例,可以控制视角比矩形略大一些,这样效果更友好。
|
|
24207
24220
|
* @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
|
|
@@ -25648,7 +25661,7 @@ declare class TextMaterialProperty extends Image2MaterialProperty {
|
|
|
25648
25661
|
* 墙体: 走马灯围墙 材质
|
|
25649
25662
|
* @param [options] - 参数对象,包括以下:
|
|
25650
25663
|
* @param options.image - 背景图片URL
|
|
25651
|
-
* @param [options.color = new Cesium.Color(
|
|
25664
|
+
* @param [options.color = new Cesium.Color(0, 0, 0, 1.0)] - 背景图片颜色
|
|
25652
25665
|
* @param [options.count = 1] - 数量
|
|
25653
25666
|
* @param [options.reverse = false] - 方向,false是往下,true是往上
|
|
25654
25667
|
* @param [options.speed = 5.0] - 速度,值越大越快
|
|
@@ -27411,11 +27424,12 @@ declare class S3MLayer extends BaseLayer {
|
|
|
27411
27424
|
* @param [options = {}] - 参数对象:
|
|
27412
27425
|
* @param [options.radius] - 点状数据时,相机距离目标点的距离(单位:米)
|
|
27413
27426
|
* @param [options.scale = 1.2] - 线面数据时,缩放比例,可以控制视角比矩形略大一些,这样效果更友好。
|
|
27414
|
-
* @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
|
|
27415
|
-
* @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
|
|
27416
27427
|
* @param [options.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0至360
|
|
27417
27428
|
* @param [options.pitch] - 俯仰角度值,绕纬度线旋转角度, -90至90
|
|
27418
27429
|
* @param [options.roll] - 翻滚角度值,绕经度线旋转角度, -90至90
|
|
27430
|
+
* @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
|
|
27431
|
+
* @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
|
|
27432
|
+
* @param [extent.height] - 矩形区域时的高度值, 默认取地形高度值
|
|
27419
27433
|
* @param [options.duration] - 飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。
|
|
27420
27434
|
* @param [options.complete] - 飞行完成后要执行的函数。
|
|
27421
27435
|
* @param [options.cancel] - 飞行取消时要执行的函数。
|
|
@@ -27431,11 +27445,11 @@ declare class S3MLayer extends BaseLayer {
|
|
|
27431
27445
|
flyTo(options?: {
|
|
27432
27446
|
radius?: number;
|
|
27433
27447
|
scale?: number;
|
|
27434
|
-
minHeight?: number;
|
|
27435
|
-
maxHeight?: number;
|
|
27436
27448
|
heading?: number;
|
|
27437
27449
|
pitch?: number;
|
|
27438
27450
|
roll?: number;
|
|
27451
|
+
minHeight?: number;
|
|
27452
|
+
maxHeight?: number;
|
|
27439
27453
|
duration?: number;
|
|
27440
27454
|
complete?: Cesium.Camera.FlightCompleteCallback;
|
|
27441
27455
|
cancel?: Cesium.Camera.FlightCancelledCallback;
|
|
@@ -27654,11 +27668,12 @@ declare class SmMvtLayer extends BaseLayer {
|
|
|
27654
27668
|
* @param [options = {}] - 参数对象:
|
|
27655
27669
|
* @param [options.radius] - 点状数据时,相机距离目标点的距离(单位:米)
|
|
27656
27670
|
* @param [options.scale = 1.2] - 线面数据时,缩放比例,可以控制视角比矩形略大一些,这样效果更友好。
|
|
27657
|
-
* @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
|
|
27658
|
-
* @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
|
|
27659
27671
|
* @param [options.heading] - 方向角度值,绕垂直于地心的轴旋转角度, 0至360
|
|
27660
27672
|
* @param [options.pitch] - 俯仰角度值,绕纬度线旋转角度, -90至90
|
|
27661
27673
|
* @param [options.roll] - 翻滚角度值,绕经度线旋转角度, -90至90
|
|
27674
|
+
* @param [options.minHeight] - 定位时相机的最小高度值,用于控制避免异常数据
|
|
27675
|
+
* @param [options.maxHeight] - 定位时相机的最大高度值,用于控制避免异常数据
|
|
27676
|
+
* @param [extent.height] - 矩形区域时的高度值, 默认取地形高度值
|
|
27662
27677
|
* @param [options.duration] - 飞行时间(单位:秒)。如果省略,SDK内部会根据飞行距离计算出理想的飞行时间。
|
|
27663
27678
|
* @param [options.complete] - 飞行完成后要执行的函数。
|
|
27664
27679
|
* @param [options.cancel] - 飞行取消时要执行的函数。
|
|
@@ -27674,11 +27689,11 @@ declare class SmMvtLayer extends BaseLayer {
|
|
|
27674
27689
|
flyTo(options?: {
|
|
27675
27690
|
radius?: number;
|
|
27676
27691
|
scale?: number;
|
|
27677
|
-
minHeight?: number;
|
|
27678
|
-
maxHeight?: number;
|
|
27679
27692
|
heading?: number;
|
|
27680
27693
|
pitch?: number;
|
|
27681
27694
|
roll?: number;
|
|
27695
|
+
minHeight?: number;
|
|
27696
|
+
maxHeight?: number;
|
|
27682
27697
|
duration?: number;
|
|
27683
27698
|
complete?: Cesium.Camera.FlightCompleteCallback;
|
|
27684
27699
|
cancel?: Cesium.Camera.FlightCancelledCallback;
|