mars3d 3.3.4 → 3.3.5
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 +5 -2
- package/dist/mars3d.d.ts +169 -63
- package/dist/mars3d.js +4 -4
- package/package.json +1 -1
package/dist/mars3d.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Mars3D三维可视化平台 mars3d
|
|
3
3
|
*
|
|
4
|
-
* 版本信息:v3.3.
|
|
5
|
-
* 编译日期:2022-04-
|
|
4
|
+
* 版本信息:v3.3.5
|
|
5
|
+
* 编译日期:2022-04-18 13:36:46
|
|
6
6
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
7
7
|
* 使用单位:免费公开版 ,2022-02-01
|
|
8
8
|
*/
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
overflow: hidden;
|
|
17
17
|
position: relative;
|
|
18
18
|
}
|
|
19
|
+
.cesium-viewer .cesium-widget-credits {
|
|
20
|
+
display: none;
|
|
21
|
+
}
|
|
19
22
|
/**右键菜单*/
|
|
20
23
|
.mars3d-contextmenu {
|
|
21
24
|
position: absolute;
|
package/dist/mars3d.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Mars3D三维可视化平台 mars3d
|
|
4
4
|
*
|
|
5
|
-
* 版本信息:v3.3.
|
|
6
|
-
* 编译日期:2022-04-
|
|
5
|
+
* 版本信息:v3.3.5
|
|
6
|
+
* 编译日期:2022-04-18 13:36:46
|
|
7
7
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
8
8
|
* 使用单位:免费公开版 ,2022-02-01
|
|
9
9
|
*/
|
|
@@ -3102,7 +3102,7 @@ declare class BaseCombine extends BasePrimitive {
|
|
|
3102
3102
|
* @param [options.name = ''] - 矢量数据名称
|
|
3103
3103
|
* @param [options.show = true] - 矢量数据是否显示
|
|
3104
3104
|
* @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件
|
|
3105
|
-
* @param [options.allowDrillPick] -
|
|
3105
|
+
* @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
|
|
3106
3106
|
*/
|
|
3107
3107
|
declare class BasePolyCombine extends BaseCombine {
|
|
3108
3108
|
constructor(options: {
|
|
@@ -8889,9 +8889,9 @@ declare namespace PolylineEntity {
|
|
|
8889
8889
|
* @property [outline = false] - 是否衬色
|
|
8890
8890
|
* @property [outlineColor = "#ffffff"] - 衬色颜色
|
|
8891
8891
|
* @property [outlineWidth = 2] - 衬色宽度
|
|
8892
|
-
* @property [depthFail
|
|
8893
|
-
* @property [depthFailColor
|
|
8894
|
-
* @property [depthFailOpacity
|
|
8892
|
+
* @property [depthFail] - 是否显示遮挡
|
|
8893
|
+
* @property [depthFailColor] - 遮挡处颜色
|
|
8894
|
+
* @property [depthFailOpacity] - 遮挡处透明度
|
|
8895
8895
|
* @property [distanceDisplayCondition = false] - 是否按视距显示 或 指定此框将显示在与摄像机的多大距离。
|
|
8896
8896
|
* @property [distanceDisplayCondition_far = 100000] - 最大距离
|
|
8897
8897
|
* @property [distanceDisplayCondition_near = 0] - 最小距离
|
|
@@ -12085,6 +12085,7 @@ declare namespace CirclePrimitive {
|
|
|
12085
12085
|
* @property [outline = false] - 是否边框
|
|
12086
12086
|
* @property [outlineColor = "#ffffff"] - 边框颜色
|
|
12087
12087
|
* @property [outlineOpacity = 0.6] - 边框透明度
|
|
12088
|
+
* @property [outlineStyle] - 边框的样式,会覆盖outlineColor、outlineOpacity
|
|
12088
12089
|
* @property [materialSupport = Cesium.MaterialAppearance.MaterialSupport.TEXTURED] - 将被支持的材质类型。
|
|
12089
12090
|
* @property [clampToGround = false] - 是否贴地
|
|
12090
12091
|
* @property [classificationType = Cesium.ClassificationType.BOTH] - 指定贴地时的覆盖类型,是只对地形、3dtiles 或 两者同时。
|
|
@@ -12119,6 +12120,7 @@ declare namespace CirclePrimitive {
|
|
|
12119
12120
|
outline?: boolean;
|
|
12120
12121
|
outlineColor?: string | Cesium.Color;
|
|
12121
12122
|
outlineOpacity?: number;
|
|
12123
|
+
outlineStyle?: PolylinePrimitive.StyleOptions;
|
|
12122
12124
|
materialSupport?: Cesium.MaterialAppearance.MaterialSupportType;
|
|
12123
12125
|
clampToGround?: boolean;
|
|
12124
12126
|
classificationType?: Cesium.ClassificationType;
|
|
@@ -13941,6 +13943,7 @@ declare namespace PolygonPrimitive {
|
|
|
13941
13943
|
* @property [outline = false] - 是否边框
|
|
13942
13944
|
* @property [outlineColor = "#ffffff"] - 边框颜色
|
|
13943
13945
|
* @property [outlineOpacity = 0.6] - 边框透明度
|
|
13946
|
+
* @property [outlineStyle] - 边框的样式,会覆盖outlineColor、outlineOpacity
|
|
13944
13947
|
* @property [height = 0] - 高程,圆相对于椭球面的高度。
|
|
13945
13948
|
* @property [diffHeight = 100] - 高度差(走廊本身的高度),与extrudedHeight二选一。
|
|
13946
13949
|
* @property [extrudedHeight] - 指定走廊挤压面相对于椭球面的高度。
|
|
@@ -13983,6 +13986,7 @@ declare namespace PolygonPrimitive {
|
|
|
13983
13986
|
outline?: boolean;
|
|
13984
13987
|
outlineColor?: string | Cesium.Color;
|
|
13985
13988
|
outlineOpacity?: number;
|
|
13989
|
+
outlineStyle?: PolylinePrimitive.StyleOptions;
|
|
13986
13990
|
height?: number;
|
|
13987
13991
|
diffHeight?: number;
|
|
13988
13992
|
extrudedHeight?: number;
|
|
@@ -14093,6 +14097,9 @@ declare namespace PolylinePrimitive {
|
|
|
14093
14097
|
* @property [colors] - 定义每顶点或每段颜色 的数组。
|
|
14094
14098
|
* @property [colorsPerVertex = false] - 用于确定颜色在线条的每一段上是平坦的还是在顶点上插值的。
|
|
14095
14099
|
* @property [closure = false] - 是否闭合
|
|
14100
|
+
* @property [depthFail] - 是否显示遮挡
|
|
14101
|
+
* @property [depthFailColor] - 遮挡处颜色
|
|
14102
|
+
* @property [depthFailOpacity] - 遮挡处透明度
|
|
14096
14103
|
* @property [distanceDisplayCondition = false] - 是否按视距显示 或 指定此框将显示在与摄像机的多大距离。
|
|
14097
14104
|
* @property [distanceDisplayCondition_far = 100000] - 最大距离
|
|
14098
14105
|
* @property [distanceDisplayCondition_near = 0] - 最小距离
|
|
@@ -14120,6 +14127,9 @@ declare namespace PolylinePrimitive {
|
|
|
14120
14127
|
colors?: Cesium.Color[];
|
|
14121
14128
|
colorsPerVertex?: boolean;
|
|
14122
14129
|
closure?: boolean;
|
|
14130
|
+
depthFail?: boolean;
|
|
14131
|
+
depthFailColor?: string;
|
|
14132
|
+
depthFailOpacity?: number;
|
|
14123
14133
|
distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition;
|
|
14124
14134
|
distanceDisplayCondition_far?: number;
|
|
14125
14135
|
distanceDisplayCondition_near?: number;
|
|
@@ -14380,6 +14390,7 @@ declare namespace RectanglePrimitive {
|
|
|
14380
14390
|
* @property [outline = false] - 是否边框
|
|
14381
14391
|
* @property [outlineColor = "#ffffff"] - 边框颜色
|
|
14382
14392
|
* @property [outlineOpacity = 0.6] - 边框透明度
|
|
14393
|
+
* @property [outlineStyle] - 边框的样式,会覆盖outlineColor、outlineOpacity
|
|
14383
14394
|
* @property [height = 0] - 高程,圆相对于椭球面的高度。
|
|
14384
14395
|
* @property [diffHeight = 100] - 高度差(走廊本身的高度),与extrudedHeight二选一。
|
|
14385
14396
|
* @property [extrudedHeight] - 指定走廊挤压面相对于椭球面的高度。
|
|
@@ -14406,6 +14417,7 @@ declare namespace RectanglePrimitive {
|
|
|
14406
14417
|
outline?: boolean;
|
|
14407
14418
|
outlineColor?: string | Cesium.Color;
|
|
14408
14419
|
outlineOpacity?: number;
|
|
14420
|
+
outlineStyle?: PolylinePrimitive.StyleOptions;
|
|
14409
14421
|
height?: number;
|
|
14410
14422
|
diffHeight?: number;
|
|
14411
14423
|
extrudedHeight?: number;
|
|
@@ -16065,11 +16077,6 @@ declare class BaseLayer extends BaseClass {
|
|
|
16065
16077
|
* @returns 当前对象本身,可以链式调用
|
|
16066
16078
|
*/
|
|
16067
16079
|
showError(title: string, error: any): BaseLayer;
|
|
16068
|
-
/**
|
|
16069
|
-
* 入场动画后再执行flyTo,直接调用flyTo可能造成入场动画失败。
|
|
16070
|
-
* @returns 当前对象本身,可以链式调用
|
|
16071
|
-
*/
|
|
16072
|
-
flyToByAnimationEnd(): BaseLayer;
|
|
16073
16080
|
/**
|
|
16074
16081
|
* 飞行定位至图层数据所在的视角
|
|
16075
16082
|
* @param [options = {}] - 参数对象:
|
|
@@ -18586,6 +18593,14 @@ declare class TilesetLayer extends BaseGraphicLayer {
|
|
|
18586
18593
|
* 模型对应的 Cesium3DTileset对象
|
|
18587
18594
|
*/
|
|
18588
18595
|
readonly tileset: Cesium.Cesium3DTileset;
|
|
18596
|
+
/**
|
|
18597
|
+
* 变换矩阵。
|
|
18598
|
+
*/
|
|
18599
|
+
readonly modelMatrix: Cesium.Matrix4;
|
|
18600
|
+
/**
|
|
18601
|
+
* 逆变换矩阵。
|
|
18602
|
+
*/
|
|
18603
|
+
readonly inverseMatrix: Cesium.Matrix4;
|
|
18589
18604
|
/**
|
|
18590
18605
|
* 鼠标移入或单击(type:'click')后的对应高亮的部分样式,空值时不高亮
|
|
18591
18606
|
*/
|
|
@@ -18852,7 +18867,7 @@ declare class WfsLayer extends LodGraphicLayer {
|
|
|
18852
18867
|
url: string;
|
|
18853
18868
|
parameters?: {
|
|
18854
18869
|
maxFeatures?: number;
|
|
18855
|
-
cql_filter?:
|
|
18870
|
+
cql_filter?: string;
|
|
18856
18871
|
service?: string;
|
|
18857
18872
|
version?: string;
|
|
18858
18873
|
};
|
|
@@ -19281,8 +19296,7 @@ declare namespace ArcGisLayer {
|
|
|
19281
19296
|
* @param [options.crs = CRS.EPSG:3857] - 瓦片数据的坐标系信息,默认为墨卡托投影
|
|
19282
19297
|
* @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
19283
19298
|
* @param [options.enablePickFeatures = true] - 如果为true,则请求 单击坐标处服务中对应的矢量数据 并尝试解释响应中包含的功能。为false时不去服务请求。
|
|
19284
|
-
* @param [options.
|
|
19285
|
-
* @param [options.maxLength = 5000] - 单击获取到的数据,最大数据长度。大数据解析很卡,可以设定阀值屏蔽大数据,避免卡顿。传-1时不限制
|
|
19299
|
+
* @param [options.graphicConver] - 单击获取到的数据进行按需筛选解析,大数据解析很卡,可以设定阀值屏蔽大数据,避免卡顿,number类型时代表字符串长度值。
|
|
19286
19300
|
* @param [options.highlight] - 鼠标单击高亮显示对应的矢量数据 及其样式,具体见各{@link GraphicType}矢量数据的style参数。
|
|
19287
19301
|
* @param [options.highlight.type] - 构造成的矢量数据类型。
|
|
19288
19302
|
* @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板
|
|
@@ -19353,8 +19367,7 @@ declare class ArcGisLayer extends BaseTileLayer {
|
|
|
19353
19367
|
crs?: CRS;
|
|
19354
19368
|
chinaCRS?: ChinaCRS;
|
|
19355
19369
|
enablePickFeatures?: boolean;
|
|
19356
|
-
|
|
19357
|
-
maxLength?: number;
|
|
19370
|
+
graphicConver?: number | boolean | ((...params: any[]) => any);
|
|
19358
19371
|
highlight?: {
|
|
19359
19372
|
type?: GraphicType | string;
|
|
19360
19373
|
};
|
|
@@ -21787,10 +21800,8 @@ declare class TmsLayer extends BaseTileLayer {
|
|
|
21787
21800
|
* @param [options.clock] - 一个时钟实例,用于确定时间维度的值。指定' times '时需要。
|
|
21788
21801
|
* @param [options.times] - TimeIntervalCollection 的数据属性是一个包含时间动态维度及其值的对象。
|
|
21789
21802
|
* @param [options.enablePickFeatures = true] - 如果为true,则请求 单击坐标处服务中对应的矢量数据 并尝试解释响应中包含的功能。为false时不去服务请求。
|
|
21790
|
-
* @param [options.
|
|
21791
|
-
* @param [options.
|
|
21792
|
-
* @param [options.highlight] - 鼠标单击高亮显示对应的矢量数据 及其样式,具体见各{@link GraphicType}矢量数据的style参数。
|
|
21793
|
-
* @param [options.highlight.type] - 构造成的矢量数据类型。
|
|
21803
|
+
* @param [options.graphicConver] - 单击获取到的数据进行按需筛选解析,大数据解析很卡,可以设定阀值屏蔽大数据,避免卡顿,number类型时代表字符串长度值。
|
|
21804
|
+
* @param [options.highlight] - 鼠标单击高亮显示对应的矢量数据 及其样式,包括type参数指定构造的类型,其他参数见各{@link GraphicType}矢量数据的style参数项。
|
|
21794
21805
|
* @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板
|
|
21795
21806
|
* @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括:
|
|
21796
21807
|
* @param [options.popupOptions.title] - 固定的标题名称
|
|
@@ -21849,7 +21860,7 @@ declare class WmsLayer extends BaseTileLayer {
|
|
|
21849
21860
|
parameters?: {
|
|
21850
21861
|
format?: string;
|
|
21851
21862
|
transparent?: boolean;
|
|
21852
|
-
cql_filter?:
|
|
21863
|
+
cql_filter?: string;
|
|
21853
21864
|
service?: string;
|
|
21854
21865
|
version?: string;
|
|
21855
21866
|
request?: string;
|
|
@@ -21861,11 +21872,8 @@ declare class WmsLayer extends BaseTileLayer {
|
|
|
21861
21872
|
clock?: Cesium.Clock;
|
|
21862
21873
|
times?: Cesium.TimeIntervalCollection;
|
|
21863
21874
|
enablePickFeatures?: boolean;
|
|
21864
|
-
|
|
21865
|
-
|
|
21866
|
-
highlight?: {
|
|
21867
|
-
type?: GraphicType | string;
|
|
21868
|
-
};
|
|
21875
|
+
graphicConver?: number | boolean | ((...params: any[]) => any);
|
|
21876
|
+
highlight?: any;
|
|
21869
21877
|
popup?: string | Globe.getTemplateHtml_template[] | ((...params: any[]) => any);
|
|
21870
21878
|
popupOptions?: {
|
|
21871
21879
|
title?: string;
|
|
@@ -26035,6 +26043,13 @@ declare class S3MLayer extends BaseLayer {
|
|
|
26035
26043
|
* 设置S3M图层本身支持的参数
|
|
26036
26044
|
*/
|
|
26037
26045
|
s3mOptions: any;
|
|
26046
|
+
/**
|
|
26047
|
+
* 遍历每一个子图层并将其作为参数传递给回调函数
|
|
26048
|
+
* @param method - 回调方法
|
|
26049
|
+
* @param context - 侦听器的上下文(this关键字将指向的对象)。
|
|
26050
|
+
* @returns 当前对象本身,可以链式调用
|
|
26051
|
+
*/
|
|
26052
|
+
eachLayer(method: (...params: any[]) => any, context: any): GroupLayer;
|
|
26038
26053
|
/**
|
|
26039
26054
|
* 设置透明度
|
|
26040
26055
|
* @param value - 透明度
|
|
@@ -27211,13 +27226,13 @@ declare class BaiduPOI {
|
|
|
27211
27226
|
* @param [queryOptions.location = null] - 经纬度坐标
|
|
27212
27227
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27213
27228
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27214
|
-
* @returns
|
|
27229
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27215
27230
|
*/
|
|
27216
27231
|
getAddress(queryOptions: {
|
|
27217
27232
|
location?: LngLatPoint | Cesium.Cartesian3 | string | any[] | any;
|
|
27218
27233
|
success?: (...params: any[]) => any;
|
|
27219
27234
|
error?: (...params: any[]) => any;
|
|
27220
|
-
}):
|
|
27235
|
+
}): Promise<any>;
|
|
27221
27236
|
/**
|
|
27222
27237
|
* 搜索提示查询
|
|
27223
27238
|
* @param queryOptions - 查询参数
|
|
@@ -27227,7 +27242,7 @@ declare class BaiduPOI {
|
|
|
27227
27242
|
* @param [queryOptions.citylimit = false] - 取值为"true",仅返回city中指定城市检索结果
|
|
27228
27243
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27229
27244
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27230
|
-
* @returns
|
|
27245
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27231
27246
|
*/
|
|
27232
27247
|
autoTip(queryOptions: {
|
|
27233
27248
|
text: string;
|
|
@@ -27236,7 +27251,7 @@ declare class BaiduPOI {
|
|
|
27236
27251
|
citylimit?: boolean;
|
|
27237
27252
|
success?: (...params: any[]) => any;
|
|
27238
27253
|
error?: (...params: any[]) => any;
|
|
27239
|
-
}):
|
|
27254
|
+
}): Promise<any>;
|
|
27240
27255
|
/**
|
|
27241
27256
|
* 关键字搜索
|
|
27242
27257
|
* @param queryOptions - 查询参数
|
|
@@ -27253,7 +27268,7 @@ declare class BaiduPOI {
|
|
|
27253
27268
|
* @param [queryOptions.count = 20] - 单次召回POI数量,最大返回20条。多关键字检索时,返回的记录数为关键字个数*count。多关键词检索时,单页返回总数=关键词数量*count
|
|
27254
27269
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27255
27270
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27256
|
-
* @returns
|
|
27271
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27257
27272
|
*/
|
|
27258
27273
|
queryText(queryOptions: {
|
|
27259
27274
|
text: string;
|
|
@@ -27270,7 +27285,7 @@ declare class BaiduPOI {
|
|
|
27270
27285
|
count?: number;
|
|
27271
27286
|
success?: (...params: any[]) => any;
|
|
27272
27287
|
error?: (...params: any[]) => any;
|
|
27273
|
-
}):
|
|
27288
|
+
}): Promise<any>;
|
|
27274
27289
|
/**
|
|
27275
27290
|
* 周边搜索(圆形搜索)
|
|
27276
27291
|
* @param queryOptions - 查询参数
|
|
@@ -27283,7 +27298,7 @@ declare class BaiduPOI {
|
|
|
27283
27298
|
* @param [queryOptions.page = 0] - 分页页码,默认为0, 0代表第一页,1代表第二页,以此类推。常与 count 搭配使用,仅当返回结果为poi时可以翻页。
|
|
27284
27299
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27285
27300
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27286
|
-
* @returns
|
|
27301
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27287
27302
|
*/
|
|
27288
27303
|
queryCircle(queryOptions: {
|
|
27289
27304
|
text: string;
|
|
@@ -27295,7 +27310,7 @@ declare class BaiduPOI {
|
|
|
27295
27310
|
page?: number;
|
|
27296
27311
|
success?: (...params: any[]) => any;
|
|
27297
27312
|
error?: (...params: any[]) => any;
|
|
27298
|
-
}):
|
|
27313
|
+
}): Promise<any>;
|
|
27299
27314
|
}
|
|
27300
27315
|
|
|
27301
27316
|
/**
|
|
@@ -27326,13 +27341,13 @@ declare class GaodePOI {
|
|
|
27326
27341
|
* @param [queryOptions.location] - 经纬度坐标
|
|
27327
27342
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27328
27343
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27329
|
-
* @returns
|
|
27344
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27330
27345
|
*/
|
|
27331
27346
|
getAddress(queryOptions: {
|
|
27332
27347
|
location?: LngLatPoint | Cesium.Cartesian3 | string | any[] | any;
|
|
27333
27348
|
success?: (...params: any[]) => any;
|
|
27334
27349
|
error?: (...params: any[]) => any;
|
|
27335
|
-
}):
|
|
27350
|
+
}): Promise<any>;
|
|
27336
27351
|
/**
|
|
27337
27352
|
* 高德搜索提示
|
|
27338
27353
|
* @param queryOptions - 查询参数
|
|
@@ -27342,7 +27357,7 @@ declare class GaodePOI {
|
|
|
27342
27357
|
* @param [queryOptions.citylimit = false] - 取值为"true",仅返回city中指定城市检索结果
|
|
27343
27358
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27344
27359
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27345
|
-
* @returns
|
|
27360
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27346
27361
|
*/
|
|
27347
27362
|
autoTip(queryOptions: {
|
|
27348
27363
|
text: string;
|
|
@@ -27351,7 +27366,7 @@ declare class GaodePOI {
|
|
|
27351
27366
|
citylimit?: boolean;
|
|
27352
27367
|
success?: (...params: any[]) => any;
|
|
27353
27368
|
error?: (...params: any[]) => any;
|
|
27354
|
-
}):
|
|
27369
|
+
}): Promise<any>;
|
|
27355
27370
|
/**
|
|
27356
27371
|
* 按限定区域搜索
|
|
27357
27372
|
* @param queryOptions - 查询参数
|
|
@@ -27363,7 +27378,7 @@ declare class GaodePOI {
|
|
|
27363
27378
|
* @param [queryOptions.count = 20] - 单次召回POI数量,默认为10条记录,最大返回20条。多关键字检索时,返回的记录数为关键字个数*count。多关键词检索时,单页返回总数=关键词数量*count
|
|
27364
27379
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27365
27380
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27366
|
-
* @returns
|
|
27381
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27367
27382
|
*/
|
|
27368
27383
|
query(queryOptions: {
|
|
27369
27384
|
text: string;
|
|
@@ -27374,7 +27389,20 @@ declare class GaodePOI {
|
|
|
27374
27389
|
count?: number;
|
|
27375
27390
|
error?: (...params: any[]) => any;
|
|
27376
27391
|
success?: (...params: any[]) => any;
|
|
27377
|
-
}):
|
|
27392
|
+
}): Promise<any>;
|
|
27393
|
+
/**
|
|
27394
|
+
* 根据ID获取POI点详情
|
|
27395
|
+
* @param queryOptions - 查询参数
|
|
27396
|
+
* @param queryOptions.id - AOI唯一标识, 最多可以传入1个id,传入目标区域的poiid即可
|
|
27397
|
+
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27398
|
+
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27399
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27400
|
+
*/
|
|
27401
|
+
detail(queryOptions: {
|
|
27402
|
+
id: string;
|
|
27403
|
+
success?: (...params: any[]) => any;
|
|
27404
|
+
error?: (...params: any[]) => any;
|
|
27405
|
+
}): Promise<any>;
|
|
27378
27406
|
/**
|
|
27379
27407
|
* 关键字搜索
|
|
27380
27408
|
* @param queryOptions - 查询参数
|
|
@@ -27386,7 +27414,7 @@ declare class GaodePOI {
|
|
|
27386
27414
|
* @param [queryOptions.page = 0] - 分页页码,默认为0, 0代表第一页,1代表第二页,以此类推。常与 count 搭配使用,仅当返回结果为poi时可以翻页。
|
|
27387
27415
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27388
27416
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27389
|
-
* @returns
|
|
27417
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27390
27418
|
*/
|
|
27391
27419
|
queryText(queryOptions: {
|
|
27392
27420
|
text: string;
|
|
@@ -27397,7 +27425,7 @@ declare class GaodePOI {
|
|
|
27397
27425
|
page?: number;
|
|
27398
27426
|
success?: (...params: any[]) => any;
|
|
27399
27427
|
error?: (...params: any[]) => any;
|
|
27400
|
-
}):
|
|
27428
|
+
}): Promise<any>;
|
|
27401
27429
|
/**
|
|
27402
27430
|
* 周边搜索(圆形搜索)
|
|
27403
27431
|
* @param queryOptions - 查询参数
|
|
@@ -27410,7 +27438,7 @@ declare class GaodePOI {
|
|
|
27410
27438
|
* @param [queryOptions.page = 0] - 分页页码,默认为0, 0代表第一页,1代表第二页,以此类推。常与 count 搭配使用,仅当返回结果为poi时可以翻页。
|
|
27411
27439
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27412
27440
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27413
|
-
* @returns
|
|
27441
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27414
27442
|
*/
|
|
27415
27443
|
queryCircle(queryOptions: {
|
|
27416
27444
|
text: string;
|
|
@@ -27422,7 +27450,7 @@ declare class GaodePOI {
|
|
|
27422
27450
|
page?: number;
|
|
27423
27451
|
success?: (...params: any[]) => any;
|
|
27424
27452
|
error?: (...params: any[]) => any;
|
|
27425
|
-
}):
|
|
27453
|
+
}): Promise<any>;
|
|
27426
27454
|
/**
|
|
27427
27455
|
* 多边形搜索
|
|
27428
27456
|
* @param queryOptions - 查询参数
|
|
@@ -27434,7 +27462,7 @@ declare class GaodePOI {
|
|
|
27434
27462
|
* @param [queryOptions.page = 0] - 分页页码,默认为0, 0代表第一页,1代表第二页,以此类推。常与 count 搭配使用,仅当返回结果为poi时可以翻页。
|
|
27435
27463
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27436
27464
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27437
|
-
* @returns
|
|
27465
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27438
27466
|
*/
|
|
27439
27467
|
queryPolygon(queryOptions: {
|
|
27440
27468
|
text: string;
|
|
@@ -27445,7 +27473,7 @@ declare class GaodePOI {
|
|
|
27445
27473
|
page?: number;
|
|
27446
27474
|
success?: (...params: any[]) => any;
|
|
27447
27475
|
error?: (...params: any[]) => any;
|
|
27448
|
-
}):
|
|
27476
|
+
}): Promise<any>;
|
|
27449
27477
|
}
|
|
27450
27478
|
|
|
27451
27479
|
/**
|
|
@@ -27477,14 +27505,14 @@ declare class GaodeRoute {
|
|
|
27477
27505
|
* @param queryOptions.points - 按起点、终点 顺序的坐标数组,如[[117.500244, 40.417801],[117.500244, 40.417801]]
|
|
27478
27506
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27479
27507
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27480
|
-
* @returns
|
|
27508
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27481
27509
|
*/
|
|
27482
27510
|
query(queryOptions: {
|
|
27483
27511
|
type: GaodeRoute.RouteType | number;
|
|
27484
27512
|
points: any[][];
|
|
27485
27513
|
success?: (...params: any[]) => any;
|
|
27486
27514
|
error?: (...params: any[]) => any;
|
|
27487
|
-
}):
|
|
27515
|
+
}): Promise<any>;
|
|
27488
27516
|
/**
|
|
27489
27517
|
* 按指定类别自动查询(多个路线数组,递归处理)
|
|
27490
27518
|
* @param queryOptions - 查询参数
|
|
@@ -27495,14 +27523,14 @@ declare class GaodeRoute {
|
|
|
27495
27523
|
* ]
|
|
27496
27524
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27497
27525
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27498
|
-
* @returns
|
|
27526
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27499
27527
|
*/
|
|
27500
27528
|
queryArr(queryOptions: {
|
|
27501
27529
|
type: GaodeRoute.RouteType;
|
|
27502
27530
|
points: any[][];
|
|
27503
27531
|
success?: (...params: any[]) => any;
|
|
27504
27532
|
error?: (...params: any[]) => any;
|
|
27505
|
-
}):
|
|
27533
|
+
}): Promise<any>;
|
|
27506
27534
|
/**
|
|
27507
27535
|
* 计算结果中的最短距离的导航路径
|
|
27508
27536
|
* @param data - queryArr返回的结果数组
|
|
@@ -27515,26 +27543,26 @@ declare class GaodeRoute {
|
|
|
27515
27543
|
* @param queryOptions.points - 按起点、终点 顺序的坐标数组,如[[117.500244, 40.417801],[117.500244, 40.417801]]
|
|
27516
27544
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27517
27545
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27518
|
-
* @returns
|
|
27546
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27519
27547
|
*/
|
|
27520
27548
|
queryWalking(queryOptions: {
|
|
27521
27549
|
points: any[][];
|
|
27522
27550
|
success?: (...params: any[]) => any;
|
|
27523
27551
|
error?: (...params: any[]) => any;
|
|
27524
|
-
}):
|
|
27552
|
+
}): Promise<any>;
|
|
27525
27553
|
/**
|
|
27526
27554
|
* 骑行路径查询 (单个查询)
|
|
27527
27555
|
* @param queryOptions - 查询参数
|
|
27528
27556
|
* @param queryOptions.points - 按起点、终点 顺序的坐标数组,如[[117.500244, 40.417801],[117.500244, 40.417801]]
|
|
27529
27557
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27530
27558
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27531
|
-
* @returns
|
|
27559
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27532
27560
|
*/
|
|
27533
27561
|
queryBicycling(queryOptions: {
|
|
27534
27562
|
points: any[][];
|
|
27535
27563
|
success?: (...params: any[]) => any;
|
|
27536
27564
|
error?: (...params: any[]) => any;
|
|
27537
|
-
}):
|
|
27565
|
+
}): Promise<any>;
|
|
27538
27566
|
/**
|
|
27539
27567
|
* 驾车路径规划查询
|
|
27540
27568
|
* @param queryOptions - 查询参数
|
|
@@ -27544,7 +27572,7 @@ declare class GaodeRoute {
|
|
|
27544
27572
|
* @param [queryOptions.strategy = 0] - 驾车选择策略,参考高德官网说明,默认为0:速度优先,不考虑当时路况,此路线不一定距离最短
|
|
27545
27573
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27546
27574
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27547
|
-
* @returns
|
|
27575
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27548
27576
|
*/
|
|
27549
27577
|
queryDriving(queryOptions: {
|
|
27550
27578
|
points: any[][];
|
|
@@ -27553,7 +27581,7 @@ declare class GaodeRoute {
|
|
|
27553
27581
|
strategy?: string;
|
|
27554
27582
|
success?: (...params: any[]) => any;
|
|
27555
27583
|
error?: (...params: any[]) => any;
|
|
27556
|
-
}):
|
|
27584
|
+
}): Promise<any>;
|
|
27557
27585
|
}
|
|
27558
27586
|
|
|
27559
27587
|
declare namespace GaodeRoute {
|
|
@@ -27699,6 +27727,7 @@ declare class QueryArcServer extends BaseClass {
|
|
|
27699
27727
|
* @param options - 参数对象,包括以下:
|
|
27700
27728
|
* @param options.url - GeoServer服务地址, 示例:'http://server.mars3d.cn/geoserver/mars/wfs'
|
|
27701
27729
|
* @param options.layer - 图层名称(命名空间:图层名称),多个图层名称用逗号隔开
|
|
27730
|
+
* @param [options.crs = "EPSG:4326"] - 服务数据的坐标系,如'EPSG:4326' (可以从 {@link http://epsg.io }查询)
|
|
27702
27731
|
* @param [options.headers = {}] - 将被添加到HTTP请求头。
|
|
27703
27732
|
* @param [options.proxy] - 加载资源时使用的代理。
|
|
27704
27733
|
*
|
|
@@ -27715,6 +27744,7 @@ declare class QueryGeoServer extends BaseClass {
|
|
|
27715
27744
|
constructor(options: {
|
|
27716
27745
|
url: string;
|
|
27717
27746
|
layer: string;
|
|
27747
|
+
crs?: string;
|
|
27718
27748
|
headers?: any;
|
|
27719
27749
|
proxy?: Cesium.Proxy;
|
|
27720
27750
|
id?: string | number;
|
|
@@ -27759,7 +27789,7 @@ declare class QueryGeoServer extends BaseClass {
|
|
|
27759
27789
|
/**
|
|
27760
27790
|
* 查询服务,基于cql_filter条件
|
|
27761
27791
|
* @param queryOptions - 查询参数
|
|
27762
|
-
* @param queryOptions.
|
|
27792
|
+
* @param queryOptions.cql_filter - 筛选服务数据的[SQL语句]{@link https://docs.geoserver.org/2.12.2/user/services/wfs/vendor.html#wfs-vendor-parameters}
|
|
27763
27793
|
* @param [queryOptions.graphic] - 限定的搜索区域,自动转换后加入到cql_filter中,也可以外部自行处理
|
|
27764
27794
|
* @param [queryOptions.geometryName = 'the_geom'] - 限定的搜索区域时,对应的geometry字段名称
|
|
27765
27795
|
* @param [queryOptions.maxFeatures = 1000] - 返回结果最大数量
|
|
@@ -27770,6 +27800,7 @@ declare class QueryGeoServer extends BaseClass {
|
|
|
27770
27800
|
* @returns 当前对象本身,可以链式调用
|
|
27771
27801
|
*/
|
|
27772
27802
|
queryBySql(queryOptions: {
|
|
27803
|
+
cql_filter: string;
|
|
27773
27804
|
graphic?: BaseGraphic | any;
|
|
27774
27805
|
geometryName?: string;
|
|
27775
27806
|
maxFeatures?: number;
|
|
@@ -29362,16 +29393,11 @@ declare class TilesetEditBase extends BaseThing {
|
|
|
29362
29393
|
/**
|
|
29363
29394
|
* 需要分析的模型 对应的 Cesium3DTileset 对象
|
|
29364
29395
|
*/
|
|
29365
|
-
tileset: Cesium.Cesium3DTileset;
|
|
29396
|
+
readonly tileset: Cesium.Cesium3DTileset;
|
|
29366
29397
|
/**
|
|
29367
29398
|
* 压平高度 (单位:米),基于压平区域最低点高度的偏移量
|
|
29368
29399
|
*/
|
|
29369
29400
|
readonly layerHeight: number;
|
|
29370
|
-
/**
|
|
29371
|
-
* 获取当前转换计算模型逆矩阵,
|
|
29372
|
-
* 用于 局部坐标系 与 世界坐标系 的转换。
|
|
29373
|
-
*/
|
|
29374
|
-
readonly inverseMatrix: Cesium.Matrix4;
|
|
29375
29401
|
/**
|
|
29376
29402
|
* 坐标位置数组,只显示单个区域【单个区域场景时使用】
|
|
29377
29403
|
*/
|
|
@@ -29436,10 +29462,73 @@ declare class TilesetFlat extends TilesetEditBase {
|
|
|
29436
29462
|
enabled?: boolean;
|
|
29437
29463
|
eventParent?: BaseClass | boolean;
|
|
29438
29464
|
});
|
|
29465
|
+
/**
|
|
29466
|
+
* 区域 列表
|
|
29467
|
+
*/
|
|
29468
|
+
readonly list: any;
|
|
29469
|
+
/**
|
|
29470
|
+
* 需要分析的模型(3dtiles图层)
|
|
29471
|
+
*/
|
|
29472
|
+
layer: TilesetLayer;
|
|
29473
|
+
/**
|
|
29474
|
+
* 需要分析的模型 对应的 Cesium3DTileset 对象
|
|
29475
|
+
*/
|
|
29476
|
+
readonly tileset: Cesium.Cesium3DTileset;
|
|
29477
|
+
/**
|
|
29478
|
+
* 压平高度 (单位:米),基于压平区域最低点高度的偏移量
|
|
29479
|
+
*/
|
|
29480
|
+
readonly layerHeight: number;
|
|
29481
|
+
/**
|
|
29482
|
+
* 坐标位置数组,只显示单个区域【单个区域场景时使用】
|
|
29483
|
+
*/
|
|
29484
|
+
positions: any[][] | string[] | LngLatPoint[] | Cesium.Cartesian3[];
|
|
29485
|
+
/**
|
|
29486
|
+
* 已添加的区域个数
|
|
29487
|
+
*/
|
|
29488
|
+
readonly length: number;
|
|
29489
|
+
/**
|
|
29490
|
+
* 添加单个区域
|
|
29491
|
+
* @param positions - 坐标位置数组
|
|
29492
|
+
* @param [options = {}] - 控制的参数
|
|
29493
|
+
* @param [options.height] - 开挖深度(地形开挖时,可以控制单个区域的开挖深度)
|
|
29494
|
+
* @returns 添加区域的记录对象
|
|
29495
|
+
*/
|
|
29496
|
+
addArea(positions: string[] | any[][] | LngLatPoint[] | Cesium.Cartesian3[], options?: {
|
|
29497
|
+
height?: any;
|
|
29498
|
+
}): any;
|
|
29499
|
+
/**
|
|
29500
|
+
* 根据id获取区域对象
|
|
29501
|
+
* @param id - id值
|
|
29502
|
+
* @returns 区域对象
|
|
29503
|
+
*/
|
|
29504
|
+
getAreaById(id: number): any;
|
|
29505
|
+
/**
|
|
29506
|
+
* 隐藏单个区域
|
|
29507
|
+
* @param id - 区域id值
|
|
29508
|
+
* @returns 无
|
|
29509
|
+
*/
|
|
29510
|
+
hideArea(id: number): void;
|
|
29511
|
+
/**
|
|
29512
|
+
* 显示单个区域
|
|
29513
|
+
* @param id - 区域id值
|
|
29514
|
+
* @returns 无
|
|
29515
|
+
*/
|
|
29516
|
+
showArea(id: number): void;
|
|
29517
|
+
/**
|
|
29518
|
+
* 移除单个区域
|
|
29519
|
+
* @param item - 区域的id,或 addArea返回的区域对象
|
|
29520
|
+
* @returns 无
|
|
29521
|
+
*/
|
|
29522
|
+
removeArea(item: number | any): void;
|
|
29439
29523
|
/**
|
|
29440
29524
|
* 压平高度 (单位:米),基于压平区域最低点高度的偏移量
|
|
29441
29525
|
*/
|
|
29442
29526
|
height: number;
|
|
29527
|
+
/**
|
|
29528
|
+
* 清除分析
|
|
29529
|
+
* @returns 无
|
|
29530
|
+
*/
|
|
29531
|
+
clear(): void;
|
|
29443
29532
|
}
|
|
29444
29533
|
|
|
29445
29534
|
declare namespace TilesetFlood {
|
|
@@ -31970,6 +32059,23 @@ declare namespace Util {
|
|
|
31970
32059
|
templateValues?: any;
|
|
31971
32060
|
headers?: any;
|
|
31972
32061
|
}): Promise<any>;
|
|
32062
|
+
/**
|
|
32063
|
+
* 请求服务返回结果,方法是基于axios库精简的
|
|
32064
|
+
* @param options - 请求参数
|
|
32065
|
+
* @param options.url - 服务URL地址
|
|
32066
|
+
* @param [options.queryParameters] - 与请求一起发送的 URL 参数,例如 {id: 1987 }
|
|
32067
|
+
* @param [options.method = "get"] - 请求类型
|
|
32068
|
+
* @param [options.timeout = 0] - 是否超时
|
|
32069
|
+
* @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }
|
|
32070
|
+
* @returns 返回Promise异步处理结果,对象为response对象
|
|
32071
|
+
*/
|
|
32072
|
+
function sendAjax(options: {
|
|
32073
|
+
url: string;
|
|
32074
|
+
queryParameters?: any;
|
|
32075
|
+
method?: string;
|
|
32076
|
+
timeout?: number;
|
|
32077
|
+
headers?: any;
|
|
32078
|
+
}): Promise<any>;
|
|
31973
32079
|
/**
|
|
31974
32080
|
* 根据设置的lang参数,获取当前key对应语言的文本内容。
|
|
31975
32081
|
* @param key - 文本key
|