mars3d 3.3.0 → 3.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mars3d.css +9 -0
- package/dist/mars3d.d.ts +347 -74
- package/dist/mars3d.js +16 -6
- package/package.json +2 -2
package/dist/mars3d.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* Mars3D三维可视化平台 mars3d
|
|
3
|
+
* Mars3D三维可视化平台 mars3d
|
|
4
4
|
*
|
|
5
|
-
* 版本信息:v3.3.
|
|
6
|
-
* 编译日期:2022-
|
|
5
|
+
* 版本信息:v3.3.3
|
|
6
|
+
* 编译日期:2022-04-06 12:18:57
|
|
7
7
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
8
8
|
* 使用单位:免费公开版 ,2022-02-01
|
|
9
9
|
*/
|
|
@@ -24,7 +24,7 @@ declare const provider: any
|
|
|
24
24
|
/**
|
|
25
25
|
* 国内偏移坐标系 枚举
|
|
26
26
|
*/
|
|
27
|
-
declare
|
|
27
|
+
declare enum ChinaCRS {
|
|
28
28
|
/**
|
|
29
29
|
* 标准无偏坐标系
|
|
30
30
|
*/
|
|
@@ -42,7 +42,7 @@ declare const enum ChinaCRS {
|
|
|
42
42
|
/**
|
|
43
43
|
* 裁剪模型类型
|
|
44
44
|
*/
|
|
45
|
-
declare
|
|
45
|
+
declare enum ClipType {
|
|
46
46
|
/**
|
|
47
47
|
* z水平面, 切底部
|
|
48
48
|
*/
|
|
@@ -72,7 +72,7 @@ declare const enum ClipType {
|
|
|
72
72
|
/**
|
|
73
73
|
* 控件类型
|
|
74
74
|
*/
|
|
75
|
-
declare
|
|
75
|
+
declare enum ControlType {
|
|
76
76
|
clockAnimate,
|
|
77
77
|
compass,
|
|
78
78
|
distanceLegend,
|
|
@@ -86,7 +86,7 @@ declare const enum ControlType {
|
|
|
86
86
|
/**
|
|
87
87
|
* 坐标系 枚举
|
|
88
88
|
*/
|
|
89
|
-
declare
|
|
89
|
+
declare enum CRS {
|
|
90
90
|
/**
|
|
91
91
|
* Web墨卡托投影坐标系
|
|
92
92
|
*/
|
|
@@ -124,7 +124,7 @@ declare const enum CRS {
|
|
|
124
124
|
/**
|
|
125
125
|
* 特效类型
|
|
126
126
|
*/
|
|
127
|
-
declare
|
|
127
|
+
declare enum EffectType {
|
|
128
128
|
blackAndWhite,
|
|
129
129
|
bloom,
|
|
130
130
|
brightness,
|
|
@@ -142,7 +142,7 @@ declare const enum EffectType {
|
|
|
142
142
|
/**
|
|
143
143
|
* 事件类型 枚举(所有事件统一的入口)
|
|
144
144
|
*/
|
|
145
|
-
declare
|
|
145
|
+
declare enum EventType {
|
|
146
146
|
/**
|
|
147
147
|
* 添加对象
|
|
148
148
|
*/
|
|
@@ -522,7 +522,7 @@ declare const enum EventType {
|
|
|
522
522
|
/**
|
|
523
523
|
* 矢量数据类型
|
|
524
524
|
*/
|
|
525
|
-
declare
|
|
525
|
+
declare enum GraphicType {
|
|
526
526
|
label,
|
|
527
527
|
labelP,
|
|
528
528
|
point,
|
|
@@ -620,7 +620,7 @@ declare const enum GraphicType {
|
|
|
620
620
|
* @example
|
|
621
621
|
* mars3d.Lang["_单击开始绘制"][mars3d.LangType.ZH] ="新的中文提示语句";
|
|
622
622
|
*/
|
|
623
|
-
declare
|
|
623
|
+
declare enum Lang {
|
|
624
624
|
"_放大" = "[\"\u653E\u5927\",\"\u653E\u5927\",\"Zoom In\"]",
|
|
625
625
|
"_缩小" = "[\"\u7F29\u5C0F\",\"\u7E2E\u5C0F\",\"Zoom Out\"]",
|
|
626
626
|
"_查看此处坐标" = "[\"\u67E5\u770B\u6B64\u5904\u5750\u6807\",\"\u67E5\u770B\u6B64\u8655\u5750\u6A19\",\"Location info\"]",
|
|
@@ -740,7 +740,7 @@ declare const enum Lang {
|
|
|
740
740
|
/**
|
|
741
741
|
* 语言类型 枚举
|
|
742
742
|
*/
|
|
743
|
-
declare
|
|
743
|
+
declare enum LangType {
|
|
744
744
|
/**
|
|
745
745
|
* 简体中文
|
|
746
746
|
*/
|
|
@@ -758,7 +758,7 @@ declare const enum LangType {
|
|
|
758
758
|
/**
|
|
759
759
|
* 图层类型
|
|
760
760
|
*/
|
|
761
|
-
declare
|
|
761
|
+
declare enum LayerType {
|
|
762
762
|
tdt,
|
|
763
763
|
baidu,
|
|
764
764
|
gaode,
|
|
@@ -1105,7 +1105,7 @@ declare namespace MaterialType {
|
|
|
1105
1105
|
/**
|
|
1106
1106
|
* 相机旋转的类型
|
|
1107
1107
|
*/
|
|
1108
|
-
declare
|
|
1108
|
+
declare enum MoveType {
|
|
1109
1109
|
/**
|
|
1110
1110
|
* 向屏幕中心靠近
|
|
1111
1111
|
*/
|
|
@@ -1135,7 +1135,7 @@ declare const enum MoveType {
|
|
|
1135
1135
|
/**
|
|
1136
1136
|
* 状态 枚举
|
|
1137
1137
|
*/
|
|
1138
|
-
declare
|
|
1138
|
+
declare enum State {
|
|
1139
1139
|
/**
|
|
1140
1140
|
* 初始化
|
|
1141
1141
|
*/
|
|
@@ -1157,7 +1157,7 @@ declare const enum State {
|
|
|
1157
1157
|
/**
|
|
1158
1158
|
* 地形类型
|
|
1159
1159
|
*/
|
|
1160
|
-
declare
|
|
1160
|
+
declare enum TerrainType {
|
|
1161
1161
|
/**
|
|
1162
1162
|
* 无地形
|
|
1163
1163
|
*/
|
|
@@ -1572,7 +1572,7 @@ declare class MapSplit extends BaseControl {
|
|
|
1572
1572
|
* @param splitDirection - 图层显示的方向
|
|
1573
1573
|
* @returns 无
|
|
1574
1574
|
*/
|
|
1575
|
-
setLayerSplitDirection(layer: BaseTileLayer | GroupLayer, splitDirection: Cesium.
|
|
1575
|
+
setLayerSplitDirection(layer: BaseTileLayer | GroupLayer, splitDirection: Cesium.SplitDirection): void;
|
|
1576
1576
|
/**
|
|
1577
1577
|
* 控件类型
|
|
1578
1578
|
*/
|
|
@@ -1773,6 +1773,7 @@ declare class ToolButton extends BaseControl {
|
|
|
1773
1773
|
/**
|
|
1774
1774
|
* 放大缩小按钮控件
|
|
1775
1775
|
* @param [options] - 参数对象,包括以下:
|
|
1776
|
+
* @param [options.relativeAmount = 2] - 放大缩小的相对量(调整步长)
|
|
1776
1777
|
* @param [options.zoomOutIcon] - 缩小按钮 图片url路径 或 字体图标class名
|
|
1777
1778
|
* @param [options.zoomInIcon] - 放大按钮 图片url路径 或 字体图标class名
|
|
1778
1779
|
* @param [options.id = uuid()] - 对象的id标识
|
|
@@ -1783,6 +1784,7 @@ declare class ToolButton extends BaseControl {
|
|
|
1783
1784
|
*/
|
|
1784
1785
|
declare class Zoom extends BaseControl {
|
|
1785
1786
|
constructor(options?: {
|
|
1787
|
+
relativeAmount?: string;
|
|
1786
1788
|
zoomOutIcon?: string;
|
|
1787
1789
|
zoomInIcon?: string;
|
|
1788
1790
|
id?: string | number;
|
|
@@ -2587,8 +2589,8 @@ declare class SnowEffect extends BaseEffect {
|
|
|
2587
2589
|
declare namespace Globe {
|
|
2588
2590
|
/**
|
|
2589
2591
|
* Popup或Tooltip配置的数组方式对象
|
|
2590
|
-
* @property field - 字段名称
|
|
2591
|
-
* @property name - 显示的对应自定义名称
|
|
2592
|
+
* @property [field] - 字段名称
|
|
2593
|
+
* @property [name] - 显示的对应自定义名称
|
|
2592
2594
|
* @property [type] - 默认为label文本,也可以支持:'button'按钮,'html' html内容。
|
|
2593
2595
|
* @property [callback] - 当type为'button'按钮时,单击后触发的事件。
|
|
2594
2596
|
* @property [html] - 当type为'html'时,对于拼接的html内容。
|
|
@@ -2597,8 +2599,8 @@ declare namespace Globe {
|
|
|
2597
2599
|
* @property [className] - 自定义样式名称
|
|
2598
2600
|
*/
|
|
2599
2601
|
type getTemplateHtml_template = {
|
|
2600
|
-
field
|
|
2601
|
-
name
|
|
2602
|
+
field?: string;
|
|
2603
|
+
name?: string;
|
|
2602
2604
|
type?: string;
|
|
2603
2605
|
callback?: string;
|
|
2604
2606
|
html?: string;
|
|
@@ -5024,6 +5026,19 @@ declare class DivGraphic extends BaseGraphic {
|
|
|
5024
5026
|
* @returns 无
|
|
5025
5027
|
*/
|
|
5026
5028
|
closeHighlight(): void;
|
|
5029
|
+
/**
|
|
5030
|
+
* 异步计算更新坐标高度进行贴地(或贴模型),内部自动调用{@link PointUtil#getSurfaceHeight}方法处理。
|
|
5031
|
+
* @param [options = {}] - 参数对象:
|
|
5032
|
+
* @param [options.has3dtiles = auto] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
5033
|
+
* @param [options.objectsToExclude = null] - 贴模型分析时,排除的不进行贴模型计算的模型对象,可以是: primitives, entities, 或 3D Tiles features
|
|
5034
|
+
* @param options.callback - 异步计算高度完成后 的回调方法
|
|
5035
|
+
* @returns 当前对象本身,可以链式调用
|
|
5036
|
+
*/
|
|
5037
|
+
autoSurfaceHeight(options?: {
|
|
5038
|
+
has3dtiles?: boolean;
|
|
5039
|
+
objectsToExclude?: any;
|
|
5040
|
+
callback: Globe.getSurfaceHeight_callback;
|
|
5041
|
+
}): BasePointEntity;
|
|
5027
5042
|
/**
|
|
5028
5043
|
* 开始绘制创建矢量数据,绘制的数据会加载在layer图层。
|
|
5029
5044
|
* @param layer - 图层
|
|
@@ -5722,6 +5737,8 @@ declare class BaseEntity extends BaseGraphic {
|
|
|
5722
5737
|
* @param [options.clampToTileset] - 当使用addDynamicPosition设置为动画轨迹位置时,是否进行贴模型。
|
|
5723
5738
|
* @param [options.frameRateClamp = 30] - 当使用addDynamicPosition设置为动画轨迹位置时,并clampToTileset:true时,多少帧计算一次贴模型高度
|
|
5724
5739
|
* @param [options.objectsToExclude] - 当使用addDynamicPosition设置为动画轨迹位置时,并clampToTileset:true时,排除的不进行贴模型计算的模型对象,可以是: primitives, entities, 或 3D Tiles features
|
|
5740
|
+
* @param [options.referenceFrame = Cesium.ReferenceFrame.FIXED] - 当使用addDynamicPosition设置为动画轨迹位置时,position位置被定义的参考系。
|
|
5741
|
+
* @param [options.numberOfDerivatives = 0] - 当使用addDynamicPosition设置为动画轨迹位置时,每个位置的导数的数量;即速度、加速度等。
|
|
5725
5742
|
* @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定
|
|
5726
5743
|
* @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数
|
|
5727
5744
|
* @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑
|
|
@@ -5754,6 +5771,8 @@ declare class BasePointEntity extends BaseEntity {
|
|
|
5754
5771
|
clampToTileset?: boolean;
|
|
5755
5772
|
frameRateClamp?: number;
|
|
5756
5773
|
objectsToExclude?: any;
|
|
5774
|
+
referenceFrame?: Cesium.ReferenceFrame;
|
|
5775
|
+
numberOfDerivatives?: number;
|
|
5757
5776
|
popup?: string | any[] | ((...params: any[]) => any);
|
|
5758
5777
|
popupOptions?: Popup.StyleOptions;
|
|
5759
5778
|
tooltip?: string | any[] | ((...params: any[]) => any);
|
|
@@ -5843,14 +5862,14 @@ declare class BasePointEntity extends BaseEntity {
|
|
|
5843
5862
|
*/
|
|
5844
5863
|
addDynamicPosition(point: LngLatPoint | Cesium.Cartesian3 | number[], currTime?: Cesium.JulianDate | Date | string | number): BasePointEntity;
|
|
5845
5864
|
/**
|
|
5846
|
-
*
|
|
5865
|
+
* 异步计算更新坐标高度进行贴地(或贴模型),内部自动调用{@link PointUtil#getSurfaceHeight}方法处理。
|
|
5847
5866
|
* @param [options = {}] - 参数对象:
|
|
5848
5867
|
* @param [options.has3dtiles = auto] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
5849
5868
|
* @param [options.objectsToExclude = null] - 贴模型分析时,排除的不进行贴模型计算的模型对象,可以是: primitives, entities, 或 3D Tiles features
|
|
5850
5869
|
* @param options.callback - 异步计算高度完成后 的回调方法
|
|
5851
5870
|
* @returns 当前对象本身,可以链式调用
|
|
5852
5871
|
*/
|
|
5853
|
-
|
|
5872
|
+
autoSurfaceHeight(options?: {
|
|
5854
5873
|
has3dtiles?: boolean;
|
|
5855
5874
|
objectsToExclude?: any;
|
|
5856
5875
|
callback: Globe.getSurfaceHeight_callback;
|
|
@@ -5993,7 +6012,7 @@ declare class BasePolyEntity extends BaseEntity {
|
|
|
5993
6012
|
*/
|
|
5994
6013
|
isInPoly(position: Cesium.Cartesian3 | LngLatPoint): boolean;
|
|
5995
6014
|
/**
|
|
5996
|
-
*
|
|
6015
|
+
* 异步计算更新坐标高度进行贴地(或贴模型),内部自动调用{@link PolyUtil#computeSurfacePoints}方法处理。
|
|
5997
6016
|
* @param [options = {}] - 参数对象:
|
|
5998
6017
|
* @param [options.has3dtiles = auto] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
5999
6018
|
* @param [options.objectsToExclude = null] - 贴模型分析时,排除的不进行贴模型计算的模型对象,可以是: primitives, entities, 或 3D Tiles features
|
|
@@ -6001,7 +6020,7 @@ declare class BasePolyEntity extends BaseEntity {
|
|
|
6001
6020
|
* @param options.callback - 异步计算高度完成后 的回调方法
|
|
6002
6021
|
* @returns 当前对象本身,可以链式调用
|
|
6003
6022
|
*/
|
|
6004
|
-
|
|
6023
|
+
autoSurfaceHeight(options?: {
|
|
6005
6024
|
has3dtiles?: boolean;
|
|
6006
6025
|
objectsToExclude?: any;
|
|
6007
6026
|
offset?: number;
|
|
@@ -8092,6 +8111,8 @@ declare namespace ModelEntity {
|
|
|
8092
8111
|
* @param [options.clampToTileset] - 当使用addDynamicPosition设置为动画轨迹位置时,是否进行贴模型。
|
|
8093
8112
|
* @param [options.frameRateHeight = 30] - 当使用addDynamicPosition设置为动画轨迹位置时,并clampToTileset:true时,多少帧计算一次贴模型高度
|
|
8094
8113
|
* @param [options.objectsToExclude] - 当使用addDynamicPosition设置为动画轨迹位置时,并clampToTileset:true时,排除的不进行贴模型计算的模型对象,可以是: primitives, entities, 或 3D Tiles features
|
|
8114
|
+
* @param [options.referenceFrame = Cesium.ReferenceFrame.FIXED] - 当使用addDynamicPosition设置为动画轨迹位置时,position位置被定义的参考系。
|
|
8115
|
+
* @param [options.numberOfDerivatives = 0] - 当使用addDynamicPosition设置为动画轨迹位置时,每个位置的导数的数量;即速度、加速度等。
|
|
8095
8116
|
* @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。
|
|
8096
8117
|
* @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值
|
|
8097
8118
|
* @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定
|
|
@@ -8122,6 +8143,8 @@ declare class ModelEntity extends BasePointEntity {
|
|
|
8122
8143
|
clampToTileset?: boolean;
|
|
8123
8144
|
frameRateHeight?: number;
|
|
8124
8145
|
objectsToExclude?: any;
|
|
8146
|
+
referenceFrame?: Cesium.ReferenceFrame;
|
|
8147
|
+
numberOfDerivatives?: number;
|
|
8125
8148
|
drawShow?: boolean;
|
|
8126
8149
|
addHeight?: number;
|
|
8127
8150
|
popup?: string | any[] | ((...params: any[]) => any);
|
|
@@ -9875,6 +9898,13 @@ declare class AttackArrow extends PolygonEntity {
|
|
|
9875
9898
|
* @returns 矢量对象
|
|
9876
9899
|
*/
|
|
9877
9900
|
static fromDraw(layer: GraphicLayer, options: any): AttackArrow;
|
|
9901
|
+
/**
|
|
9902
|
+
* 计算当前军标对象的边界坐标点
|
|
9903
|
+
* @param positions - 坐标位置
|
|
9904
|
+
* @param [options] - 控制参数(预留)
|
|
9905
|
+
* @returns 边界坐标点
|
|
9906
|
+
*/
|
|
9907
|
+
static getOutlinePositions(positions: LngLatPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty | any[], options?: any): Cesium.Cartesian3[];
|
|
9878
9908
|
}
|
|
9879
9909
|
|
|
9880
9910
|
/**
|
|
@@ -9931,6 +9961,13 @@ declare class AttackArrowPW extends PolygonEntity {
|
|
|
9931
9961
|
* @returns 矢量对象
|
|
9932
9962
|
*/
|
|
9933
9963
|
static fromDraw(layer: GraphicLayer, options: any): AttackArrowPW;
|
|
9964
|
+
/**
|
|
9965
|
+
* 计算当前军标对象的边界坐标点
|
|
9966
|
+
* @param positions - 坐标位置
|
|
9967
|
+
* @param [options] - 控制参数(预留)
|
|
9968
|
+
* @returns 边界坐标点
|
|
9969
|
+
*/
|
|
9970
|
+
static getOutlinePositions(positions: LngLatPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty | any[], options?: any): Cesium.Cartesian3[];
|
|
9934
9971
|
}
|
|
9935
9972
|
|
|
9936
9973
|
/**
|
|
@@ -9987,6 +10024,13 @@ declare class AttackArrowYW extends PolygonEntity {
|
|
|
9987
10024
|
* @returns 矢量对象
|
|
9988
10025
|
*/
|
|
9989
10026
|
static fromDraw(layer: GraphicLayer, options: any): AttackArrowYW;
|
|
10027
|
+
/**
|
|
10028
|
+
* 计算当前军标对象的边界坐标点
|
|
10029
|
+
* @param positions - 坐标位置
|
|
10030
|
+
* @param [options] - 控制参数(预留)
|
|
10031
|
+
* @returns 边界坐标点
|
|
10032
|
+
*/
|
|
10033
|
+
static getOutlinePositions(positions: LngLatPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty | any[], options?: any): Cesium.Cartesian3[];
|
|
9990
10034
|
}
|
|
9991
10035
|
|
|
9992
10036
|
/**
|
|
@@ -10043,6 +10087,13 @@ declare class CloseVurve extends PolygonEntity {
|
|
|
10043
10087
|
* @returns 矢量对象
|
|
10044
10088
|
*/
|
|
10045
10089
|
static fromDraw(layer: GraphicLayer, options: any): CloseVurve;
|
|
10090
|
+
/**
|
|
10091
|
+
* 计算当前军标对象的边界坐标点
|
|
10092
|
+
* @param positions - 坐标位置
|
|
10093
|
+
* @param [options] - 控制参数(预留)
|
|
10094
|
+
* @returns 边界坐标点
|
|
10095
|
+
*/
|
|
10096
|
+
static getOutlinePositions(positions: LngLatPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty | any[], options?: any): Cesium.Cartesian3[];
|
|
10046
10097
|
}
|
|
10047
10098
|
|
|
10048
10099
|
/**
|
|
@@ -10099,6 +10150,13 @@ declare class DoubleArrow extends PolygonEntity {
|
|
|
10099
10150
|
* @returns 矢量对象
|
|
10100
10151
|
*/
|
|
10101
10152
|
static fromDraw(layer: GraphicLayer, options: any): DoubleArrow;
|
|
10153
|
+
/**
|
|
10154
|
+
* 计算当前军标对象的边界坐标点
|
|
10155
|
+
* @param positions - 坐标位置
|
|
10156
|
+
* @param [options] - 控制参数(预留)
|
|
10157
|
+
* @returns 边界坐标点
|
|
10158
|
+
*/
|
|
10159
|
+
static getOutlinePositions(positions: LngLatPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty | any[], options?: any): Cesium.Cartesian3[];
|
|
10102
10160
|
}
|
|
10103
10161
|
|
|
10104
10162
|
/**
|
|
@@ -10167,6 +10225,13 @@ declare class FineArrow extends PolygonEntity {
|
|
|
10167
10225
|
* @returns 矢量对象
|
|
10168
10226
|
*/
|
|
10169
10227
|
static fromDraw(layer: GraphicLayer, options: any): FineArrow;
|
|
10228
|
+
/**
|
|
10229
|
+
* 计算当前军标对象的边界坐标点
|
|
10230
|
+
* @param positions - 坐标位置
|
|
10231
|
+
* @param [options] - 控制参数(预留)
|
|
10232
|
+
* @returns 边界坐标点
|
|
10233
|
+
*/
|
|
10234
|
+
static getOutlinePositions(positions: LngLatPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty | any[], options?: any): Cesium.Cartesian3[];
|
|
10170
10235
|
}
|
|
10171
10236
|
|
|
10172
10237
|
/**
|
|
@@ -10223,6 +10288,13 @@ declare class FineArrowYW extends PolygonEntity {
|
|
|
10223
10288
|
* @returns 矢量对象
|
|
10224
10289
|
*/
|
|
10225
10290
|
static fromDraw(layer: GraphicLayer, options: any): FineArrowYW;
|
|
10291
|
+
/**
|
|
10292
|
+
* 计算当前军标对象的边界坐标点
|
|
10293
|
+
* @param positions - 坐标位置
|
|
10294
|
+
* @param [options] - 控制参数(预留)
|
|
10295
|
+
* @returns 边界坐标点
|
|
10296
|
+
*/
|
|
10297
|
+
static getOutlinePositions(positions: LngLatPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty | any[], options?: any): Cesium.Cartesian3[];
|
|
10226
10298
|
}
|
|
10227
10299
|
|
|
10228
10300
|
/**
|
|
@@ -10279,6 +10351,13 @@ declare class GatheringPlace extends PolygonEntity {
|
|
|
10279
10351
|
* @returns 矢量对象
|
|
10280
10352
|
*/
|
|
10281
10353
|
static fromDraw(layer: GraphicLayer, options: any): GatheringPlace;
|
|
10354
|
+
/**
|
|
10355
|
+
* 计算当前军标对象的边界坐标点
|
|
10356
|
+
* @param positions - 坐标位置
|
|
10357
|
+
* @param [options] - 控制参数(预留)
|
|
10358
|
+
* @returns 边界坐标点
|
|
10359
|
+
*/
|
|
10360
|
+
static getOutlinePositions(positions: LngLatPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty | any[], options?: any): Cesium.Cartesian3[];
|
|
10282
10361
|
}
|
|
10283
10362
|
|
|
10284
10363
|
/**
|
|
@@ -10335,6 +10414,13 @@ declare class IsosTriangle extends PolygonEntity {
|
|
|
10335
10414
|
* @returns 矢量对象
|
|
10336
10415
|
*/
|
|
10337
10416
|
static fromDraw(layer: GraphicLayer, options: any): IsosTriangle;
|
|
10417
|
+
/**
|
|
10418
|
+
* 计算当前矢量对象的边界坐标点
|
|
10419
|
+
* @param positions - 坐标位置
|
|
10420
|
+
* @param [options] - 控制参数(预留)
|
|
10421
|
+
* @returns 边界坐标点
|
|
10422
|
+
*/
|
|
10423
|
+
static getOutlinePositions(positions: Cesium.Cartesian3[], options?: any): Cesium.Cartesian3[];
|
|
10338
10424
|
}
|
|
10339
10425
|
|
|
10340
10426
|
/**
|
|
@@ -10391,6 +10477,13 @@ declare class Lune extends PolygonEntity {
|
|
|
10391
10477
|
* @returns 矢量对象
|
|
10392
10478
|
*/
|
|
10393
10479
|
static fromDraw(layer: GraphicLayer, options: any): Lune;
|
|
10480
|
+
/**
|
|
10481
|
+
* 计算当前军标对象的边界坐标点
|
|
10482
|
+
* @param positions - 坐标位置
|
|
10483
|
+
* @param [options] - 控制参数(预留)
|
|
10484
|
+
* @returns 边界坐标点
|
|
10485
|
+
*/
|
|
10486
|
+
static getOutlinePositions(positions: LngLatPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty | any[], options?: any): Cesium.Cartesian3[];
|
|
10394
10487
|
}
|
|
10395
10488
|
|
|
10396
10489
|
/**
|
|
@@ -10458,6 +10551,20 @@ declare class Regular extends PolygonEntity {
|
|
|
10458
10551
|
* @returns 矢量对象
|
|
10459
10552
|
*/
|
|
10460
10553
|
static fromDraw(layer: GraphicLayer, options: any): Regular;
|
|
10554
|
+
/**
|
|
10555
|
+
* 计算当前矢量对象的边界坐标点
|
|
10556
|
+
* @param positions - 坐标位置
|
|
10557
|
+
* @param options - 控制参数
|
|
10558
|
+
* @param [options.border = 3] - 边数量
|
|
10559
|
+
* @param options.radius - 区域的半径(单位:米)
|
|
10560
|
+
* @param [options.startAngle = 0] - 区域的开始角度(正东方向为0,顺时针到360度)
|
|
10561
|
+
* @returns 边界坐标点
|
|
10562
|
+
*/
|
|
10563
|
+
static getOutlinePositions(positions: Cesium.Cartesian3[], options: {
|
|
10564
|
+
border?: number;
|
|
10565
|
+
radius: number;
|
|
10566
|
+
startAngle?: number;
|
|
10567
|
+
}): Cesium.Cartesian3[];
|
|
10461
10568
|
/**
|
|
10462
10569
|
* 位置坐标数组 (笛卡尔坐标), 赋值时可以传入LatLngPoint数组对象 或 Cesium.PolygonHierarchy
|
|
10463
10570
|
*/
|
|
@@ -10529,6 +10636,20 @@ declare class Sector extends PolygonEntity {
|
|
|
10529
10636
|
* @returns 矢量对象
|
|
10530
10637
|
*/
|
|
10531
10638
|
static fromDraw(layer: GraphicLayer, options: any): Sector;
|
|
10639
|
+
/**
|
|
10640
|
+
* 计算当前矢量对象的边界坐标点
|
|
10641
|
+
* @param positions - 坐标位置
|
|
10642
|
+
* @param options - 控制参数
|
|
10643
|
+
* @param options.radius - 扇形区域的半径(单位:米)
|
|
10644
|
+
* @param options.startAngle - 扇形区域的开始角度(正东方向为0,顺时针到360度)
|
|
10645
|
+
* @param options.endAngle - 扇形区域的结束角度(正东方向为0,顺时针到360度)
|
|
10646
|
+
* @returns 边界坐标点
|
|
10647
|
+
*/
|
|
10648
|
+
static getOutlinePositions(positions: Cesium.Cartesian3[], options: {
|
|
10649
|
+
radius: number;
|
|
10650
|
+
startAngle: number;
|
|
10651
|
+
endAngle: number;
|
|
10652
|
+
}): Cesium.Cartesian3[];
|
|
10532
10653
|
/**
|
|
10533
10654
|
* 位置坐标数组 (笛卡尔坐标), 赋值时可以传入LatLngPoint数组对象 或 Cesium.PolygonHierarchy
|
|
10534
10655
|
*/
|
|
@@ -10589,6 +10710,13 @@ declare class StraightArrow extends PolygonEntity {
|
|
|
10589
10710
|
* @returns 矢量对象
|
|
10590
10711
|
*/
|
|
10591
10712
|
static fromDraw(layer: GraphicLayer, options: any): StraightArrow;
|
|
10713
|
+
/**
|
|
10714
|
+
* 计算当前军标对象的边界坐标点
|
|
10715
|
+
* @param positions - 坐标位置
|
|
10716
|
+
* @param [options] - 控制参数(预留)
|
|
10717
|
+
* @returns 边界坐标点
|
|
10718
|
+
*/
|
|
10719
|
+
static getOutlinePositions(positions: LngLatPoint[] | Cesium.Cartesian3[] | Cesium.PositionProperty | any[], options?: any): Cesium.Cartesian3[];
|
|
10592
10720
|
}
|
|
10593
10721
|
|
|
10594
10722
|
/**
|
|
@@ -11247,10 +11375,16 @@ declare class SectionMeasure extends DistanceMeasure {
|
|
|
11247
11375
|
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
11248
11376
|
* @param [options.polygonWallStyle] - 围墙面的样式
|
|
11249
11377
|
* @param [options.label] - 测量结果文本的样式
|
|
11378
|
+
* @param [options.showFillVolume = true] - 是否显示填方体积结果文本
|
|
11379
|
+
* @param [options.fillVolumeName = '填方体积'] - 填方体积结果的名称
|
|
11380
|
+
* @param [options.showDigVolume = true] - 是否显示挖方体积结果文本
|
|
11381
|
+
* @param [options.digVolumeName = '挖方体积'] - 挖方体积结果的名称
|
|
11382
|
+
* @param [options.showArea = true] - 是否显示横切面积结果文本
|
|
11383
|
+
* @param [options.areaName = '横切面积'] - 横切面积结果的名称
|
|
11250
11384
|
* @param [options.heightLabel = true] - 是否显示各边界点高度值文本
|
|
11251
11385
|
* @param [options.offsetLabel = false] - 是否显示各边界点高度差文本
|
|
11252
11386
|
* @param [options.labelHeight] - 各边界点高度结果文本的样式
|
|
11253
|
-
* @param [options.
|
|
11387
|
+
* @param [options.has3dtiles] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
11254
11388
|
* @param [options.id = uuid()] - 矢量数据id标识
|
|
11255
11389
|
* @param [options.name = ''] - 矢量数据名称
|
|
11256
11390
|
* @param [options.show = true] - 矢量数据是否显示
|
|
@@ -11263,10 +11397,16 @@ declare class VolumeMeasure extends AreaMeasure {
|
|
|
11263
11397
|
attr?: any;
|
|
11264
11398
|
polygonWallStyle?: PolygonEntity.StyleOptions;
|
|
11265
11399
|
label?: LabelEntity.StyleOptions;
|
|
11400
|
+
showFillVolume?: boolean;
|
|
11401
|
+
fillVolumeName?: string;
|
|
11402
|
+
showDigVolume?: boolean;
|
|
11403
|
+
digVolumeName?: string;
|
|
11404
|
+
showArea?: boolean;
|
|
11405
|
+
areaName?: string;
|
|
11266
11406
|
heightLabel?: boolean;
|
|
11267
11407
|
offsetLabel?: boolean;
|
|
11268
11408
|
labelHeight?: LabelEntity.StyleOptions;
|
|
11269
|
-
|
|
11409
|
+
has3dtiles?: boolean;
|
|
11270
11410
|
id?: string | number;
|
|
11271
11411
|
name?: string;
|
|
11272
11412
|
show?: boolean;
|
|
@@ -11451,14 +11591,14 @@ declare class BasePointPrimitive extends BasePrimitive {
|
|
|
11451
11591
|
*/
|
|
11452
11592
|
addDynamicPosition(point: LngLatPoint | Cesium.Cartesian3 | number[], currTime?: Cesium.JulianDate | Date | string | number): BasePointPrimitive;
|
|
11453
11593
|
/**
|
|
11454
|
-
*
|
|
11594
|
+
* 异步计算更新坐标高度进行贴地(或贴模型),内部自动调用{@link PointUtil#getSurfaceHeight}方法处理。
|
|
11455
11595
|
* @param [options = {}] - 参数对象:
|
|
11456
11596
|
* @param [options.has3dtiles = auto] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
11457
11597
|
* @param [options.objectsToExclude = null] - 贴模型分析时,排除的不进行贴模型计算的模型对象,可以是: primitives, entities, 或 3D Tiles features
|
|
11458
11598
|
* @param options.callback - 异步计算高度完成后 的回调方法
|
|
11459
11599
|
* @returns 当前对象本身,可以链式调用
|
|
11460
11600
|
*/
|
|
11461
|
-
|
|
11601
|
+
autoSurfaceHeight(options?: {
|
|
11462
11602
|
has3dtiles?: boolean;
|
|
11463
11603
|
objectsToExclude?: any;
|
|
11464
11604
|
callback: Globe.getSurfaceHeight_callback;
|
|
@@ -11581,7 +11721,7 @@ declare class BasePolyPrimitive extends BasePrimitive {
|
|
|
11581
11721
|
*/
|
|
11582
11722
|
isInPoly(position: Cesium.Cartesian3 | LngLatPoint): boolean;
|
|
11583
11723
|
/**
|
|
11584
|
-
*
|
|
11724
|
+
* 异步计算更新坐标高度进行贴地(或贴模型),内部自动调用{@link PolyUtil#computeSurfacePoints}方法处理。
|
|
11585
11725
|
* @param [options = {}] - 参数对象:
|
|
11586
11726
|
* @param [options.has3dtiles = auto] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
11587
11727
|
* @param [options.objectsToExclude = null] - 贴模型分析时,排除的不进行贴模型计算的模型对象,可以是: primitives, entities, 或 3D Tiles features
|
|
@@ -11589,7 +11729,7 @@ declare class BasePolyPrimitive extends BasePrimitive {
|
|
|
11589
11729
|
* @param options.callback - 异步计算高度完成后 的回调方法
|
|
11590
11730
|
* @returns 当前对象本身,可以链式调用
|
|
11591
11731
|
*/
|
|
11592
|
-
|
|
11732
|
+
autoSurfaceHeight(options?: {
|
|
11593
11733
|
has3dtiles?: boolean;
|
|
11594
11734
|
objectsToExclude?: any;
|
|
11595
11735
|
offset?: number;
|
|
@@ -16022,7 +16162,7 @@ declare namespace CzmGeoJsonLayer {
|
|
|
16022
16162
|
* @param [options.url] - geojson文件或服务url地址
|
|
16023
16163
|
* @param [options.data] - geojson格式规范数据对象,与url二选一即可。
|
|
16024
16164
|
* @param [options.format] - 可以对加载的geojson数据进行格式化或转换操作
|
|
16025
|
-
* @param [options.zIndex] -
|
|
16165
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
16026
16166
|
* @param [options.opacity = 1] - 透明度,取值范围:0.0-1.0
|
|
16027
16167
|
* @param [options.symbol] - 矢量数据的style样式
|
|
16028
16168
|
* @param options.symbol.styleOptions - 数据的Style样式
|
|
@@ -17175,15 +17315,32 @@ declare class GraphicGroupLayer extends GroupLayer {
|
|
|
17175
17315
|
getRectangle(isFormat?: boolean): Cesium.Rectangle | any;
|
|
17176
17316
|
/**
|
|
17177
17317
|
* 开始绘制矢量数据,绘制的数据会加载在当前图层。
|
|
17178
|
-
* @param options -
|
|
17318
|
+
* @param options - 绘制参数,包含:
|
|
17179
17319
|
* @param options.type - 类型
|
|
17180
17320
|
* @param [options.style] - 矢量数据样式,具体参考支持 {@link GraphicType}查询对应type的类
|
|
17181
|
-
* @
|
|
17321
|
+
* @param [options.attr] - 矢量数据的 属性信息,可以任意附加属性。
|
|
17322
|
+
* @param [options.success] - 绘制创建完成的回调方法,同drawCreated事件,例如: success: function (graphic){ }
|
|
17323
|
+
* //以下为Entity支持的构造参数
|
|
17324
|
+
* @param [options.name] - 矢量数据名称
|
|
17325
|
+
* @param [options.maxPointNum] - 线面数据时限定的最大坐标个数
|
|
17326
|
+
* @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。
|
|
17327
|
+
* @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值
|
|
17328
|
+
* @param [options.availability] - 与该对象关联的可用性(如果有的话)。
|
|
17329
|
+
* @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
|
|
17330
|
+
* @returns 绘制创建完成的Promise,等价于success参数
|
|
17182
17331
|
*/
|
|
17183
17332
|
startDraw(options: {
|
|
17184
17333
|
type: GraphicType | string;
|
|
17185
17334
|
style?: any;
|
|
17186
|
-
|
|
17335
|
+
attr?: any;
|
|
17336
|
+
success?: (...params: any[]) => any;
|
|
17337
|
+
name?: string;
|
|
17338
|
+
maxPointNum?: number;
|
|
17339
|
+
drawShow?: boolean;
|
|
17340
|
+
addHeight?: number;
|
|
17341
|
+
availability?: Cesium.TimeIntervalCollection;
|
|
17342
|
+
description?: Cesium.Property | string;
|
|
17343
|
+
}): Promise<BaseGraphic | any>;
|
|
17187
17344
|
/**
|
|
17188
17345
|
* 停止绘制,如有未完成的绘制会自动删除
|
|
17189
17346
|
* @returns 当前对象本身,可以链式调用
|
|
@@ -17277,7 +17434,7 @@ declare namespace GraphicLayer {
|
|
|
17277
17434
|
* @param [options.isContinued = false] - 是否连续标绘,联系标绘状态下无法编辑已有对象。
|
|
17278
17435
|
* @param [options.isRestorePositions = false] - 在标绘和编辑结束时,是否将坐标还原为普通值,true: 停止编辑时会有闪烁,但效率要好些。
|
|
17279
17436
|
* @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
|
|
17280
|
-
* @param [options.zIndex] -
|
|
17437
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效,且只有贴地对象有效)。
|
|
17281
17438
|
* @param [options.symbol] - 矢量数据的style样式,为Function时是完全自定义的回调处理 symbol(attr, style, feature)
|
|
17282
17439
|
* @param [options.symbol.type] - 标识数据类型,默认是根据数据生成 point、polyline、polygon
|
|
17283
17440
|
* @param options.symbol.styleOptions - Style样式,每种不同类型数据都有不同的样式,具体见各{@link GraphicType}矢量数据的style参数。
|
|
@@ -17546,16 +17703,43 @@ declare class GraphicLayer extends BaseGraphicLayer {
|
|
|
17546
17703
|
* @param [options.objectsToExclude = null] - 贴模型分析时,排除的不进行贴模型计算的模型对象,可以是: primitives, entities, 或 3D Tiles features
|
|
17547
17704
|
* @param options.callback - 异步计算高度完成后 的回调方法
|
|
17548
17705
|
* @param options.endItem - 异步计算高度完成后 的回调方法
|
|
17549
|
-
* @returns
|
|
17706
|
+
* @returns 绘制创建完成的Promise,等价于callback参数
|
|
17550
17707
|
*/
|
|
17551
|
-
|
|
17708
|
+
autoSurfaceHeight(options?: {
|
|
17552
17709
|
has3dtiles?: boolean;
|
|
17553
17710
|
objectsToExclude?: any;
|
|
17554
17711
|
callback: (...params: any[]) => any;
|
|
17555
17712
|
endItem: (...params: any[]) => any;
|
|
17556
|
-
}):
|
|
17713
|
+
}): Promise<BaseGraphic | any>;
|
|
17557
17714
|
/**
|
|
17558
17715
|
* 开始绘制矢量数据,绘制的数据会加载在当前图层。
|
|
17716
|
+
* @example
|
|
17717
|
+
* //写法一,使用Promise
|
|
17718
|
+
* graphicLayer.startDraw({
|
|
17719
|
+
* type: "point",
|
|
17720
|
+
* style: { pixelSize: 12, color: "#3388ff" },
|
|
17721
|
+
* })
|
|
17722
|
+
* .then(function (graphic) {
|
|
17723
|
+
* console.log("绘制矢量对象完成", graphic);
|
|
17724
|
+
* });
|
|
17725
|
+
*
|
|
17726
|
+
* //写法二,使用success回调方法参数
|
|
17727
|
+
* graphicLayer.startDraw({
|
|
17728
|
+
* type: "point",
|
|
17729
|
+
* style: { pixelSize: 12, color: "#3388ff" },
|
|
17730
|
+
* success: function (graphic){
|
|
17731
|
+
* console.log("绘制矢量对象完成", graphic);
|
|
17732
|
+
* }
|
|
17733
|
+
* })
|
|
17734
|
+
*
|
|
17735
|
+
* //写法三,在图层全局监听完成事件
|
|
17736
|
+
* graphicLayer.on(mars3d.EventType.drawCreated, function (e) {
|
|
17737
|
+
* console.log("绘制矢量对象完成", e);
|
|
17738
|
+
* });
|
|
17739
|
+
* graphicLayer.startDraw({
|
|
17740
|
+
* type: "point",
|
|
17741
|
+
* style: { pixelSize: 12, color: "#3388ff" }
|
|
17742
|
+
* })
|
|
17559
17743
|
* @param options - 绘制参数,包含:
|
|
17560
17744
|
* @param options.type - 类型
|
|
17561
17745
|
* @param [options.style] - 矢量数据样式,具体参考支持 {@link GraphicType}查询对应type的类
|
|
@@ -17568,7 +17752,7 @@ declare class GraphicLayer extends BaseGraphicLayer {
|
|
|
17568
17752
|
* @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值
|
|
17569
17753
|
* @param [options.availability] - 与该对象关联的可用性(如果有的话)。
|
|
17570
17754
|
* @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
|
|
17571
|
-
* @returns
|
|
17755
|
+
* @returns 绘制创建完成的Promise,等价于success参数
|
|
17572
17756
|
*/
|
|
17573
17757
|
startDraw(options: {
|
|
17574
17758
|
type: GraphicType | string;
|
|
@@ -17581,7 +17765,7 @@ declare class GraphicLayer extends BaseGraphicLayer {
|
|
|
17581
17765
|
addHeight?: number;
|
|
17582
17766
|
availability?: Cesium.TimeIntervalCollection;
|
|
17583
17767
|
description?: Cesium.Property | string;
|
|
17584
|
-
}): BaseGraphic | any
|
|
17768
|
+
}): Promise<BaseGraphic | any>;
|
|
17585
17769
|
/**
|
|
17586
17770
|
* 停止绘制,如有未完成的绘制会自动删除
|
|
17587
17771
|
* @returns 当前对象本身,可以链式调用
|
|
@@ -17944,7 +18128,7 @@ declare class LodGraphicLayer extends GraphicLayer {
|
|
|
17944
18128
|
* @param [options.isAutoEditing = true] - 完成标绘时是否自动启动编辑(需要hasEdit:true时)
|
|
17945
18129
|
* @param [options.isContinued = false] - 是否连续标绘
|
|
17946
18130
|
* @param [options.isRestorePositions = false] - 在标绘和编辑结束时,是否将坐标还原为普通值,true: 停止编辑时会有闪烁,但效率要好些。
|
|
17947
|
-
* @param [options.zIndex] -
|
|
18131
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
17948
18132
|
* @param [options.symbol] - 矢量数据的style样式,为Function时是完全自定义的回调处理 symbol(attr, style, feature)
|
|
17949
18133
|
* @param [options.symbol.type] - 标识数据类型,默认是根据数据生成 point、polyline、polygon
|
|
17950
18134
|
* @param options.symbol.styleOptions - Style样式,每种不同类型数据都有不同的样式,具体见各{@link GraphicType}矢量数据的style参数。
|
|
@@ -18950,7 +19134,7 @@ declare class TerrainLayer extends BaseLayer {
|
|
|
18950
19134
|
* @param options.rectangle.ymin - 最小纬度值, -90 至 90
|
|
18951
19135
|
* @param options.rectangle.ymax - 最大纬度值, -90 至 90
|
|
18952
19136
|
* @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
18953
|
-
* @param [options.zIndex] -
|
|
19137
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
18954
19138
|
* @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影
|
|
18955
19139
|
* @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
18956
19140
|
* @param [options.proxy] - 加载资源时要使用的代理服务url。
|
|
@@ -19109,7 +19293,7 @@ declare namespace ArcGisLayer {
|
|
|
19109
19293
|
* @param options.rectangle.ymin - 最小纬度值, -90 至 90
|
|
19110
19294
|
* @param options.rectangle.ymax - 最大纬度值, -90 至 90
|
|
19111
19295
|
* @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
19112
|
-
* @param [options.zIndex] -
|
|
19296
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
19113
19297
|
* @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影
|
|
19114
19298
|
* @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
19115
19299
|
* @param [options.enablePickFeatures = true] - 如果为true,则请求 单击坐标处服务中对应的矢量数据 并尝试解释响应中包含的功能。为false时不去服务请求。
|
|
@@ -19291,7 +19475,7 @@ declare class ArcGisLayer extends BaseTileLayer {
|
|
|
19291
19475
|
* @param options.rectangle.ymin - 最小纬度值, -90 至 90
|
|
19292
19476
|
* @param options.rectangle.ymax - 最大纬度值, -90 至 90
|
|
19293
19477
|
* @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
19294
|
-
* @param [options.zIndex] -
|
|
19478
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
19295
19479
|
* @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影
|
|
19296
19480
|
* @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
19297
19481
|
* @param [options.proxy] - 加载资源时要使用的代理服务url。
|
|
@@ -19432,7 +19616,7 @@ declare class ArcGisTileLayer extends BaseTileLayer {
|
|
|
19432
19616
|
* @param options.rectangle.ymin - 最小纬度值, -90 至 90
|
|
19433
19617
|
* @param options.rectangle.ymax - 最大纬度值, -90 至 90
|
|
19434
19618
|
* @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
19435
|
-
* @param [options.zIndex] -
|
|
19619
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
19436
19620
|
* @param [options.chinaCRS = ChinaCRS.BAIDU] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
19437
19621
|
* @param [options.proxy] - 加载资源时要使用的代理服务url。
|
|
19438
19622
|
* @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对
|
|
@@ -19595,7 +19779,7 @@ declare namespace BaseTileLayer {
|
|
|
19595
19779
|
* @param options.rectangle.ymin - 最小纬度值, -90 至 90
|
|
19596
19780
|
* @param options.rectangle.ymax - 最大纬度值, -90 至 90
|
|
19597
19781
|
* @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
19598
|
-
* @param [options.zIndex] -
|
|
19782
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
19599
19783
|
* @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影
|
|
19600
19784
|
* @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
19601
19785
|
* @param [options.proxy] - 加载资源时要使用的代理服务url。
|
|
@@ -19845,7 +20029,7 @@ declare class BaseTileLayer extends BaseLayer {
|
|
|
19845
20029
|
* @param options.rectangle.ymin - 最小纬度值, -90 至 90
|
|
19846
20030
|
* @param options.rectangle.ymax - 最大纬度值, -90 至 90
|
|
19847
20031
|
* @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
19848
|
-
* @param [options.zIndex] -
|
|
20032
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
19849
20033
|
* @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影
|
|
19850
20034
|
* @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
19851
20035
|
* @param [options.proxy] - 加载资源时要使用的代理服务url。
|
|
@@ -20072,7 +20256,7 @@ declare class EmptyTileLayer extends BaseTileLayer {
|
|
|
20072
20256
|
* @param options.rectangle.ymin - 最小纬度值, -90 至 90
|
|
20073
20257
|
* @param options.rectangle.ymax - 最大纬度值, -90 至 90
|
|
20074
20258
|
* @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
20075
|
-
* @param [options.zIndex] -
|
|
20259
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
20076
20260
|
* @param [options.chinaCRS = ChinaCRS.GCJ02] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
20077
20261
|
* @param [options.proxy] - 加载资源时要使用的代理服务url。
|
|
20078
20262
|
* @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对
|
|
@@ -20202,7 +20386,7 @@ declare class GaodeLayer extends BaseTileLayer {
|
|
|
20202
20386
|
* @param options.rectangle.ymin - 最小纬度值, -90 至 90
|
|
20203
20387
|
* @param options.rectangle.ymax - 最大纬度值, -90 至 90
|
|
20204
20388
|
* @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
20205
|
-
* @param [options.zIndex] -
|
|
20389
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
20206
20390
|
* @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影
|
|
20207
20391
|
* @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
20208
20392
|
* @param [options.proxy] - 加载资源时要使用的代理服务url。
|
|
@@ -20339,7 +20523,7 @@ declare class GeeLayer extends BaseTileLayer {
|
|
|
20339
20523
|
* @param options.rectangle.ymin - 最小纬度值, -90 至 90
|
|
20340
20524
|
* @param options.rectangle.ymax - 最大纬度值, -90 至 90
|
|
20341
20525
|
* @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
20342
|
-
* @param [options.zIndex] -
|
|
20526
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
20343
20527
|
* @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影
|
|
20344
20528
|
* @param [options.chinaCRS = 'GCJ02'] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
20345
20529
|
* @param [options.proxy] - 加载资源时要使用的代理服务url。
|
|
@@ -20474,7 +20658,7 @@ declare class GoogleLayer extends BaseTileLayer {
|
|
|
20474
20658
|
* @param options.rectangle.ymin - 最小纬度值, -90 至 90
|
|
20475
20659
|
* @param options.rectangle.ymax - 最大纬度值, -90 至 90
|
|
20476
20660
|
* @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
20477
|
-
* @param [options.zIndex] -
|
|
20661
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
20478
20662
|
* @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影
|
|
20479
20663
|
* @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
20480
20664
|
* @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。
|
|
@@ -20587,7 +20771,7 @@ declare class GridLayer extends BaseTileLayer {
|
|
|
20587
20771
|
* @param options.rectangle.ymin - 最小纬度值, -90 至 90
|
|
20588
20772
|
* @param options.rectangle.ymax - 最大纬度值, -90 至 90
|
|
20589
20773
|
* @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
20590
|
-
* @param [options.zIndex] -
|
|
20774
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
20591
20775
|
* @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影
|
|
20592
20776
|
* @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
20593
20777
|
* @param [options.proxy] - 加载资源时要使用的代理服务url。
|
|
@@ -20713,7 +20897,7 @@ declare class ImageLayer extends BaseTileLayer {
|
|
|
20713
20897
|
* @param options.rectangle.ymin - 最小纬度值, -90 至 90
|
|
20714
20898
|
* @param options.rectangle.ymax - 最大纬度值, -90 至 90
|
|
20715
20899
|
* @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
20716
|
-
* @param [options.zIndex] -
|
|
20900
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
20717
20901
|
* @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影
|
|
20718
20902
|
* @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
20719
20903
|
* @param [options.proxy] - 加载资源时要使用的代理服务url。
|
|
@@ -20850,7 +21034,7 @@ declare class IonLayer extends BaseTileLayer {
|
|
|
20850
21034
|
* @param options.rectangle.ymin - 最小纬度值, -90 至 90
|
|
20851
21035
|
* @param options.rectangle.ymax - 最大纬度值, -90 至 90
|
|
20852
21036
|
* @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
20853
|
-
* @param [options.zIndex] -
|
|
21037
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
20854
21038
|
* @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影
|
|
20855
21039
|
* @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
20856
21040
|
* @param [options.proxy] - 加载资源时要使用的代理服务url。
|
|
@@ -20986,7 +21170,7 @@ declare class MapboxLayer extends BaseTileLayer {
|
|
|
20986
21170
|
* @param options.rectangle.ymin - 最小纬度值, -90 至 90
|
|
20987
21171
|
* @param options.rectangle.ymax - 最大纬度值, -90 至 90
|
|
20988
21172
|
* @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
20989
|
-
* @param [options.zIndex] -
|
|
21173
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
20990
21174
|
* @param [options.proxy] - 加载资源时要使用的代理服务url。
|
|
20991
21175
|
* @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对
|
|
20992
21176
|
* @param [options.queryParameters] - 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'},
|
|
@@ -21117,7 +21301,7 @@ declare class OsmLayer extends BaseTileLayer {
|
|
|
21117
21301
|
* @param options.rectangle.ymin - 最小纬度值, -90 至 90
|
|
21118
21302
|
* @param options.rectangle.ymax - 最大纬度值, -90 至 90
|
|
21119
21303
|
* @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
21120
|
-
* @param [options.zIndex] -
|
|
21304
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
21121
21305
|
* @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影,也支持传入EPSG4490坐标系
|
|
21122
21306
|
* @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
21123
21307
|
* @param [options.proxy] - 加载资源时要使用的代理服务url。
|
|
@@ -21252,7 +21436,7 @@ declare class TdtLayer extends BaseTileLayer {
|
|
|
21252
21436
|
* @param options.rectangle.ymin - 最小纬度值, -90 至 90
|
|
21253
21437
|
* @param options.rectangle.ymax - 最大纬度值, -90 至 90
|
|
21254
21438
|
* @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
21255
|
-
* @param [options.zIndex] -
|
|
21439
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
21256
21440
|
* @param [options.chinaCRS = ChinaCRS.GCJ02] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
21257
21441
|
* @param [options.proxy] - 加载资源时要使用的代理服务url。
|
|
21258
21442
|
* @param [options.templateValues] - 一个对象,用于替换Url中的模板值的键/值对
|
|
@@ -21376,7 +21560,7 @@ declare class TencentLayer extends BaseTileLayer {
|
|
|
21376
21560
|
* @param options.rectangle.ymin - 最小纬度值, -90 至 90
|
|
21377
21561
|
* @param options.rectangle.ymax - 最大纬度值, -90 至 90
|
|
21378
21562
|
* @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
21379
|
-
* @param [options.zIndex] -
|
|
21563
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
21380
21564
|
* @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。
|
|
21381
21565
|
* @param [options.alpha = 1.0] - 同opacity。
|
|
21382
21566
|
* @param [options.nightAlpha = 1.0] - 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。
|
|
@@ -21482,7 +21666,7 @@ declare class TileInfoLayer extends BaseTileLayer {
|
|
|
21482
21666
|
* @param options.rectangle.ymin - 最小纬度值, -90 至 90
|
|
21483
21667
|
* @param options.rectangle.ymax - 最大纬度值, -90 至 90
|
|
21484
21668
|
* @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
21485
|
-
* @param [options.zIndex] -
|
|
21669
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
21486
21670
|
* @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影
|
|
21487
21671
|
* @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
21488
21672
|
* @param [options.proxy] - 加载资源时要使用的代理服务url。
|
|
@@ -21638,7 +21822,7 @@ declare class TmsLayer extends BaseTileLayer {
|
|
|
21638
21822
|
* @param options.rectangle.ymin - 最小纬度值, -90 至 90
|
|
21639
21823
|
* @param options.rectangle.ymax - 最大纬度值, -90 至 90
|
|
21640
21824
|
* @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
21641
|
-
* @param [options.zIndex] -
|
|
21825
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
21642
21826
|
* @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
21643
21827
|
* @param [options.opacity = 1.0] - 透明度,取值范围:0.0-1.0。
|
|
21644
21828
|
* @param [options.alpha = 1.0] - 同opacity。
|
|
@@ -21821,7 +22005,7 @@ declare class WmsLayer extends BaseTileLayer {
|
|
|
21821
22005
|
* @param options.rectangle.ymin - 最小纬度值, -90 至 90
|
|
21822
22006
|
* @param options.rectangle.ymax - 最大纬度值, -90 至 90
|
|
21823
22007
|
* @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
21824
|
-
* @param [options.zIndex] -
|
|
22008
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
21825
22009
|
* @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影
|
|
21826
22010
|
* @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
21827
22011
|
* @param [options.proxy] - 加载资源时要使用的代理服务url。
|
|
@@ -21996,7 +22180,7 @@ declare class WmtsLayer extends BaseTileLayer {
|
|
|
21996
22180
|
* @param options.rectangle.ymin - 最小纬度值, -90 至 90
|
|
21997
22181
|
* @param options.rectangle.ymax - 最大纬度值, -90 至 90
|
|
21998
22182
|
* @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
21999
|
-
* @param [options.zIndex] -
|
|
22183
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
22000
22184
|
* @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影
|
|
22001
22185
|
* @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
22002
22186
|
* @param [options.proxy] - 加载资源时要使用的代理服务url。
|
|
@@ -22317,6 +22501,7 @@ declare namespace Map {
|
|
|
22317
22501
|
* @property [globe.enableLighting = false] - 是否显示昼夜区域
|
|
22318
22502
|
* @property [globe.tileCacheSize = 100] - 地形图块缓存的大小,表示为图块数。任何其他只要不需要渲染,就会释放超出此数目的图块这个框架。较大的数字将消耗更多的内存,但显示细节更快例如,当缩小然后再放大时。
|
|
22319
22503
|
* @property [globe.terrainExaggeration = 1.0] - 地形夸张倍率,用于放大地形的标量。请注意,地形夸张不会修改其他相对于椭球的图元。
|
|
22504
|
+
* @property [globe.realAlt = false] - 地形夸张倍率,在测量高度和下侧提示的高度信息中是否转换为实际真实高度值。
|
|
22320
22505
|
* @property [globe.terrainExaggerationRelativeHeight = 0.0] - 地形被夸大的高度。默认为0.0(相对于椭球表面缩放)。高于此高度的地形将向上缩放,低于此高度的地形将向下缩放。请注意,地形夸大不会修改任何其他图元,因为它们是相对于椭球体定位的。
|
|
22321
22506
|
*
|
|
22322
22507
|
* 以下是Cesium.ScreenSpaceCameraController对象相关参数
|
|
@@ -22386,6 +22571,7 @@ declare namespace Map {
|
|
|
22386
22571
|
enableLighting?: boolean;
|
|
22387
22572
|
tileCacheSize?: number;
|
|
22388
22573
|
terrainExaggeration?: number;
|
|
22574
|
+
realAlt?: number;
|
|
22389
22575
|
terrainExaggerationRelativeHeight?: number;
|
|
22390
22576
|
};
|
|
22391
22577
|
cameraController?: {
|
|
@@ -22852,6 +23038,12 @@ declare class Map extends BaseClass {
|
|
|
22852
23038
|
formatNum?: boolean;
|
|
22853
23039
|
scale?: number;
|
|
22854
23040
|
}): any;
|
|
23041
|
+
/**
|
|
23042
|
+
* 当存在地形夸张时,获取其实际的高度值
|
|
23043
|
+
* @param alt - 鼠标拾取的高度值
|
|
23044
|
+
* @returns 其实际的高度值
|
|
23045
|
+
*/
|
|
23046
|
+
getRealAlt(alt: number): number;
|
|
22855
23047
|
/**
|
|
22856
23048
|
* 截图,导出地图场景图片
|
|
22857
23049
|
* @param [options = {}] - 参数对象:
|
|
@@ -22872,7 +23064,7 @@ declare class Map extends BaseClass {
|
|
|
22872
23064
|
type?: string;
|
|
22873
23065
|
encoderOptions?: number;
|
|
22874
23066
|
callback?: (...params: any[]) => any;
|
|
22875
|
-
}):
|
|
23067
|
+
}): Promise<any>;
|
|
22876
23068
|
/**
|
|
22877
23069
|
* 设置鼠标的默认状态样式
|
|
22878
23070
|
* @param [val] - cursor样式
|
|
@@ -24612,6 +24804,7 @@ declare class EchartsLayer extends BaseLayer {
|
|
|
24612
24804
|
* @param [options.style.arcRadiusScale = 1.5] - 曲面热力图时,radius扩大比例
|
|
24613
24805
|
* @param [options.style.arcBlurScale = 1.5] - 曲面热力图时,blur扩大比例
|
|
24614
24806
|
* @param [options.style.height = 0] - 高度,相对于椭球面的高度。
|
|
24807
|
+
* @param [options.style.diffHeight] - 曲面的起伏差值高,默认根据数据范围的比例自动计算。
|
|
24615
24808
|
* @param [options.style.多个参数] - rectangle矩形支持的样式
|
|
24616
24809
|
* @param [options.maxCanvasSize = 5000] - Canvas最大尺寸(单位:像素),调大精度更高,但过大容易内存溢出
|
|
24617
24810
|
* @param [options.minCanvasSize = 700] - Canvas最小尺寸(单位:像素)
|
|
@@ -24646,6 +24839,7 @@ declare class HeatLayer extends BaseLayer {
|
|
|
24646
24839
|
arcRadiusScale?: boolean;
|
|
24647
24840
|
arcBlurScale?: boolean;
|
|
24648
24841
|
height?: number;
|
|
24842
|
+
diffHeight?: number;
|
|
24649
24843
|
多个参数?: RectanglePrimitive.StyleOptions;
|
|
24650
24844
|
};
|
|
24651
24845
|
maxCanvasSize?: number;
|
|
@@ -24826,7 +25020,7 @@ declare class MapVLayer extends BaseLayer {
|
|
|
24826
25020
|
/**
|
|
24827
25021
|
* 视锥体的类型
|
|
24828
25022
|
*/
|
|
24829
|
-
declare
|
|
25023
|
+
declare enum SensorType {
|
|
24830
25024
|
/**
|
|
24831
25025
|
* 四棱锥
|
|
24832
25026
|
*/
|
|
@@ -25926,7 +26120,7 @@ declare class S3MLayer extends BaseLayer {
|
|
|
25926
26120
|
* @param options.rectangle.ymin - 最小纬度值, -90 至 90
|
|
25927
26121
|
* @param options.rectangle.ymax - 最大纬度值, -90 至 90
|
|
25928
26122
|
* @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
25929
|
-
* @param [options.zIndex] -
|
|
26123
|
+
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
25930
26124
|
* @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影
|
|
25931
26125
|
* @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
25932
26126
|
* @param [options.proxy] - 加载资源时要使用的代理服务url。
|
|
@@ -26486,7 +26680,7 @@ declare class BaseWidget extends BaseClass {
|
|
|
26486
26680
|
* widget事件类型枚举, mars3d.widget.EventType
|
|
26487
26681
|
* 【需要引入 mars3d-widget 插件库】
|
|
26488
26682
|
*/
|
|
26489
|
-
declare
|
|
26683
|
+
declare enum WidgetEventType {
|
|
26490
26684
|
/**
|
|
26491
26685
|
* 在实例初始化之后、创建之前执行
|
|
26492
26686
|
*/
|
|
@@ -27502,7 +27696,7 @@ declare class QueryArcServer extends BaseClass {
|
|
|
27502
27696
|
* @param [queryOptions.page = true] - 是否分页查询,false时不分页,一次性查询返回
|
|
27503
27697
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27504
27698
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27505
|
-
* @returns
|
|
27699
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27506
27700
|
*/
|
|
27507
27701
|
query(queryOptions: {
|
|
27508
27702
|
text?: string;
|
|
@@ -27513,7 +27707,7 @@ declare class QueryArcServer extends BaseClass {
|
|
|
27513
27707
|
page?: boolean;
|
|
27514
27708
|
success?: (...params: any[]) => any;
|
|
27515
27709
|
error?: (...params: any[]) => any;
|
|
27516
|
-
}):
|
|
27710
|
+
}): Promise<any>;
|
|
27517
27711
|
/**
|
|
27518
27712
|
* 清除
|
|
27519
27713
|
* @returns 无
|
|
@@ -27818,7 +28012,7 @@ declare class Measure extends BaseThing {
|
|
|
27818
28012
|
* @param [options.style] - 基准面的样式
|
|
27819
28013
|
* @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatArea}可选值:auto、m、km、mu、ha 。auto时根据面积值自动选用k或km
|
|
27820
28014
|
* @param [options.splitNum = 10] - 插值数,将面分割的网格数
|
|
27821
|
-
* @param [options.has3dtiles
|
|
28015
|
+
* @param [options.has3dtiles] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
27822
28016
|
* @param [options.minHeight] - 可以指定最低高度(单位:米)
|
|
27823
28017
|
* @param [options.maxHeight] - 可以指定最高高度(单位:米)
|
|
27824
28018
|
* @param [options.height] - 可以指定基准面高度(单位:米),默认是绘制后的最低高度值
|
|
@@ -29069,6 +29263,77 @@ declare namespace ModelPlanClip {
|
|
|
29069
29263
|
}
|
|
29070
29264
|
}
|
|
29071
29265
|
|
|
29266
|
+
/**
|
|
29267
|
+
* 3dtiles模型box盒子裁剪,
|
|
29268
|
+
* 基于clippingPlanes接口,只支持单个开挖。
|
|
29269
|
+
* @param [options] - 参数对象,包括以下:
|
|
29270
|
+
* @param options.layer - 需要裁剪的对象(3dtiles图层)
|
|
29271
|
+
* @param options.position - 裁剪盒子中心坐标位置
|
|
29272
|
+
* @param options.dimensions - 裁剪盒子区域的长度、宽度和高度
|
|
29273
|
+
* @param [options.showBox = false] - 是否显示box盒子
|
|
29274
|
+
* @param [options.boxStyle] - box盒子显示时的样式
|
|
29275
|
+
* @param [options.clipOutSide = false] - 是否外裁剪
|
|
29276
|
+
* @param [options.edgeWidth = 0] - 裁剪区域边线宽度,0时不显示
|
|
29277
|
+
* @param [options.edgeColor = Cesium.Color.WHITE] - 裁剪区域边线颜色
|
|
29278
|
+
* @param [options.id = uuid()] - 对象的id标识
|
|
29279
|
+
* @param [options.enabled = true] - 对象的启用状态
|
|
29280
|
+
* @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的map对象,false时不冒泡事件
|
|
29281
|
+
*/
|
|
29282
|
+
declare class TilesetBoxClip extends BaseThing {
|
|
29283
|
+
constructor(options?: {
|
|
29284
|
+
layer: TilesetLayer;
|
|
29285
|
+
position: LngLatPoint | Cesium.Cartesian3;
|
|
29286
|
+
dimensions: Cesium.Cartesian3;
|
|
29287
|
+
showBox?: boolean;
|
|
29288
|
+
boxStyle?: BoxEntity.StyleOptions;
|
|
29289
|
+
clipOutSide?: boolean;
|
|
29290
|
+
edgeWidth?: number;
|
|
29291
|
+
edgeColor?: Cesium.Color;
|
|
29292
|
+
id?: string | number;
|
|
29293
|
+
enabled?: boolean;
|
|
29294
|
+
eventParent?: BaseClass | boolean;
|
|
29295
|
+
});
|
|
29296
|
+
/**
|
|
29297
|
+
* 需要裁剪的对象(3dtiles图层)
|
|
29298
|
+
*/
|
|
29299
|
+
layer: TilesetLayer;
|
|
29300
|
+
/**
|
|
29301
|
+
* 裁剪面集合
|
|
29302
|
+
*/
|
|
29303
|
+
readonly planes: Cesium.ClippingPlaneCollection;
|
|
29304
|
+
/**
|
|
29305
|
+
* 获取当前转换计算模型逆矩阵,
|
|
29306
|
+
* 用于 局部坐标系 与 世界坐标系 的转换。
|
|
29307
|
+
*/
|
|
29308
|
+
readonly inverseMatrix: Cesium.Matrix4;
|
|
29309
|
+
/**
|
|
29310
|
+
* 模型当前中心点坐标
|
|
29311
|
+
*/
|
|
29312
|
+
readonly center: Cesium.Cartesian3;
|
|
29313
|
+
/**
|
|
29314
|
+
* 裁剪box中心点坐标
|
|
29315
|
+
*/
|
|
29316
|
+
position: number[] | LngLatPoint | Cesium.Cartesian3;
|
|
29317
|
+
/**
|
|
29318
|
+
* 裁剪box的长宽高
|
|
29319
|
+
*/
|
|
29320
|
+
dimensions: Cesium.Cartesian3;
|
|
29321
|
+
/**
|
|
29322
|
+
* 是否显示box盒子
|
|
29323
|
+
*/
|
|
29324
|
+
showBox: boolean;
|
|
29325
|
+
/**
|
|
29326
|
+
* 重新绘制
|
|
29327
|
+
* @returns 无
|
|
29328
|
+
*/
|
|
29329
|
+
redraw(): void;
|
|
29330
|
+
/**
|
|
29331
|
+
* 清除裁剪面
|
|
29332
|
+
* @returns 无
|
|
29333
|
+
*/
|
|
29334
|
+
clear(): void;
|
|
29335
|
+
}
|
|
29336
|
+
|
|
29072
29337
|
/**
|
|
29073
29338
|
* 3dtiles模型裁剪
|
|
29074
29339
|
* @param [options] - 参数对象,包括以下:
|
|
@@ -29305,6 +29570,7 @@ declare class TilesetFlood extends TilesetEditBase {
|
|
|
29305
29570
|
* @param [options.edgeWidth = 0] - 裁剪区域边线宽度,0时不显示
|
|
29306
29571
|
* @param [options.edgeColor = Cesium.Color.WHITE] - 裁剪区域边线颜色
|
|
29307
29572
|
* @param [options.showPlane = false] - 是否显示裁剪平面
|
|
29573
|
+
* @param [options.editPlane = false] - 是否可以拖拽裁剪平面进行编辑,需要showPlane:true时有效
|
|
29308
29574
|
* @param [options.planeStyle] - 裁剪平面显示时的样式
|
|
29309
29575
|
* @param [options.id = uuid()] - 对象的id标识
|
|
29310
29576
|
* @param [options.enabled = true] - 对象的启用状态
|
|
@@ -29321,6 +29587,7 @@ declare class TilesetPlanClip extends BaseThing {
|
|
|
29321
29587
|
edgeWidth?: number;
|
|
29322
29588
|
edgeColor?: Cesium.Color;
|
|
29323
29589
|
showPlane?: boolean;
|
|
29590
|
+
editPlane?: boolean;
|
|
29324
29591
|
planeStyle?: PlaneEntity.StyleOptions;
|
|
29325
29592
|
id?: string | number;
|
|
29326
29593
|
enabled?: boolean;
|
|
@@ -29340,10 +29607,9 @@ declare class TilesetPlanClip extends BaseThing {
|
|
|
29340
29607
|
*/
|
|
29341
29608
|
readonly inverseMatrix: Cesium.Matrix4;
|
|
29342
29609
|
/**
|
|
29343
|
-
*
|
|
29344
|
-
* 用于 局部坐标系 与 世界坐标系 的转换。
|
|
29610
|
+
* 模型当前中心点坐标
|
|
29345
29611
|
*/
|
|
29346
|
-
readonly center: Cesium.
|
|
29612
|
+
readonly center: Cesium.Cartesian3;
|
|
29347
29613
|
/**
|
|
29348
29614
|
* 更新最后一个面的 裁剪距离 (单位:米)
|
|
29349
29615
|
*/
|
|
@@ -30359,6 +30625,12 @@ declare namespace MeasureUtil {
|
|
|
30359
30625
|
* @returns 面积,单位:平方米
|
|
30360
30626
|
*/
|
|
30361
30627
|
function getArea(positions: Cesium.Cartesian3[] | LngLatPoint[]): number;
|
|
30628
|
+
/**
|
|
30629
|
+
* 求坐标数组的 横切平面的面积(基于turf.area)
|
|
30630
|
+
* @param positions - 坐标数组
|
|
30631
|
+
* @returns 距离(单位:米)
|
|
30632
|
+
*/
|
|
30633
|
+
function getSurfaceArea(positions: Cesium.Cartesian3[] | LngLatPoint[]): number;
|
|
30362
30634
|
/**
|
|
30363
30635
|
* 计算三角形面积(空间平面)
|
|
30364
30636
|
* @param pos1 - 三角形顶点坐标1
|
|
@@ -30916,7 +31188,7 @@ declare namespace PolyUtil {
|
|
|
30916
31188
|
* @param options.callback - 异步计算高度完成后 的回调方法
|
|
30917
31189
|
* @param [options.splitNum = 10] - 插值数,横纵等比分割的网格个数
|
|
30918
31190
|
* @param [options.asyn = false] - 是否进行异步精确计算
|
|
30919
|
-
* @param [options.has3dtiles
|
|
31191
|
+
* @param [options.has3dtiles] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
30920
31192
|
* @param [options.objectsToExclude = null] - 贴模型分析时,排除的不进行贴模型计算的模型对象,可以是: primitives, entities, 或 3D Tiles features
|
|
30921
31193
|
* @param [options.onlyPoint = false] - truea时,返回结果中只返回点,不返回三角网
|
|
30922
31194
|
* @returns 仅 asyn:false 时返回计算结果值
|
|
@@ -32050,6 +32322,7 @@ declare namespace thing {
|
|
|
32050
32322
|
export { LimitHeight }
|
|
32051
32323
|
export { TilesetPlanClip }
|
|
32052
32324
|
export { ModelPlanClip }
|
|
32325
|
+
export { TilesetBoxClip }
|
|
32053
32326
|
|
|
32054
32327
|
export { TilesetClip }
|
|
32055
32328
|
export { TilesetFlat }
|