mars3d 3.3.4 → 3.3.7
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 +14 -2
- package/dist/mars3d.d.ts +903 -186
- package/dist/mars3d.js +4 -4
- package/package.json +2 -2
package/dist/mars3d.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Mars3D三维可视化平台 mars3d
|
|
4
4
|
*
|
|
5
|
-
* 版本信息:v3.3.
|
|
6
|
-
* 编译日期:2022-
|
|
5
|
+
* 版本信息:v3.3.7
|
|
6
|
+
* 编译日期:2022-05-02 10:37:17
|
|
7
7
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
8
8
|
* 使用单位:免费公开版 ,2022-02-01
|
|
9
9
|
*/
|
|
@@ -973,6 +973,13 @@ declare namespace MaterialType {
|
|
|
973
973
|
* @property [speed = 5.0] - 速度,值越大越快
|
|
974
974
|
*/
|
|
975
975
|
const LineTrail: string;
|
|
976
|
+
/**
|
|
977
|
+
* 线状: 泛光线 材质
|
|
978
|
+
* @property [color = Cesium.Color.ORANGE] - 泛光颜色
|
|
979
|
+
* @property [glow = 1.0] - 泛光强度
|
|
980
|
+
* @property [speed = 5.0] - 速度,值越大越快
|
|
981
|
+
*/
|
|
982
|
+
const LineBloom: string;
|
|
976
983
|
/**
|
|
977
984
|
* 墙体: 走马灯围墙 材质
|
|
978
985
|
* @property [image] - 背景图片URL
|
|
@@ -1082,6 +1089,20 @@ declare namespace MaterialType {
|
|
|
1082
1089
|
* @property [grainFrequency = 27.0] - 颗粒的频率
|
|
1083
1090
|
*/
|
|
1084
1091
|
const PolyWood: string;
|
|
1092
|
+
/**
|
|
1093
|
+
* 面状: 霓虹灯材质
|
|
1094
|
+
* @property [color = new Cesium.Color(2, 1, 0.0, 0.8)] - 颜色
|
|
1095
|
+
* @property [repeat = 30] - 圈数量
|
|
1096
|
+
* @property [frameRate = 60] - 每秒刷新次数
|
|
1097
|
+
*/
|
|
1098
|
+
const NeonLight: string;
|
|
1099
|
+
/**
|
|
1100
|
+
* 通用:水面材质 带蓝色光线波纹的
|
|
1101
|
+
* @property [specularMap] - 单一通道纹理用来指示水域的面积。
|
|
1102
|
+
* @property [normalMap] - 水正常扰动的法线图。
|
|
1103
|
+
* @property [alpha = 0.2] - 透明度
|
|
1104
|
+
*/
|
|
1105
|
+
const WaterLight: string;
|
|
1085
1106
|
/**
|
|
1086
1107
|
* 球体: 电弧球体效果 材质
|
|
1087
1108
|
* @property [color = new Cesium.Color(0.0, 1.0, 1.0, 0.7)] - 颜色
|
|
@@ -1101,6 +1122,7 @@ declare namespace MaterialType {
|
|
|
1101
1122
|
* @property [frameRate = 60] - 每秒刷新次数
|
|
1102
1123
|
*/
|
|
1103
1124
|
const CylinderWave: string;
|
|
1125
|
+
const DigitalFlow: string;
|
|
1104
1126
|
}
|
|
1105
1127
|
|
|
1106
1128
|
/**
|
|
@@ -1195,16 +1217,31 @@ declare namespace Token {
|
|
|
1195
1217
|
* 官网: {@link https://cesium.com/ion/signin/}
|
|
1196
1218
|
*/
|
|
1197
1219
|
const ion: string;
|
|
1220
|
+
/**
|
|
1221
|
+
* 更新Cesium官方的Ion服务key
|
|
1222
|
+
* @param item - token值
|
|
1223
|
+
*/
|
|
1224
|
+
function updateIon(item: string): void;
|
|
1198
1225
|
/**
|
|
1199
1226
|
* mapbox地图key,
|
|
1200
1227
|
* 官网:{@link https://account.mapbox.com}
|
|
1201
1228
|
*/
|
|
1202
1229
|
const mapbox: string;
|
|
1230
|
+
/**
|
|
1231
|
+
* 更新mapbox地图key
|
|
1232
|
+
* @param item - token值
|
|
1233
|
+
*/
|
|
1234
|
+
function updateMapbox(item: string): void;
|
|
1203
1235
|
/**
|
|
1204
1236
|
* 微软Bing地图key,
|
|
1205
1237
|
* 官网: {@link https://www.bingmapsportal.com/Application}
|
|
1206
1238
|
*/
|
|
1207
1239
|
const bing: string;
|
|
1240
|
+
/**
|
|
1241
|
+
* 更新微软Bing地图key
|
|
1242
|
+
* @param item - token值
|
|
1243
|
+
*/
|
|
1244
|
+
function updateBing(item: string): void;
|
|
1208
1245
|
/**
|
|
1209
1246
|
* 天地图key数组,
|
|
1210
1247
|
* 官网: {@link https://console.tianditu.gov.cn/api/key}
|
|
@@ -1214,6 +1251,11 @@ declare namespace Token {
|
|
|
1214
1251
|
* 天地图key,
|
|
1215
1252
|
*/
|
|
1216
1253
|
const tianditu: string;
|
|
1254
|
+
/**
|
|
1255
|
+
* 更新天地图key
|
|
1256
|
+
* @param item - token值
|
|
1257
|
+
*/
|
|
1258
|
+
function updateTianditu(item: string | string[]): void;
|
|
1217
1259
|
/**
|
|
1218
1260
|
* 高德key数组,
|
|
1219
1261
|
* 官网: {@link https://console.amap.com/dev/key/app}
|
|
@@ -1223,6 +1265,11 @@ declare namespace Token {
|
|
|
1223
1265
|
* 高德key,
|
|
1224
1266
|
*/
|
|
1225
1267
|
const gaode: string;
|
|
1268
|
+
/**
|
|
1269
|
+
* 更新高德key
|
|
1270
|
+
* @param item - token值
|
|
1271
|
+
*/
|
|
1272
|
+
function updateGaode(item: string | string[]): void;
|
|
1226
1273
|
/**
|
|
1227
1274
|
* 百度key数组,
|
|
1228
1275
|
* 官网: {@link http://lbsyun.baidu.com/apiconsole/key#/home}
|
|
@@ -1232,6 +1279,29 @@ declare namespace Token {
|
|
|
1232
1279
|
* 百度key,
|
|
1233
1280
|
*/
|
|
1234
1281
|
const baidu: string;
|
|
1282
|
+
/**
|
|
1283
|
+
* 更新百度key
|
|
1284
|
+
* @param item - token值
|
|
1285
|
+
*/
|
|
1286
|
+
function updateBaidu(item: string | string[]): void;
|
|
1287
|
+
/**
|
|
1288
|
+
* 更新所有SDK涉及的第3放Token值(如果具体使用类中传入时,已传入值优先)
|
|
1289
|
+
* @param token - 集合
|
|
1290
|
+
* @param [token.tianditu] - 天地图
|
|
1291
|
+
* @param [token.gaode] - 高德
|
|
1292
|
+
* @param [token.baidu] - 百度
|
|
1293
|
+
* @param [token.ion] - Ion服务
|
|
1294
|
+
* @param [token.mapbox] - mapbox地图
|
|
1295
|
+
* @param [token.bing] - 微软Bing地图
|
|
1296
|
+
*/
|
|
1297
|
+
function updateAll(token: {
|
|
1298
|
+
tianditu?: string | string[];
|
|
1299
|
+
gaode?: string | string[];
|
|
1300
|
+
baidu?: string | string[];
|
|
1301
|
+
ion?: string;
|
|
1302
|
+
mapbox?: string;
|
|
1303
|
+
bing?: string;
|
|
1304
|
+
}): void;
|
|
1235
1305
|
}
|
|
1236
1306
|
|
|
1237
1307
|
/**
|
|
@@ -2014,7 +2084,7 @@ declare class BaseThing extends BaseClass {
|
|
|
2014
2084
|
* 天空盒子是用真正的赤道平均春分点(TEME)轴定义的。仅在3D中支持。当转换为2D或哥伦布视图时,天空盒会淡出。
|
|
2015
2085
|
* 天空盒子的大小不能超过{@link Cesium.Scene#maximumCubeMapSize}。
|
|
2016
2086
|
* @example
|
|
2017
|
-
* scene.skyBox = new mars3d.GroundSkyBox({
|
|
2087
|
+
* map.scene.skyBox = new mars3d.GroundSkyBox({
|
|
2018
2088
|
* sources : {
|
|
2019
2089
|
* positiveX : 'skybox_px.png',
|
|
2020
2090
|
* negativeX : 'skybox_nx.png',
|
|
@@ -2048,6 +2118,90 @@ declare class GroundSkyBox extends Cesium.SkyBox {
|
|
|
2048
2118
|
});
|
|
2049
2119
|
}
|
|
2050
2120
|
|
|
2121
|
+
/**
|
|
2122
|
+
* Thing对象(如特效、分析、管理类等)组,可以用于将多个Thing对象组合起来方便控制
|
|
2123
|
+
* @param [options] - 参数对象,包括以下:
|
|
2124
|
+
* @param [options.things] - 子Thing对象数组
|
|
2125
|
+
* @param [options.id = uuid()] - 对象的id标识
|
|
2126
|
+
* @param [options.enabled = true] - 对象的启用状态
|
|
2127
|
+
* @param [options.eventParent] - 指定的事件冒泡对象,默认为map对象,false时不冒泡
|
|
2128
|
+
*/
|
|
2129
|
+
declare class GroupThing extends BaseThing {
|
|
2130
|
+
constructor(options?: {
|
|
2131
|
+
things?: any;
|
|
2132
|
+
id?: string | number;
|
|
2133
|
+
enabled?: boolean;
|
|
2134
|
+
eventParent?: BaseClass | boolean;
|
|
2135
|
+
});
|
|
2136
|
+
/**
|
|
2137
|
+
* 子Thing对象对象数组
|
|
2138
|
+
*/
|
|
2139
|
+
readonly arrThing: BaseThing[];
|
|
2140
|
+
/**
|
|
2141
|
+
* 是否空组 ,空组目前就Thing对象管理用于Thing对象分组节点(虚拟节点)。
|
|
2142
|
+
*/
|
|
2143
|
+
readonly hasEmptyGroup: boolean;
|
|
2144
|
+
/**
|
|
2145
|
+
* 是否有子Thing对象
|
|
2146
|
+
*/
|
|
2147
|
+
readonly hasChildThing: boolean;
|
|
2148
|
+
/**
|
|
2149
|
+
* 子Thing对象的个数
|
|
2150
|
+
*/
|
|
2151
|
+
readonly length: number;
|
|
2152
|
+
/**
|
|
2153
|
+
* 添加所有子对象到map上
|
|
2154
|
+
* @returns 当前对象本身,可以链式调用
|
|
2155
|
+
*/
|
|
2156
|
+
addChildsToMap(): GroupThing;
|
|
2157
|
+
/**
|
|
2158
|
+
* 将所有子对象从map中移除
|
|
2159
|
+
* @returns 当前对象本身,可以链式调用
|
|
2160
|
+
*/
|
|
2161
|
+
removeMapChilds(): GroupThing;
|
|
2162
|
+
/**
|
|
2163
|
+
* 添加子Thing对象,并绑定关联关系。
|
|
2164
|
+
* @param childthing - 子Thing对象对象
|
|
2165
|
+
* @returns 当前对象本身,可以链式调用
|
|
2166
|
+
*/
|
|
2167
|
+
addThing(childthing: BaseThing): GroupThing;
|
|
2168
|
+
/**
|
|
2169
|
+
* 移除子Thing对象,并解除关联关系。
|
|
2170
|
+
* @param childthing - 子Thing对象对象
|
|
2171
|
+
* @returns 当前对象本身,可以链式调用
|
|
2172
|
+
*/
|
|
2173
|
+
removeThing(childthing: BaseThing): GroupThing;
|
|
2174
|
+
/**
|
|
2175
|
+
* 遍历每一个子Thing对象并将其作为参数传递给回调函数
|
|
2176
|
+
* @param method - 回调方法
|
|
2177
|
+
* @param context - 侦听器的上下文(this关键字将指向的对象)。
|
|
2178
|
+
* @returns 当前对象本身,可以链式调用
|
|
2179
|
+
*/
|
|
2180
|
+
eachThing(method: (...params: any[]) => any, context: any): GroupThing;
|
|
2181
|
+
/**
|
|
2182
|
+
* 获取所有内置子Thing对象对象
|
|
2183
|
+
* @returns 所有子Thing对象对象
|
|
2184
|
+
*/
|
|
2185
|
+
getThings(): BaseThing[];
|
|
2186
|
+
/**
|
|
2187
|
+
* 获取地图所有的子Thing对象对象(包括pid和id关联的Thing对象)
|
|
2188
|
+
* @returns 所有子Thing对象对象
|
|
2189
|
+
*/
|
|
2190
|
+
getInMapChilds(): BaseThing[];
|
|
2191
|
+
/**
|
|
2192
|
+
* 根据ID或取Thing对象
|
|
2193
|
+
* @param id - Thing对象id或uuid
|
|
2194
|
+
* @returns Thing对象对象
|
|
2195
|
+
*/
|
|
2196
|
+
getThingById(id: string | number): BaseThing | any;
|
|
2197
|
+
/**
|
|
2198
|
+
* 销毁当前对象
|
|
2199
|
+
* @param [noDel = false] - false:会自动delete释放所有属性,true:不delete绑定的变量
|
|
2200
|
+
* @returns 无
|
|
2201
|
+
*/
|
|
2202
|
+
destroy(noDel?: boolean): void;
|
|
2203
|
+
}
|
|
2204
|
+
|
|
2051
2205
|
/**
|
|
2052
2206
|
* 坐标数组处理类
|
|
2053
2207
|
*/
|
|
@@ -2219,6 +2373,97 @@ declare class LocalWorldTransform {
|
|
|
2219
2373
|
worldToLocal(worldPoint: Cesium.Cartesian3, result?: Cesium.Cartesian3): Cesium.Cartesian3;
|
|
2220
2374
|
}
|
|
2221
2375
|
|
|
2376
|
+
/**
|
|
2377
|
+
* 3个天空盒(可以平滑过度), 在场景周围绘制星星等太空背景。
|
|
2378
|
+
* 天空盒子是用真正的赤道平均春分点(TEME)轴定义的。仅在3D中支持。当转换为2D或哥伦布视图时,天空盒会淡出。
|
|
2379
|
+
* 天空盒子的大小不能超过{@link Cesium.Scene#maximumCubeMapSize}。
|
|
2380
|
+
* @example
|
|
2381
|
+
* map.scene.skyBox = new mars3d.MultipleSkyBox({
|
|
2382
|
+
* sources: {
|
|
2383
|
+
* positiveX: "./img/skybox/1/px.png",
|
|
2384
|
+
* negativeX: "./img/skybox/1/nx.png",
|
|
2385
|
+
* positiveY: "./img/skybox/1/pz.png",
|
|
2386
|
+
* negativeY: "./img/skybox/1/nz.png",
|
|
2387
|
+
* positiveZ: "./img/skybox/1/py.png",
|
|
2388
|
+
* negativeZ: "./img/skybox/1/ny.png",
|
|
2389
|
+
* },
|
|
2390
|
+
* sources2: {
|
|
2391
|
+
* positiveX: "./img/skybox/2/px.png",
|
|
2392
|
+
* negativeX: "./img/skybox/2/nx.png",
|
|
2393
|
+
* positiveY: "./img/skybox/2/pz.png",
|
|
2394
|
+
* negativeY: "./img/skybox/2/nz.png",
|
|
2395
|
+
* positiveZ: "./img/skybox/2/py.png",
|
|
2396
|
+
* negativeZ: "./img/skybox/2/ny.png",
|
|
2397
|
+
* },
|
|
2398
|
+
* sources3: {
|
|
2399
|
+
* positiveX: "./img/skybox/3/px.png",
|
|
2400
|
+
* negativeX: "./img/skybox/3/nx.png",
|
|
2401
|
+
* positiveY: "./img/skybox/3/pz.png",
|
|
2402
|
+
* negativeY: "./img/skybox/3/nz.png",
|
|
2403
|
+
* positiveZ: "./img/skybox/3/py.png",
|
|
2404
|
+
* negativeZ: "./img/skybox/3/ny.png",
|
|
2405
|
+
* },
|
|
2406
|
+
* });
|
|
2407
|
+
* @param options - 对象,具有以下属性:
|
|
2408
|
+
* @param [options.sources] - 天空盒的6个立方体映射面的图片url
|
|
2409
|
+
* @param [options.sources.positiveX] - 映射面的图片url
|
|
2410
|
+
* @param [options.sources.negativeX] - 映射面的图片url
|
|
2411
|
+
* @param [options.sources.positiveY] - 映射面的图片url
|
|
2412
|
+
* @param [options.sources.negativeY] - 映射面的图片url
|
|
2413
|
+
* @param [options.sources.positiveZ] - 映射面的图片url
|
|
2414
|
+
* @param [options.sources.negativeZ] - 映射面的图片url
|
|
2415
|
+
* @param [options.sources2] - 天空盒的6个立方体映射面的图片url
|
|
2416
|
+
* @param [options.sources2.positiveX] - 映射面的图片url
|
|
2417
|
+
* @param [options.sources2.negativeX] - 映射面的图片url
|
|
2418
|
+
* @param [options.sources2.positiveY] - 映射面的图片url
|
|
2419
|
+
* @param [options.sources2.negativeY] - 映射面的图片url
|
|
2420
|
+
* @param [options.sources2.positiveZ] - 映射面的图片url
|
|
2421
|
+
* @param [options.sources2.negativeZ] - 映射面的图片url
|
|
2422
|
+
* @param [options.sources3] - 天空盒的6个立方体映射面的图片url
|
|
2423
|
+
* @param [options.sources3.positiveX] - 映射面的图片url
|
|
2424
|
+
* @param [options.sources3.negativeX] - 映射面的图片url
|
|
2425
|
+
* @param [options.sources3.positiveY] - 映射面的图片url
|
|
2426
|
+
* @param [options.sources3.negativeY] - 映射面的图片url
|
|
2427
|
+
* @param [options.sources3.positiveZ] - 映射面的图片url
|
|
2428
|
+
* @param [options.sources3.negativeZ] - 映射面的图片url
|
|
2429
|
+
* @param [options.select = 0.0] - 当前选择生效的天空盒,取值范围:0.0-2.0 , 当为 0 时显示sources、为 1 时显示sources2、为 2 时显示sources3,中间值过渡
|
|
2430
|
+
* @param [options.show = true] - 是否显示
|
|
2431
|
+
*/
|
|
2432
|
+
declare class MultipleSkyBox extends Cesium.SkyBox {
|
|
2433
|
+
constructor(options: {
|
|
2434
|
+
sources?: {
|
|
2435
|
+
positiveX?: string;
|
|
2436
|
+
negativeX?: string;
|
|
2437
|
+
positiveY?: string;
|
|
2438
|
+
negativeY?: string;
|
|
2439
|
+
positiveZ?: string;
|
|
2440
|
+
negativeZ?: string;
|
|
2441
|
+
};
|
|
2442
|
+
sources2?: {
|
|
2443
|
+
positiveX?: string;
|
|
2444
|
+
negativeX?: string;
|
|
2445
|
+
positiveY?: string;
|
|
2446
|
+
negativeY?: string;
|
|
2447
|
+
positiveZ?: string;
|
|
2448
|
+
negativeZ?: string;
|
|
2449
|
+
};
|
|
2450
|
+
sources3?: {
|
|
2451
|
+
positiveX?: string;
|
|
2452
|
+
negativeX?: string;
|
|
2453
|
+
positiveY?: string;
|
|
2454
|
+
negativeY?: string;
|
|
2455
|
+
positiveZ?: string;
|
|
2456
|
+
negativeZ?: string;
|
|
2457
|
+
};
|
|
2458
|
+
select?: number;
|
|
2459
|
+
show?: boolean;
|
|
2460
|
+
});
|
|
2461
|
+
/**
|
|
2462
|
+
* 当前选择生效的天空盒,取值范围:0.0-2.0, 当为 0 时显示sources、为 1 时显示sources2、为 2 时显示sources3,中间值过渡
|
|
2463
|
+
*/
|
|
2464
|
+
select: number;
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2222
2467
|
/**
|
|
2223
2468
|
* 特效 基类
|
|
2224
2469
|
* @param [options] - 参数对象,包括以下:
|
|
@@ -2312,6 +2557,51 @@ declare class BloomEffect extends BaseEffect {
|
|
|
2312
2557
|
stepSize: number;
|
|
2313
2558
|
}
|
|
2314
2559
|
|
|
2560
|
+
/**
|
|
2561
|
+
* 选中对象的 泛光效果。
|
|
2562
|
+
* @param [options] - 参数对象
|
|
2563
|
+
* @param [options.eventType = "click"] - 高亮触发的事件类型,默认为单击。可选值:单击、鼠标移入,false时不内部控制
|
|
2564
|
+
* @param [options.color = Cesium.Color.WHITE] - 泛光颜色
|
|
2565
|
+
* @param [options.contrast = 128] - 对比度,取值范围[-255.0,255.0]
|
|
2566
|
+
* @param [options.brightness = -0.3] - 亮度, 将输入纹理的RGB值转换为色相、饱和度和亮度(HSB),然后将该值添加到亮度中。
|
|
2567
|
+
* @param [options.blurSamples = 32] - 模糊样本
|
|
2568
|
+
* @param [options.delta = 1.0] - 增量
|
|
2569
|
+
* @param [options.sigma = 3.78] - delta和sigma用于计算高斯滤波器的权值。方程是 <code>exp((-0.5 * delta * delta) / (sigma * sigma))</code>。
|
|
2570
|
+
* @param [options.stepSize = 5.0] - 步长,是下一个texel的距离
|
|
2571
|
+
* @param [options.ratio = 2.0] - 亮度增强比例
|
|
2572
|
+
* @param [options.threshold = 0.0] - 亮度阈值
|
|
2573
|
+
* @param [options.smoothWidth = 0.01] - 亮度光滑的宽度
|
|
2574
|
+
* @param [options.enabled = true] - 对象的启用状态
|
|
2575
|
+
*/
|
|
2576
|
+
declare class BloomTargetEffect extends BaseEffect {
|
|
2577
|
+
constructor(options?: {
|
|
2578
|
+
eventType?: EventType | boolean;
|
|
2579
|
+
color?: Cesium.Color;
|
|
2580
|
+
contrast?: number;
|
|
2581
|
+
brightness?: number;
|
|
2582
|
+
blurSamples?: number;
|
|
2583
|
+
delta?: number;
|
|
2584
|
+
sigma?: number;
|
|
2585
|
+
stepSize?: number;
|
|
2586
|
+
ratio?: number;
|
|
2587
|
+
threshold?: number;
|
|
2588
|
+
smoothWidth?: number;
|
|
2589
|
+
enabled?: boolean;
|
|
2590
|
+
});
|
|
2591
|
+
/**
|
|
2592
|
+
* 发光颜色
|
|
2593
|
+
*/
|
|
2594
|
+
color: Cesium.Color;
|
|
2595
|
+
/**
|
|
2596
|
+
* 高亮触发的事件类型,默认为单击。
|
|
2597
|
+
*/
|
|
2598
|
+
eventType: EventType | string;
|
|
2599
|
+
/**
|
|
2600
|
+
* 选中对象
|
|
2601
|
+
*/
|
|
2602
|
+
selected: any | any | undefined;
|
|
2603
|
+
}
|
|
2604
|
+
|
|
2315
2605
|
/**
|
|
2316
2606
|
* 亮度
|
|
2317
2607
|
* @param [options] - 参数对象,包括以下:
|
|
@@ -3102,7 +3392,7 @@ declare class BaseCombine extends BasePrimitive {
|
|
|
3102
3392
|
* @param [options.name = ''] - 矢量数据名称
|
|
3103
3393
|
* @param [options.show = true] - 矢量数据是否显示
|
|
3104
3394
|
* @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件
|
|
3105
|
-
* @param [options.allowDrillPick] -
|
|
3395
|
+
* @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
|
|
3106
3396
|
*/
|
|
3107
3397
|
declare class BasePolyCombine extends BaseCombine {
|
|
3108
3398
|
constructor(options: {
|
|
@@ -5885,7 +6175,7 @@ declare class BasePointEntity extends BaseEntity {
|
|
|
5885
6175
|
* 按Cesium.CallbackProperty的方式 更新坐标(更加平滑)
|
|
5886
6176
|
* @param position - 坐标
|
|
5887
6177
|
*/
|
|
5888
|
-
setCallbackPosition(position: Cesium.Cartesian3): void;
|
|
6178
|
+
setCallbackPosition(position: string | any[] | any | Cesium.Cartesian3 | any): void;
|
|
5889
6179
|
/**
|
|
5890
6180
|
* 显示隐藏状态
|
|
5891
6181
|
*/
|
|
@@ -6031,7 +6321,7 @@ declare class BasePolyEntity extends BaseEntity {
|
|
|
6031
6321
|
* 按Cesium.CallbackProperty的方式 更新坐标集合(更加平滑)
|
|
6032
6322
|
* @param positions - 坐标数组
|
|
6033
6323
|
*/
|
|
6034
|
-
setCallbackPositions(positions:
|
|
6324
|
+
setCallbackPositions(positions: string[] | any[][] | LngLatPoint[]): void;
|
|
6035
6325
|
}
|
|
6036
6326
|
|
|
6037
6327
|
declare namespace BillboardEntity {
|
|
@@ -6344,6 +6634,235 @@ declare class BoxEntity extends BasePointEntity {
|
|
|
6344
6634
|
static fromDraw(layer: GraphicLayer, options: any): BoxEntity;
|
|
6345
6635
|
}
|
|
6346
6636
|
|
|
6637
|
+
declare namespace LabelEntity {
|
|
6638
|
+
/**
|
|
6639
|
+
* Canvas 文本点(label转图片) 支持的样式信息
|
|
6640
|
+
* @property [text = "文字"] - 文本内容,换行可以用换行符'\n'。
|
|
6641
|
+
* @property [scale = 1.0] - 指定缩放比例。
|
|
6642
|
+
* @property [horizontalOrigin] - 横向方向的定位
|
|
6643
|
+
* @property [verticalOrigin] - 垂直方向的定位
|
|
6644
|
+
* @property [font_family = "楷体"] - 字体 ,可选项:微软雅黑,宋体,楷体,隶书,黑体 等
|
|
6645
|
+
* @property [font_size = 30] - 字体大小
|
|
6646
|
+
* @property [font_weight = "normal"] - 是否加粗 ,可选项:bold (解释:是),normal (解释:否),
|
|
6647
|
+
* @property [font_style = "normal"] - 是否斜体 ,可选项:italic (解释:是),normal (解释:否),
|
|
6648
|
+
* @property [font = '30px normal normal 楷体'] - 上叙4个属性的一次性指定CSS字体的属性。
|
|
6649
|
+
* @property [textBaseline = 'bottom'] - 文本的基线。
|
|
6650
|
+
* @property [fill = true] - 是否填充
|
|
6651
|
+
* @property [color = "#ffffff"] - 文本颜色
|
|
6652
|
+
* @property [opacity = 1.0] - 透明度,取值范围:0.0-1.0
|
|
6653
|
+
* @property [stroke = false] - 是否衬色
|
|
6654
|
+
* @property [strokeColor = "#000000"] - 衬色颜色
|
|
6655
|
+
* @property [strokeWidth = 2.0] - 衬色宽度
|
|
6656
|
+
* @property [outlineColor = "#000000"] - 矩形边框的颜色。
|
|
6657
|
+
* @property [outlineWidth = 0.0] - 边框的宽度
|
|
6658
|
+
* @property [background = false] - 是否背景
|
|
6659
|
+
* @property [backgroundColor = "#000000"] - 背景颜色
|
|
6660
|
+
* @property [backgroundPadding = 0] - 背景内边距,指定文字与填充边界内容之间的空间(以像素为单位)。
|
|
6661
|
+
* @property [hasPixelOffset = false] - 是否存在偏移量
|
|
6662
|
+
* @property [pixelOffsetX = 0] - 横向偏移像素
|
|
6663
|
+
* @property [pixelOffsetY = 0] - 纵向偏移像素
|
|
6664
|
+
* @property [pixelOffset = Cartesian2.ZERO] - 指定像素偏移量。
|
|
6665
|
+
* @property [scaleByDistance = false] - 是否按视距缩放 或 设定基于与相机的距离设置比例。
|
|
6666
|
+
* @property [scaleByDistance_far = 1000000] - 上限
|
|
6667
|
+
* @property [scaleByDistance_farValue = 0.1] - 比例值
|
|
6668
|
+
* @property [scaleByDistance_near = 1000] - 下限
|
|
6669
|
+
* @property [scaleByDistance_nearValue = 1] - 比例值
|
|
6670
|
+
* @property [distanceDisplayCondition = false] - 是否按视距显示 或 指定此框将显示在与摄像机的多大距离。
|
|
6671
|
+
* @property [distanceDisplayCondition_far = 100000] - 最大距离
|
|
6672
|
+
* @property [distanceDisplayCondition_near = 0] - 最小距离
|
|
6673
|
+
* @property [clampToGround = false] - 是否贴地
|
|
6674
|
+
* @property [heightReference = Cesium.HeightReference.NONE] - 指定高度相对于什么的属性。
|
|
6675
|
+
* @property [visibleDepth = true] - 是否被遮挡
|
|
6676
|
+
* @property [disableDepthTestDistance] - 指定从相机到禁用深度测试的距离。
|
|
6677
|
+
* @property [translucencyByDistance] - 用于基于与相机的距离设置半透明度。
|
|
6678
|
+
* @property [setHeight] - 指定坐标高度值(常用于图层中配置),也支持字符串模版配置
|
|
6679
|
+
* @property [addHeight] - 在现有坐标基础上增加的高度值(常用于图层中配置),也支持字符串模版配置
|
|
6680
|
+
*/
|
|
6681
|
+
type StyleOptions = {
|
|
6682
|
+
text?: string;
|
|
6683
|
+
scale?: number;
|
|
6684
|
+
horizontalOrigin?: Cesium.HorizontalOrigin;
|
|
6685
|
+
verticalOrigin?: Cesium.VerticalOrigin;
|
|
6686
|
+
font_family?: string;
|
|
6687
|
+
font_size?: number;
|
|
6688
|
+
font_weight?: string;
|
|
6689
|
+
font_style?: string;
|
|
6690
|
+
font?: string;
|
|
6691
|
+
textBaseline?: string;
|
|
6692
|
+
fill?: boolean;
|
|
6693
|
+
color?: string | Cesium.Color;
|
|
6694
|
+
opacity?: number;
|
|
6695
|
+
stroke?: boolean;
|
|
6696
|
+
strokeColor?: string | Cesium.Color;
|
|
6697
|
+
strokeWidth?: number;
|
|
6698
|
+
outlineColor?: string | Cesium.Color;
|
|
6699
|
+
outlineWidth?: number;
|
|
6700
|
+
background?: boolean;
|
|
6701
|
+
backgroundColor?: string | Cesium.Color;
|
|
6702
|
+
backgroundPadding?: number;
|
|
6703
|
+
hasPixelOffset?: boolean;
|
|
6704
|
+
pixelOffsetX?: number;
|
|
6705
|
+
pixelOffsetY?: number;
|
|
6706
|
+
pixelOffset?: Cesium.Cartesian2 | number[];
|
|
6707
|
+
scaleByDistance?: boolean | Cesium.NearFarScalar;
|
|
6708
|
+
scaleByDistance_far?: number;
|
|
6709
|
+
scaleByDistance_farValue?: number;
|
|
6710
|
+
scaleByDistance_near?: number;
|
|
6711
|
+
scaleByDistance_nearValue?: number;
|
|
6712
|
+
distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition;
|
|
6713
|
+
distanceDisplayCondition_far?: number;
|
|
6714
|
+
distanceDisplayCondition_near?: number;
|
|
6715
|
+
clampToGround?: boolean;
|
|
6716
|
+
heightReference?: Cesium.HeightReference;
|
|
6717
|
+
visibleDepth?: boolean;
|
|
6718
|
+
disableDepthTestDistance?: number;
|
|
6719
|
+
translucencyByDistance?: Cesium.NearFarScalar;
|
|
6720
|
+
setHeight?: number | string;
|
|
6721
|
+
addHeight?: number | string;
|
|
6722
|
+
};
|
|
6723
|
+
/**
|
|
6724
|
+
* Canvas 文本点(label转图片) 支持的样式信息
|
|
6725
|
+
* @property [text = "文字"] - 文本内容,换行可以用换行符'\n'。
|
|
6726
|
+
* @property [scale = 1.0] - 指定缩放比例。
|
|
6727
|
+
* @property [horizontalOrigin] - 横向方向的定位
|
|
6728
|
+
* @property [verticalOrigin] - 垂直方向的定位
|
|
6729
|
+
* @property [font_family = "楷体"] - 字体 ,可选项:微软雅黑,宋体,楷体,隶书,黑体 等
|
|
6730
|
+
* @property [font_size = 30] - 字体大小
|
|
6731
|
+
* @property [font_weight = "normal"] - 是否加粗 ,可选项:bold (解释:是),normal (解释:否),
|
|
6732
|
+
* @property [font_style = "normal"] - 是否斜体 ,可选项:italic (解释:是),normal (解释:否),
|
|
6733
|
+
* @property [font = '30px normal normal 楷体'] - 上叙4个属性的一次性指定CSS字体的属性。
|
|
6734
|
+
* @property [textBaseline = 'bottom'] - 文本的基线。
|
|
6735
|
+
* @property [fill = true] - 是否填充
|
|
6736
|
+
* @property [color = "#ffffff"] - 文本颜色
|
|
6737
|
+
* @property [opacity = 1.0] - 透明度,取值范围:0.0-1.0
|
|
6738
|
+
* @property [stroke = false] - 是否衬色
|
|
6739
|
+
* @property [strokeColor = "#000000"] - 衬色颜色
|
|
6740
|
+
* @property [strokeWidth = 2.0] - 衬色宽度
|
|
6741
|
+
* @property [outlineColor = "#000000"] - 矩形边框的颜色。
|
|
6742
|
+
* @property [outlineWidth = 0.0] - 边框的宽度
|
|
6743
|
+
* @property [background = false] - 是否背景
|
|
6744
|
+
* @property [backgroundColor = "#000000"] - 背景颜色
|
|
6745
|
+
* @property [backgroundPadding = 0] - 背景内边距,指定文字与填充边界内容之间的空间(以像素为单位)。
|
|
6746
|
+
* @property [hasPixelOffset = false] - 是否存在偏移量
|
|
6747
|
+
* @property [pixelOffsetX = 0] - 横向偏移像素
|
|
6748
|
+
* @property [pixelOffsetY = 0] - 纵向偏移像素
|
|
6749
|
+
* @property [pixelOffset = Cartesian2.ZERO] - 指定像素偏移量。
|
|
6750
|
+
* @property [scaleByDistance = false] - 是否按视距缩放 或 设定基于与相机的距离设置比例。
|
|
6751
|
+
* @property [scaleByDistance_far = 1000000] - 上限
|
|
6752
|
+
* @property [scaleByDistance_farValue = 0.1] - 比例值
|
|
6753
|
+
* @property [scaleByDistance_near = 1000] - 下限
|
|
6754
|
+
* @property [scaleByDistance_nearValue = 1] - 比例值
|
|
6755
|
+
* @property [distanceDisplayCondition = false] - 是否按视距显示 或 指定此框将显示在与摄像机的多大距离。
|
|
6756
|
+
* @property [distanceDisplayCondition_far = 100000] - 最大距离
|
|
6757
|
+
* @property [distanceDisplayCondition_near = 0] - 最小距离
|
|
6758
|
+
* @property [clampToGround = false] - 是否贴地
|
|
6759
|
+
* @property [heightReference = Cesium.HeightReference.NONE] - 指定高度相对于什么的属性。
|
|
6760
|
+
* @property [visibleDepth = true] - 是否被遮挡
|
|
6761
|
+
* @property [disableDepthTestDistance] - 指定从相机到禁用深度测试的距离。
|
|
6762
|
+
* @property [translucencyByDistance] - 用于基于与相机的距离设置半透明度。
|
|
6763
|
+
* @property [setHeight] - 指定坐标高度值(常用于图层中配置),也支持字符串模版配置
|
|
6764
|
+
* @property [addHeight] - 在现有坐标基础上增加的高度值(常用于图层中配置),也支持字符串模版配置
|
|
6765
|
+
*/
|
|
6766
|
+
type StyleOptions = {
|
|
6767
|
+
text?: string;
|
|
6768
|
+
scale?: number;
|
|
6769
|
+
horizontalOrigin?: Cesium.HorizontalOrigin;
|
|
6770
|
+
verticalOrigin?: Cesium.VerticalOrigin;
|
|
6771
|
+
font_family?: string;
|
|
6772
|
+
font_size?: number;
|
|
6773
|
+
font_weight?: string;
|
|
6774
|
+
font_style?: string;
|
|
6775
|
+
font?: string;
|
|
6776
|
+
textBaseline?: string;
|
|
6777
|
+
fill?: boolean;
|
|
6778
|
+
color?: string | Cesium.Color;
|
|
6779
|
+
opacity?: number;
|
|
6780
|
+
stroke?: boolean;
|
|
6781
|
+
strokeColor?: string | Cesium.Color;
|
|
6782
|
+
strokeWidth?: number;
|
|
6783
|
+
outlineColor?: string | Cesium.Color;
|
|
6784
|
+
outlineWidth?: number;
|
|
6785
|
+
background?: boolean;
|
|
6786
|
+
backgroundColor?: string | Cesium.Color;
|
|
6787
|
+
backgroundPadding?: number;
|
|
6788
|
+
hasPixelOffset?: boolean;
|
|
6789
|
+
pixelOffsetX?: number;
|
|
6790
|
+
pixelOffsetY?: number;
|
|
6791
|
+
pixelOffset?: Cesium.Cartesian2 | number[];
|
|
6792
|
+
scaleByDistance?: boolean | Cesium.NearFarScalar;
|
|
6793
|
+
scaleByDistance_far?: number;
|
|
6794
|
+
scaleByDistance_farValue?: number;
|
|
6795
|
+
scaleByDistance_near?: number;
|
|
6796
|
+
scaleByDistance_nearValue?: number;
|
|
6797
|
+
distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition;
|
|
6798
|
+
distanceDisplayCondition_far?: number;
|
|
6799
|
+
distanceDisplayCondition_near?: number;
|
|
6800
|
+
clampToGround?: boolean;
|
|
6801
|
+
heightReference?: Cesium.HeightReference;
|
|
6802
|
+
visibleDepth?: boolean;
|
|
6803
|
+
disableDepthTestDistance?: number;
|
|
6804
|
+
translucencyByDistance?: Cesium.NearFarScalar;
|
|
6805
|
+
setHeight?: number | string;
|
|
6806
|
+
addHeight?: number | string;
|
|
6807
|
+
};
|
|
6808
|
+
}
|
|
6809
|
+
|
|
6810
|
+
/**
|
|
6811
|
+
* Canvas 文本点(label转图片)
|
|
6812
|
+
* @param options - 参数对象,包括以下:
|
|
6813
|
+
* @param options.position - 坐标位置
|
|
6814
|
+
* @param options.style - 样式信息
|
|
6815
|
+
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
6816
|
+
* @param [options.availability] - 与该对象关联的可用性(如果有的话)。
|
|
6817
|
+
* @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
|
|
6818
|
+
* @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
|
|
6819
|
+
* @param [options.parent] - 要与此实体关联的父实体。
|
|
6820
|
+
* @param [options.onBeforeCreate] - 在 new Cesium.Entity(addattr) 前的回调方法,可以对addattr做额外个性化处理。
|
|
6821
|
+
* @param [options.drawShow = true] - 绘制时,是否自动隐藏entity,可避免拾取坐标存在问题。
|
|
6822
|
+
* @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值
|
|
6823
|
+
* @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定
|
|
6824
|
+
* @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数
|
|
6825
|
+
* @param [options.tooltip] - 绑定的tooltip弹窗值,也可以bindTooltip方法绑
|
|
6826
|
+
* @param [options.tooltipOptions] - tooltip弹窗时的配置参数,也支持如pointerEvents等{@link Tooltip}构造参数
|
|
6827
|
+
* @param [options.contextmenuItems] - 当矢量数据支持右键菜单时,也可以bindContextMenu方法绑定
|
|
6828
|
+
* @param [options.id = uuid()] - 矢量数据id标识
|
|
6829
|
+
* @param [options.name = ''] - 矢量数据名称
|
|
6830
|
+
* @param [options.show = true] - 矢量数据是否显示
|
|
6831
|
+
* @param [options.eventParent] - 指定的事件冒泡对象,默认为所加入的图层对象,false时不冒泡事件
|
|
6832
|
+
* @param [options.allowDrillPick] - 是否允许鼠标穿透拾取
|
|
6833
|
+
*/
|
|
6834
|
+
declare class CanvasLabelEntity extends BasePointEntity {
|
|
6835
|
+
constructor(options: {
|
|
6836
|
+
position: LngLatPoint | Cesium.Cartesian3 | Cesium.PositionProperty | number[] | string;
|
|
6837
|
+
style: LabelEntity.StyleOptions;
|
|
6838
|
+
attr?: any;
|
|
6839
|
+
availability?: Cesium.TimeIntervalCollection;
|
|
6840
|
+
description?: Cesium.Property | string;
|
|
6841
|
+
viewFrom?: Cesium.Property;
|
|
6842
|
+
parent?: Cesium.Entity;
|
|
6843
|
+
onBeforeCreate?: (...params: any[]) => any;
|
|
6844
|
+
drawShow?: boolean;
|
|
6845
|
+
addHeight?: number;
|
|
6846
|
+
popup?: string | any[] | ((...params: any[]) => any);
|
|
6847
|
+
popupOptions?: Popup.StyleOptions;
|
|
6848
|
+
tooltip?: string | any[] | ((...params: any[]) => any);
|
|
6849
|
+
tooltipOptions?: Tooltip.StyleOptions;
|
|
6850
|
+
contextmenuItems?: any;
|
|
6851
|
+
id?: string | number;
|
|
6852
|
+
name?: string;
|
|
6853
|
+
show?: boolean;
|
|
6854
|
+
eventParent?: BaseClass | boolean;
|
|
6855
|
+
allowDrillPick?: boolean | ((...params: any[]) => any);
|
|
6856
|
+
});
|
|
6857
|
+
/**
|
|
6858
|
+
* 通过标绘 来创建矢量对象
|
|
6859
|
+
* @param layer - 图层
|
|
6860
|
+
* @param options - 矢量对象的构造参数
|
|
6861
|
+
* @returns 矢量对象
|
|
6862
|
+
*/
|
|
6863
|
+
static fromDraw(layer: GraphicLayer, options: any): CanvasLabelEntity;
|
|
6864
|
+
}
|
|
6865
|
+
|
|
6347
6866
|
declare namespace CircleEntity {
|
|
6348
6867
|
/**
|
|
6349
6868
|
* 圆、圆柱 支持的样式信息
|
|
@@ -7788,98 +8307,8 @@ declare class FontBillboardEntity extends BasePointEntity {
|
|
|
7788
8307
|
* @param layer - 图层
|
|
7789
8308
|
* @param options - 矢量对象的构造参数
|
|
7790
8309
|
* @returns 矢量对象
|
|
7791
|
-
*/
|
|
7792
|
-
static fromDraw(layer: GraphicLayer, options: any): FontBillboardEntity;
|
|
7793
|
-
}
|
|
7794
|
-
|
|
7795
|
-
declare namespace LabelEntity {
|
|
7796
|
-
/**
|
|
7797
|
-
* 文本点 支持的样式信息
|
|
7798
|
-
* @property [text = "文字"] - 文本内容,换行可以用换行符'\n'。
|
|
7799
|
-
* @property [scale = 1.0] - 指定缩放比例。
|
|
7800
|
-
* @property [horizontalOrigin] - 横向方向的定位
|
|
7801
|
-
* @property [verticalOrigin] - 垂直方向的定位
|
|
7802
|
-
* @property [font_family = "楷体"] - 字体 ,可选项:微软雅黑,宋体,楷体,隶书,黑体 等
|
|
7803
|
-
* @property [font_size = 30] - 字体大小
|
|
7804
|
-
* @property [font_weight = "normal"] - 是否加粗 ,可选项:bold (解释:是),normal (解释:否),
|
|
7805
|
-
* @property [font_style = "normal"] - 是否斜体 ,可选项:italic (解释:是),normal (解释:否),
|
|
7806
|
-
* @property [font = '30px normal normal 楷体'] - 上叙4个属性的一次性指定CSS字体的属性。
|
|
7807
|
-
* @property [fill = true] - 是否填充
|
|
7808
|
-
* @property [color = "#ffffff"] - 文本颜色
|
|
7809
|
-
* @property [opacity = 1.0] - 透明度,取值范围:0.0-1.0
|
|
7810
|
-
* @property [outline = false] - 是否衬色
|
|
7811
|
-
* @property [outlineColor = "#000000"] - 衬色颜色
|
|
7812
|
-
* @property [outlineOpacity = 0.6] - 衬色透明度
|
|
7813
|
-
* @property [outlineWidth = 2.0] - 衬色宽度
|
|
7814
|
-
* @property [background = false] - 是否背景
|
|
7815
|
-
* @property [backgroundColor = "#000000"] - 背景颜色
|
|
7816
|
-
* @property [backgroundOpacity = 0.5] - 背景透明度
|
|
7817
|
-
* @property [backgroundPadding = new Cesium.Cartesian2(7, 5)] - 背景内边距,指定文字与填充边界内容之间的空间(以像素为单位)。
|
|
7818
|
-
* @property [hasPixelOffset = false] - 是否存在偏移量
|
|
7819
|
-
* @property [pixelOffsetX = 0] - 横向偏移像素
|
|
7820
|
-
* @property [pixelOffsetY = 0] - 纵向偏移像素
|
|
7821
|
-
* @property [pixelOffset = Cartesian2.ZERO] - A {@link Cartesian2} Property specifying the pixel offset.
|
|
7822
|
-
* @property [pixelOffsetScaleByDistance] - A {@link NearFarScalar} Property used to set pixelOffset based on distance from the camera.
|
|
7823
|
-
* @property [eyeOffset = Cartesian3.ZERO] - A {@link Cartesian3} Property specifying the eye offset.
|
|
7824
|
-
* @property [scaleByDistance = false] - 是否按视距缩放 或 设定基于与相机的距离设置比例。
|
|
7825
|
-
* @property [scaleByDistance_far = 1000000] - 上限
|
|
7826
|
-
* @property [scaleByDistance_farValue = 0.1] - 比例值
|
|
7827
|
-
* @property [scaleByDistance_near = 1000] - 下限
|
|
7828
|
-
* @property [scaleByDistance_nearValue = 1] - 比例值
|
|
7829
|
-
* @property [distanceDisplayCondition = false] - 是否按视距显示 或 指定此框将显示在与摄像机的多大距离。
|
|
7830
|
-
* @property [distanceDisplayCondition_far = 100000] - 最大距离
|
|
7831
|
-
* @property [distanceDisplayCondition_near = 0] - 最小距离
|
|
7832
|
-
* @property [clampToGround = false] - 是否贴地
|
|
7833
|
-
* @property [heightReference = Cesium.HeightReference.NONE] - 指定高度相对于什么的属性。
|
|
7834
|
-
* @property [visibleDepth = true] - 是否被遮挡
|
|
7835
|
-
* @property [disableDepthTestDistance] - 指定从相机到禁用深度测试的距离。
|
|
7836
|
-
* @property [translucencyByDistance] - 用于基于与相机的距离设置半透明度。
|
|
7837
|
-
* @property [setHeight] - 指定坐标高度值(常用于图层中配置),也支持字符串模版配置
|
|
7838
|
-
* @property [addHeight] - 在现有坐标基础上增加的高度值(常用于图层中配置),也支持字符串模版配置
|
|
7839
|
-
*/
|
|
7840
|
-
type StyleOptions = {
|
|
7841
|
-
text?: string;
|
|
7842
|
-
scale?: number;
|
|
7843
|
-
horizontalOrigin?: Cesium.HorizontalOrigin;
|
|
7844
|
-
verticalOrigin?: Cesium.VerticalOrigin;
|
|
7845
|
-
font_family?: string;
|
|
7846
|
-
font_size?: number;
|
|
7847
|
-
font_weight?: string;
|
|
7848
|
-
font_style?: string;
|
|
7849
|
-
font?: string;
|
|
7850
|
-
fill?: boolean;
|
|
7851
|
-
color?: string | Cesium.Color;
|
|
7852
|
-
opacity?: number;
|
|
7853
|
-
outline?: boolean;
|
|
7854
|
-
outlineColor?: string | Cesium.Color;
|
|
7855
|
-
outlineOpacity?: number;
|
|
7856
|
-
outlineWidth?: number;
|
|
7857
|
-
background?: boolean;
|
|
7858
|
-
backgroundColor?: string | Cesium.Color;
|
|
7859
|
-
backgroundOpacity?: number;
|
|
7860
|
-
backgroundPadding?: number | Cesium.Cartesian2;
|
|
7861
|
-
hasPixelOffset?: boolean;
|
|
7862
|
-
pixelOffsetX?: number;
|
|
7863
|
-
pixelOffsetY?: number;
|
|
7864
|
-
pixelOffset?: Cesium.Cartesian2 | number[];
|
|
7865
|
-
pixelOffsetScaleByDistance?: Cesium.NearFarScalar;
|
|
7866
|
-
eyeOffset?: Cesium.Cartesian3;
|
|
7867
|
-
scaleByDistance?: boolean | Cesium.NearFarScalar;
|
|
7868
|
-
scaleByDistance_far?: number;
|
|
7869
|
-
scaleByDistance_farValue?: number;
|
|
7870
|
-
scaleByDistance_near?: number;
|
|
7871
|
-
scaleByDistance_nearValue?: number;
|
|
7872
|
-
distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition;
|
|
7873
|
-
distanceDisplayCondition_far?: number;
|
|
7874
|
-
distanceDisplayCondition_near?: number;
|
|
7875
|
-
clampToGround?: boolean;
|
|
7876
|
-
heightReference?: Cesium.HeightReference;
|
|
7877
|
-
visibleDepth?: boolean;
|
|
7878
|
-
disableDepthTestDistance?: number;
|
|
7879
|
-
translucencyByDistance?: Cesium.NearFarScalar;
|
|
7880
|
-
setHeight?: number | string;
|
|
7881
|
-
addHeight?: number | string;
|
|
7882
|
-
};
|
|
8310
|
+
*/
|
|
8311
|
+
static fromDraw(layer: GraphicLayer, options: any): FontBillboardEntity;
|
|
7883
8312
|
}
|
|
7884
8313
|
|
|
7885
8314
|
/**
|
|
@@ -8453,7 +8882,7 @@ declare namespace PlaneEntity {
|
|
|
8453
8882
|
dimensions_x?: number;
|
|
8454
8883
|
dimensions_y?: number;
|
|
8455
8884
|
plane?: Cesium.Plane;
|
|
8456
|
-
plane_normal?: string;
|
|
8885
|
+
plane_normal?: string | Cesium.Cartesian3;
|
|
8457
8886
|
plane_distance?: number;
|
|
8458
8887
|
heading?: number;
|
|
8459
8888
|
pitch?: number;
|
|
@@ -8871,7 +9300,7 @@ declare class PolygonEntity extends BasePolyEntity {
|
|
|
8871
9300
|
* 按Cesium.CallbackProperty的方式 更新坐标集合(更加平滑)
|
|
8872
9301
|
* @param positions - 坐标数组
|
|
8873
9302
|
*/
|
|
8874
|
-
setCallbackPositions(positions:
|
|
9303
|
+
setCallbackPositions(positions: string[] | any[][] | LngLatPoint[]): void;
|
|
8875
9304
|
}
|
|
8876
9305
|
|
|
8877
9306
|
declare namespace PolylineEntity {
|
|
@@ -8889,9 +9318,9 @@ declare namespace PolylineEntity {
|
|
|
8889
9318
|
* @property [outline = false] - 是否衬色
|
|
8890
9319
|
* @property [outlineColor = "#ffffff"] - 衬色颜色
|
|
8891
9320
|
* @property [outlineWidth = 2] - 衬色宽度
|
|
8892
|
-
* @property [depthFail
|
|
8893
|
-
* @property [depthFailColor
|
|
8894
|
-
* @property [depthFailOpacity
|
|
9321
|
+
* @property [depthFail] - 是否显示遮挡
|
|
9322
|
+
* @property [depthFailColor] - 遮挡处颜色
|
|
9323
|
+
* @property [depthFailOpacity] - 遮挡处透明度
|
|
8895
9324
|
* @property [distanceDisplayCondition = false] - 是否按视距显示 或 指定此框将显示在与摄像机的多大距离。
|
|
8896
9325
|
* @property [distanceDisplayCondition_far = 100000] - 最大距离
|
|
8897
9326
|
* @property [distanceDisplayCondition_near = 0] - 最小距离
|
|
@@ -10728,6 +11157,8 @@ declare class StraightArrow extends PolygonEntity {
|
|
|
10728
11157
|
* @param options.style - 样式信息
|
|
10729
11158
|
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
10730
11159
|
* @param [options.label] - 测量结果文本的样式
|
|
11160
|
+
* @param [options.angleDecimal = 1] - 显示的 角度值 文本中保留的小数位
|
|
11161
|
+
* @param [options.decimal = 2] - 显示的 距离值 文本中保留的小数位
|
|
10731
11162
|
* @param [options.availability] - 与该对象关联的可用性(如果有的话)。
|
|
10732
11163
|
* @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
|
|
10733
11164
|
* @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
|
|
@@ -10756,6 +11187,8 @@ declare class AngleMeasure extends PolylineEntity {
|
|
|
10756
11187
|
style: PolylineEntity.StyleOptions;
|
|
10757
11188
|
attr?: any;
|
|
10758
11189
|
label?: LabelEntity.StyleOptions;
|
|
11190
|
+
angleDecimal?: number;
|
|
11191
|
+
decimal?: number;
|
|
10759
11192
|
availability?: Cesium.TimeIntervalCollection;
|
|
10760
11193
|
description?: Cesium.Property | string;
|
|
10761
11194
|
viewFrom?: Cesium.Property;
|
|
@@ -10805,6 +11238,7 @@ declare class AngleMeasure extends PolylineEntity {
|
|
|
10805
11238
|
* @param options.style - 样式信息
|
|
10806
11239
|
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
10807
11240
|
* @param [options.label] - 测量结果文本的样式
|
|
11241
|
+
* @param [options.decimal = 2] - 显示的 面积值 文本中保留的小数位
|
|
10808
11242
|
* @param [options.availability] - 与该对象关联的可用性(如果有的话)。
|
|
10809
11243
|
* @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
|
|
10810
11244
|
* @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
|
|
@@ -10833,6 +11267,7 @@ declare class AreaMeasure extends PolygonEntity {
|
|
|
10833
11267
|
style: PolygonEntity.StyleOptions;
|
|
10834
11268
|
attr?: any;
|
|
10835
11269
|
label?: LabelEntity.StyleOptions;
|
|
11270
|
+
decimal?: number;
|
|
10836
11271
|
availability?: Cesium.TimeIntervalCollection;
|
|
10837
11272
|
description?: Cesium.Property | string;
|
|
10838
11273
|
viewFrom?: Cesium.Property;
|
|
@@ -10888,6 +11323,7 @@ declare class AreaMeasure extends PolygonEntity {
|
|
|
10888
11323
|
* @param options.style - 样式信息
|
|
10889
11324
|
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
10890
11325
|
* @param [options.label] - 测量结果文本的样式
|
|
11326
|
+
* @param [options.decimal = 2] - 显示的 面积值 文本中保留的小数位
|
|
10891
11327
|
* @param [options.availability] - 与该对象关联的可用性(如果有的话)。
|
|
10892
11328
|
* @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
|
|
10893
11329
|
* @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
|
|
@@ -10916,6 +11352,7 @@ declare class AreaSurfaceMeasure extends AreaMeasure {
|
|
|
10916
11352
|
style: PolygonEntity.StyleOptions;
|
|
10917
11353
|
attr?: any;
|
|
10918
11354
|
label?: LabelEntity.StyleOptions;
|
|
11355
|
+
decimal?: number;
|
|
10919
11356
|
availability?: Cesium.TimeIntervalCollection;
|
|
10920
11357
|
description?: Cesium.Property | string;
|
|
10921
11358
|
viewFrom?: Cesium.Property;
|
|
@@ -10955,6 +11392,7 @@ declare class AreaSurfaceMeasure extends AreaMeasure {
|
|
|
10955
11392
|
* @param options.style - 样式信息
|
|
10956
11393
|
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
10957
11394
|
* @param [options.label] - 测量结果文本的样式
|
|
11395
|
+
* @param [options.decimal = 2] - 显示的 距离值 文本中保留的小数位
|
|
10958
11396
|
* @param [options.availability] - 与该对象关联的可用性(如果有的话)。
|
|
10959
11397
|
* @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
|
|
10960
11398
|
* @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
|
|
@@ -10983,6 +11421,7 @@ declare class DistanceMeasure extends PolylineEntity {
|
|
|
10983
11421
|
style: PolylineEntity.StyleOptions;
|
|
10984
11422
|
attr?: any;
|
|
10985
11423
|
label?: LabelEntity.StyleOptions;
|
|
11424
|
+
decimal?: number;
|
|
10986
11425
|
availability?: Cesium.TimeIntervalCollection;
|
|
10987
11426
|
description?: Cesium.Property | string;
|
|
10988
11427
|
viewFrom?: Cesium.Property;
|
|
@@ -11032,6 +11471,7 @@ declare class DistanceMeasure extends PolylineEntity {
|
|
|
11032
11471
|
* @param options.style - 样式信息
|
|
11033
11472
|
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
11034
11473
|
* @param [options.label] - 测量结果文本的样式
|
|
11474
|
+
* @param [options.decimal = 2] - 显示的 距离值 文本中保留的小数位
|
|
11035
11475
|
* @param [options.availability] - 与该对象关联的可用性(如果有的话)。
|
|
11036
11476
|
* @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
|
|
11037
11477
|
* @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
|
|
@@ -11060,6 +11500,7 @@ declare class DistanceSurfaceMeasure extends DistanceMeasure {
|
|
|
11060
11500
|
style: PolylineEntity.StyleOptions;
|
|
11061
11501
|
attr?: any;
|
|
11062
11502
|
label?: LabelEntity.StyleOptions;
|
|
11503
|
+
decimal?: number;
|
|
11063
11504
|
availability?: Cesium.TimeIntervalCollection;
|
|
11064
11505
|
description?: Cesium.Property | string;
|
|
11065
11506
|
viewFrom?: Cesium.Property;
|
|
@@ -11099,6 +11540,7 @@ declare class DistanceSurfaceMeasure extends DistanceMeasure {
|
|
|
11099
11540
|
* @param options.style - 样式信息
|
|
11100
11541
|
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
11101
11542
|
* @param [options.label] - 测量结果文本的样式
|
|
11543
|
+
* @param [options.decimal = 2] - 显示的 距离和高度值 文本中保留的小数位
|
|
11102
11544
|
* @param [options.availability] - 与该对象关联的可用性(如果有的话)。
|
|
11103
11545
|
* @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
|
|
11104
11546
|
* @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
|
|
@@ -11127,6 +11569,7 @@ declare class HeightMeasure extends PolylineEntity {
|
|
|
11127
11569
|
style: PolylineEntity.StyleOptions;
|
|
11128
11570
|
attr?: any;
|
|
11129
11571
|
label?: LabelEntity.StyleOptions;
|
|
11572
|
+
decimal?: number;
|
|
11130
11573
|
availability?: Cesium.TimeIntervalCollection;
|
|
11131
11574
|
description?: Cesium.Property | string;
|
|
11132
11575
|
viewFrom?: Cesium.Property;
|
|
@@ -11176,6 +11619,7 @@ declare class HeightMeasure extends PolylineEntity {
|
|
|
11176
11619
|
* @param options.style - 样式信息
|
|
11177
11620
|
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
11178
11621
|
* @param [options.label] - 测量结果文本的样式
|
|
11622
|
+
* @param [options.decimal = 2] - 显示的 距离和高度值 文本中保留的小数位
|
|
11179
11623
|
* @param [options.availability] - 与该对象关联的可用性(如果有的话)。
|
|
11180
11624
|
* @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
|
|
11181
11625
|
* @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
|
|
@@ -11204,6 +11648,7 @@ declare class HeightTriangleMeasure extends HeightMeasure {
|
|
|
11204
11648
|
style: PolylineEntity.StyleOptions;
|
|
11205
11649
|
attr?: any;
|
|
11206
11650
|
label?: LabelEntity.StyleOptions;
|
|
11651
|
+
decimal?: number;
|
|
11207
11652
|
availability?: Cesium.TimeIntervalCollection;
|
|
11208
11653
|
description?: Cesium.Property | string;
|
|
11209
11654
|
viewFrom?: Cesium.Property;
|
|
@@ -11306,6 +11751,7 @@ declare class PointMeasure extends PointEntity {
|
|
|
11306
11751
|
* @param options.style - 样式信息
|
|
11307
11752
|
* @param [options.attr] - 附件的属性信息,可以任意附加属性,导出geojson或json时会自动处理导出。
|
|
11308
11753
|
* @param [options.label] - 测量结果文本的样式
|
|
11754
|
+
* @param [options.decimal = 2] - 显示的 距离值 文本中保留的小数位
|
|
11309
11755
|
* @param [options.availability] - 与该对象关联的可用性(如果有的话)。
|
|
11310
11756
|
* @param [options.description] - 指定此实体的HTML描述的字符串属性(infoBox中展示)。
|
|
11311
11757
|
* @param [options.viewFrom] - 观察这个物体时建议的初始偏移量。
|
|
@@ -11334,6 +11780,7 @@ declare class SectionMeasure extends DistanceMeasure {
|
|
|
11334
11780
|
style: PolylineEntity.StyleOptions;
|
|
11335
11781
|
attr?: any;
|
|
11336
11782
|
label?: LabelEntity.StyleOptions;
|
|
11783
|
+
decimal?: number;
|
|
11337
11784
|
availability?: Cesium.TimeIntervalCollection;
|
|
11338
11785
|
description?: Cesium.Property | string;
|
|
11339
11786
|
viewFrom?: Cesium.Property;
|
|
@@ -11385,6 +11832,7 @@ declare class SectionMeasure extends DistanceMeasure {
|
|
|
11385
11832
|
* @param [options.heightLabel = true] - 是否显示各边界点高度值文本
|
|
11386
11833
|
* @param [options.offsetLabel = false] - 是否显示各边界点高度差文本
|
|
11387
11834
|
* @param [options.labelHeight] - 各边界点高度结果文本的样式
|
|
11835
|
+
* @param [options.decimal = 2] - 显示的 数值 文本中保留的小数位
|
|
11388
11836
|
* @param [options.has3dtiles] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
11389
11837
|
* @param [options.id = uuid()] - 矢量数据id标识
|
|
11390
11838
|
* @param [options.name = ''] - 矢量数据名称
|
|
@@ -11407,6 +11855,7 @@ declare class VolumeMeasure extends AreaMeasure {
|
|
|
11407
11855
|
heightLabel?: boolean;
|
|
11408
11856
|
offsetLabel?: boolean;
|
|
11409
11857
|
labelHeight?: LabelEntity.StyleOptions;
|
|
11858
|
+
decimal?: number;
|
|
11410
11859
|
has3dtiles?: boolean;
|
|
11411
11860
|
id?: string | number;
|
|
11412
11861
|
name?: string;
|
|
@@ -12085,6 +12534,7 @@ declare namespace CirclePrimitive {
|
|
|
12085
12534
|
* @property [outline = false] - 是否边框
|
|
12086
12535
|
* @property [outlineColor = "#ffffff"] - 边框颜色
|
|
12087
12536
|
* @property [outlineOpacity = 0.6] - 边框透明度
|
|
12537
|
+
* @property [outlineStyle] - 边框的样式,会覆盖outlineColor、outlineOpacity
|
|
12088
12538
|
* @property [materialSupport = Cesium.MaterialAppearance.MaterialSupport.TEXTURED] - 将被支持的材质类型。
|
|
12089
12539
|
* @property [clampToGround = false] - 是否贴地
|
|
12090
12540
|
* @property [classificationType = Cesium.ClassificationType.BOTH] - 指定贴地时的覆盖类型,是只对地形、3dtiles 或 两者同时。
|
|
@@ -12119,6 +12569,7 @@ declare namespace CirclePrimitive {
|
|
|
12119
12569
|
outline?: boolean;
|
|
12120
12570
|
outlineColor?: string | Cesium.Color;
|
|
12121
12571
|
outlineOpacity?: number;
|
|
12572
|
+
outlineStyle?: PolylinePrimitive.StyleOptions;
|
|
12122
12573
|
materialSupport?: Cesium.MaterialAppearance.MaterialSupportType;
|
|
12123
12574
|
clampToGround?: boolean;
|
|
12124
12575
|
classificationType?: Cesium.ClassificationType;
|
|
@@ -13439,9 +13890,6 @@ declare namespace ModelPrimitive {
|
|
|
13439
13890
|
* @property [addHeight] - 在现有坐标基础上增加的高度值(常用于图层中配置),也支持字符串模版配置
|
|
13440
13891
|
* @property [highlight] - 鼠标移入或单击(type:'click')后的对应高亮的部分样式,创建Graphic后也可以openHighlight、closeHighlight方法来手动调用
|
|
13441
13892
|
* @property [label] - 支持附带文字的显示
|
|
13442
|
-
* @param [options.maxCacheCount = 50] - 当使用addDynamicPosition设置为动画轨迹位置时,保留的坐标点数量
|
|
13443
|
-
* @param [options.forwardExtrapolationType = Cesium.ExtrapolationType.NONE] - 当使用addDynamicPosition设置为动画轨迹位置时,在任何可用坐标之后一次请求值时要执行的推断类型,默认为最后一个坐标位置。
|
|
13444
|
-
* @param [options.backwardExtrapolationType = Cesium.ExtrapolationType.NONE] - 当使用addDynamicPosition设置为动画轨迹位置时, 在任何可用坐标之前一次请求值时要执行的推断类型,默认为第一个坐标位置。
|
|
13445
13893
|
*/
|
|
13446
13894
|
type StyleOptions = {
|
|
13447
13895
|
url?: string | Cesium.Resource;
|
|
@@ -13745,7 +14193,7 @@ declare namespace PlanePrimitive {
|
|
|
13745
14193
|
dimensions?: Cesium.Cartesian2;
|
|
13746
14194
|
dimensions_x?: number;
|
|
13747
14195
|
dimensions_y?: number;
|
|
13748
|
-
plane_normal?: string;
|
|
14196
|
+
plane_normal?: string | Cesium.Cartesian3;
|
|
13749
14197
|
heading?: number;
|
|
13750
14198
|
pitch?: number;
|
|
13751
14199
|
roll?: number;
|
|
@@ -13941,6 +14389,7 @@ declare namespace PolygonPrimitive {
|
|
|
13941
14389
|
* @property [outline = false] - 是否边框
|
|
13942
14390
|
* @property [outlineColor = "#ffffff"] - 边框颜色
|
|
13943
14391
|
* @property [outlineOpacity = 0.6] - 边框透明度
|
|
14392
|
+
* @property [outlineStyle] - 边框的样式,会覆盖outlineColor、outlineOpacity
|
|
13944
14393
|
* @property [height = 0] - 高程,圆相对于椭球面的高度。
|
|
13945
14394
|
* @property [diffHeight = 100] - 高度差(走廊本身的高度),与extrudedHeight二选一。
|
|
13946
14395
|
* @property [extrudedHeight] - 指定走廊挤压面相对于椭球面的高度。
|
|
@@ -13983,6 +14432,7 @@ declare namespace PolygonPrimitive {
|
|
|
13983
14432
|
outline?: boolean;
|
|
13984
14433
|
outlineColor?: string | Cesium.Color;
|
|
13985
14434
|
outlineOpacity?: number;
|
|
14435
|
+
outlineStyle?: PolylinePrimitive.StyleOptions;
|
|
13986
14436
|
height?: number;
|
|
13987
14437
|
diffHeight?: number;
|
|
13988
14438
|
extrudedHeight?: number;
|
|
@@ -14093,6 +14543,9 @@ declare namespace PolylinePrimitive {
|
|
|
14093
14543
|
* @property [colors] - 定义每顶点或每段颜色 的数组。
|
|
14094
14544
|
* @property [colorsPerVertex = false] - 用于确定颜色在线条的每一段上是平坦的还是在顶点上插值的。
|
|
14095
14545
|
* @property [closure = false] - 是否闭合
|
|
14546
|
+
* @property [depthFail] - 是否显示遮挡
|
|
14547
|
+
* @property [depthFailColor] - 遮挡处颜色
|
|
14548
|
+
* @property [depthFailOpacity] - 遮挡处透明度
|
|
14096
14549
|
* @property [distanceDisplayCondition = false] - 是否按视距显示 或 指定此框将显示在与摄像机的多大距离。
|
|
14097
14550
|
* @property [distanceDisplayCondition_far = 100000] - 最大距离
|
|
14098
14551
|
* @property [distanceDisplayCondition_near = 0] - 最小距离
|
|
@@ -14120,6 +14573,9 @@ declare namespace PolylinePrimitive {
|
|
|
14120
14573
|
colors?: Cesium.Color[];
|
|
14121
14574
|
colorsPerVertex?: boolean;
|
|
14122
14575
|
closure?: boolean;
|
|
14576
|
+
depthFail?: boolean;
|
|
14577
|
+
depthFailColor?: string;
|
|
14578
|
+
depthFailOpacity?: number;
|
|
14123
14579
|
distanceDisplayCondition?: boolean | Cesium.DistanceDisplayCondition;
|
|
14124
14580
|
distanceDisplayCondition_far?: number;
|
|
14125
14581
|
distanceDisplayCondition_near?: number;
|
|
@@ -14380,6 +14836,7 @@ declare namespace RectanglePrimitive {
|
|
|
14380
14836
|
* @property [outline = false] - 是否边框
|
|
14381
14837
|
* @property [outlineColor = "#ffffff"] - 边框颜色
|
|
14382
14838
|
* @property [outlineOpacity = 0.6] - 边框透明度
|
|
14839
|
+
* @property [outlineStyle] - 边框的样式,会覆盖outlineColor、outlineOpacity
|
|
14383
14840
|
* @property [height = 0] - 高程,圆相对于椭球面的高度。
|
|
14384
14841
|
* @property [diffHeight = 100] - 高度差(走廊本身的高度),与extrudedHeight二选一。
|
|
14385
14842
|
* @property [extrudedHeight] - 指定走廊挤压面相对于椭球面的高度。
|
|
@@ -14406,6 +14863,7 @@ declare namespace RectanglePrimitive {
|
|
|
14406
14863
|
outline?: boolean;
|
|
14407
14864
|
outlineColor?: string | Cesium.Color;
|
|
14408
14865
|
outlineOpacity?: number;
|
|
14866
|
+
outlineStyle?: PolylinePrimitive.StyleOptions;
|
|
14409
14867
|
height?: number;
|
|
14410
14868
|
diffHeight?: number;
|
|
14411
14869
|
extrudedHeight?: number;
|
|
@@ -16065,11 +16523,6 @@ declare class BaseLayer extends BaseClass {
|
|
|
16065
16523
|
* @returns 当前对象本身,可以链式调用
|
|
16066
16524
|
*/
|
|
16067
16525
|
showError(title: string, error: any): BaseLayer;
|
|
16068
|
-
/**
|
|
16069
|
-
* 入场动画后再执行flyTo,直接调用flyTo可能造成入场动画失败。
|
|
16070
|
-
* @returns 当前对象本身,可以链式调用
|
|
16071
|
-
*/
|
|
16072
|
-
flyToByAnimationEnd(): BaseLayer;
|
|
16073
16526
|
/**
|
|
16074
16527
|
* 飞行定位至图层数据所在的视角
|
|
16075
16528
|
* @param [options = {}] - 参数对象:
|
|
@@ -18399,8 +18852,12 @@ declare namespace TilesetLayer {
|
|
|
18399
18852
|
* 3dtiles 三维模型图层。
|
|
18400
18853
|
* @param options - 参数对象, 构造参数建议从{@link http://mars3d.cn/editor.html?id=layer-tileset/manager/edit|模型编辑页面}设置后保存参数后拷贝json参数即可。参数包括以下:
|
|
18401
18854
|
* @param options.url - tileset的主JSON文件的 url
|
|
18402
|
-
* @param [options.maximumScreenSpaceError = 16] -
|
|
18403
|
-
* @param [options.maximumMemoryUsage = 512] - 数据集可以使用的最大内存量(以MB计)
|
|
18855
|
+
* @param [options.maximumScreenSpaceError = 16] - 用于驱动细化细节级别的最大屏幕空间错误。可以简单理解为:数值加大,能让最终成像变模糊。
|
|
18856
|
+
* @param [options.maximumMemoryUsage = 512] - 数据集可以使用的最大内存量(以MB计),这个参数要根据当前客户端显卡显存来配置,如果我们场景只显示这一个模型数据,这个可以设置到显存的50% 左右,比如我的显存是4G,这个可以设置到2048左右。那么既保证不超过显存限制,又可以最大利用显存缓存。<br />
|
|
18857
|
+
* 解释:
|
|
18858
|
+
* 这个参数默认是512,也即是当几何体和纹理资源大于512MB的时候,cesium就会淘汰掉当前帧中没有visited的所有块,这个值其实很小,也是cesium为了避免资源占用过高的一个保障.<br />
|
|
18859
|
+
* 这个值如果设置的过小,导致cesium几乎每帧都在尝试淘汰数据,增加了遍历的时间,也同时增加了崩溃的风险。<br />
|
|
18860
|
+
* 这个值如果设置的过大,cesium的淘汰机制失效,那么容易导致显存超过显卡内存,也会导致崩溃。 这个值应该处于最差视角下资源占用 和 显存最大量之间。<br />
|
|
18404
18861
|
* @param [options.position] - 自定义新的中心点位置(移动模型)
|
|
18405
18862
|
* @param options.position.lng - 经度值, 180 - 180
|
|
18406
18863
|
* @param options.position.lat - 纬度值, -90 - 90
|
|
@@ -18586,6 +19043,14 @@ declare class TilesetLayer extends BaseGraphicLayer {
|
|
|
18586
19043
|
* 模型对应的 Cesium3DTileset对象
|
|
18587
19044
|
*/
|
|
18588
19045
|
readonly tileset: Cesium.Cesium3DTileset;
|
|
19046
|
+
/**
|
|
19047
|
+
* 变换矩阵。
|
|
19048
|
+
*/
|
|
19049
|
+
readonly modelMatrix: Cesium.Matrix4;
|
|
19050
|
+
/**
|
|
19051
|
+
* 逆变换矩阵。
|
|
19052
|
+
*/
|
|
19053
|
+
readonly inverseMatrix: Cesium.Matrix4;
|
|
18589
19054
|
/**
|
|
18590
19055
|
* 鼠标移入或单击(type:'click')后的对应高亮的部分样式,空值时不高亮
|
|
18591
19056
|
*/
|
|
@@ -18628,6 +19093,10 @@ declare class TilesetLayer extends BaseGraphicLayer {
|
|
|
18628
19093
|
* 模型的边界球体。
|
|
18629
19094
|
*/
|
|
18630
19095
|
readonly boundingSphere: Cesium.BoundingSphere;
|
|
19096
|
+
/**
|
|
19097
|
+
* 模型的向上轴,比如Cesium.Axis.Z 或 Cesium.Axis.Y
|
|
19098
|
+
*/
|
|
19099
|
+
readonly upAxis: Cesium.Axis;
|
|
18631
19100
|
/**
|
|
18632
19101
|
* 旋转方向,示例:{ x: 0, y: 0, z: 0 }
|
|
18633
19102
|
*/
|
|
@@ -18852,7 +19321,7 @@ declare class WfsLayer extends LodGraphicLayer {
|
|
|
18852
19321
|
url: string;
|
|
18853
19322
|
parameters?: {
|
|
18854
19323
|
maxFeatures?: number;
|
|
18855
|
-
cql_filter?:
|
|
19324
|
+
cql_filter?: string;
|
|
18856
19325
|
service?: string;
|
|
18857
19326
|
version?: string;
|
|
18858
19327
|
};
|
|
@@ -19000,6 +19469,16 @@ declare class GroupLayer extends BaseGraphicLayer {
|
|
|
19000
19469
|
* 图层顺序,数字大的在上面。(当hasZIndex为true时)
|
|
19001
19470
|
*/
|
|
19002
19471
|
zIndex: number;
|
|
19472
|
+
/**
|
|
19473
|
+
* 添加所有子图层到map上
|
|
19474
|
+
* @returns 当前对象本身,可以链式调用
|
|
19475
|
+
*/
|
|
19476
|
+
addChildsToMap(): GroupLayer;
|
|
19477
|
+
/**
|
|
19478
|
+
* 将所有子图层从map中移除
|
|
19479
|
+
* @returns 当前对象本身,可以链式调用
|
|
19480
|
+
*/
|
|
19481
|
+
removeMapChilds(): GroupLayer;
|
|
19003
19482
|
/**
|
|
19004
19483
|
* 添加子图层,并绑定关联关系。
|
|
19005
19484
|
* @param childlayer - 子图层对象
|
|
@@ -19028,7 +19507,7 @@ declare class GroupLayer extends BaseGraphicLayer {
|
|
|
19028
19507
|
* 获取地图所有的子图层对象(包括pid和id关联的图层)
|
|
19029
19508
|
* @returns 所有子图层对象
|
|
19030
19509
|
*/
|
|
19031
|
-
|
|
19510
|
+
getInMapChilds(): BaseLayer[] | GraphicLayer[];
|
|
19032
19511
|
/**
|
|
19033
19512
|
* 根据ID或取图层
|
|
19034
19513
|
* @param id - 图层id或uuid
|
|
@@ -19278,11 +19757,10 @@ declare namespace ArcGisLayer {
|
|
|
19278
19757
|
* @param options.rectangle.ymax - 最大纬度值, -90 至 90
|
|
19279
19758
|
* @param [options.bbox] - bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
19280
19759
|
* @param [options.zIndex] - 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
19281
|
-
* @param [options.crs = CRS.
|
|
19760
|
+
* @param [options.crs = CRS.EPSG4326] - 瓦片数据的坐标系信息,默认为墨卡托投影
|
|
19282
19761
|
* @param [options.chinaCRS] - 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
19283
19762
|
* @param [options.enablePickFeatures = true] - 如果为true,则请求 单击坐标处服务中对应的矢量数据 并尝试解释响应中包含的功能。为false时不去服务请求。
|
|
19284
|
-
* @param [options.
|
|
19285
|
-
* @param [options.maxLength = 5000] - 单击获取到的数据,最大数据长度。大数据解析很卡,可以设定阀值屏蔽大数据,避免卡顿。传-1时不限制
|
|
19763
|
+
* @param [options.graphicConver] - 单击获取到的数据进行按需筛选解析,大数据解析很卡,可以设定阀值屏蔽大数据,避免卡顿,number类型时代表字符串长度值。
|
|
19286
19764
|
* @param [options.highlight] - 鼠标单击高亮显示对应的矢量数据 及其样式,具体见各{@link GraphicType}矢量数据的style参数。
|
|
19287
19765
|
* @param [options.highlight.type] - 构造成的矢量数据类型。
|
|
19288
19766
|
* @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板
|
|
@@ -19353,8 +19831,7 @@ declare class ArcGisLayer extends BaseTileLayer {
|
|
|
19353
19831
|
crs?: CRS;
|
|
19354
19832
|
chinaCRS?: ChinaCRS;
|
|
19355
19833
|
enablePickFeatures?: boolean;
|
|
19356
|
-
|
|
19357
|
-
maxLength?: number;
|
|
19834
|
+
graphicConver?: number | boolean | ((...params: any[]) => any);
|
|
19358
19835
|
highlight?: {
|
|
19359
19836
|
type?: GraphicType | string;
|
|
19360
19837
|
};
|
|
@@ -19398,6 +19875,10 @@ declare class ArcGisLayer extends BaseTileLayer {
|
|
|
19398
19875
|
};
|
|
19399
19876
|
flyTo?: boolean;
|
|
19400
19877
|
});
|
|
19878
|
+
/**
|
|
19879
|
+
* 坐标系
|
|
19880
|
+
*/
|
|
19881
|
+
readonly crs: CRS | string;
|
|
19401
19882
|
/**
|
|
19402
19883
|
* 是否存在Popup绑定
|
|
19403
19884
|
* @returns 是否存在Popup绑定
|
|
@@ -19432,6 +19913,12 @@ declare class ArcGisLayer extends BaseTileLayer {
|
|
|
19432
19913
|
* @returns 创建完成的 ImageryProvider 对象
|
|
19433
19914
|
*/
|
|
19434
19915
|
_createImageryProvider(options?: any): Cesium.UrlTemplateImageryProvider | any;
|
|
19916
|
+
/**
|
|
19917
|
+
* 对象添加到地图上的创建钩子方法,
|
|
19918
|
+
* 每次add时都会调用
|
|
19919
|
+
* @returns 无
|
|
19920
|
+
*/
|
|
19921
|
+
_addedHook(): void;
|
|
19435
19922
|
}
|
|
19436
19923
|
|
|
19437
19924
|
/**
|
|
@@ -19872,6 +20359,10 @@ declare class BaseTileLayer extends BaseLayer {
|
|
|
19872
20359
|
* 瓦片图层对应的内部ImageryProvider对象
|
|
19873
20360
|
*/
|
|
19874
20361
|
readonly imageryProvider: Cesium.ImageryProvider;
|
|
20362
|
+
/**
|
|
20363
|
+
* 坐标系
|
|
20364
|
+
*/
|
|
20365
|
+
readonly crs: CRS | string;
|
|
19875
20366
|
/**
|
|
19876
20367
|
* 透明度,同opacity。从0.0到1.0。
|
|
19877
20368
|
*/
|
|
@@ -21275,6 +21766,7 @@ declare class OsmLayer extends BaseTileLayer {
|
|
|
21275
21766
|
* <li><code>ter_z</code>: 地形渲染图注记</li>
|
|
21276
21767
|
* </ul>
|
|
21277
21768
|
* @param [options.key = mars3d.Token.tiandituArr] - 天地图服务Token,可以自行注册官网: {@link https://console.tianditu.gov.cn/api/key}
|
|
21769
|
+
* @param [options.url] - 服务URL地址,同xyz服务
|
|
21278
21770
|
* @param [options.minimumLevel = 0] - 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。
|
|
21279
21771
|
* @param [options.maximumLevel] - 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。
|
|
21280
21772
|
* @param [options.minimumTerrainLevel] - 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。
|
|
@@ -21330,6 +21822,7 @@ declare class TdtLayer extends BaseTileLayer {
|
|
|
21330
21822
|
constructor(options?: {
|
|
21331
21823
|
layer?: string;
|
|
21332
21824
|
key?: string[];
|
|
21825
|
+
url?: string;
|
|
21333
21826
|
minimumLevel?: number;
|
|
21334
21827
|
maximumLevel?: number;
|
|
21335
21828
|
minimumTerrainLevel?: number;
|
|
@@ -21787,10 +22280,8 @@ declare class TmsLayer extends BaseTileLayer {
|
|
|
21787
22280
|
* @param [options.clock] - 一个时钟实例,用于确定时间维度的值。指定' times '时需要。
|
|
21788
22281
|
* @param [options.times] - TimeIntervalCollection 的数据属性是一个包含时间动态维度及其值的对象。
|
|
21789
22282
|
* @param [options.enablePickFeatures = true] - 如果为true,则请求 单击坐标处服务中对应的矢量数据 并尝试解释响应中包含的功能。为false时不去服务请求。
|
|
21790
|
-
* @param [options.
|
|
21791
|
-
* @param [options.
|
|
21792
|
-
* @param [options.highlight] - 鼠标单击高亮显示对应的矢量数据 及其样式,具体见各{@link GraphicType}矢量数据的style参数。
|
|
21793
|
-
* @param [options.highlight.type] - 构造成的矢量数据类型。
|
|
22283
|
+
* @param [options.graphicConver] - 单击获取到的数据进行按需筛选解析,大数据解析很卡,可以设定阀值屏蔽大数据,避免卡顿,number类型时代表字符串长度值。
|
|
22284
|
+
* @param [options.highlight] - 鼠标单击高亮显示对应的矢量数据 及其样式,包括type参数指定构造的类型,其他参数见各{@link GraphicType}矢量数据的style参数项。
|
|
21794
22285
|
* @param [options.popup] - 绑定的popup弹窗值,也可以bindPopup方法绑定,支持:'all'、数组、字符串模板
|
|
21795
22286
|
* @param [options.popupOptions] - popup弹窗时的配置参数,也支持如pointerEvents等{@link Popup}构造参数,还包括:
|
|
21796
22287
|
* @param [options.popupOptions.title] - 固定的标题名称
|
|
@@ -21849,7 +22340,7 @@ declare class WmsLayer extends BaseTileLayer {
|
|
|
21849
22340
|
parameters?: {
|
|
21850
22341
|
format?: string;
|
|
21851
22342
|
transparent?: boolean;
|
|
21852
|
-
cql_filter?:
|
|
22343
|
+
cql_filter?: string;
|
|
21853
22344
|
service?: string;
|
|
21854
22345
|
version?: string;
|
|
21855
22346
|
request?: string;
|
|
@@ -21861,11 +22352,8 @@ declare class WmsLayer extends BaseTileLayer {
|
|
|
21861
22352
|
clock?: Cesium.Clock;
|
|
21862
22353
|
times?: Cesium.TimeIntervalCollection;
|
|
21863
22354
|
enablePickFeatures?: boolean;
|
|
21864
|
-
|
|
21865
|
-
|
|
21866
|
-
highlight?: {
|
|
21867
|
-
type?: GraphicType | string;
|
|
21868
|
-
};
|
|
22355
|
+
graphicConver?: number | boolean | ((...params: any[]) => any);
|
|
22356
|
+
highlight?: any;
|
|
21869
22357
|
popup?: string | Globe.getTemplateHtml_template[] | ((...params: any[]) => any);
|
|
21870
22358
|
popupOptions?: {
|
|
21871
22359
|
title?: string;
|
|
@@ -22446,7 +22934,7 @@ declare namespace Map {
|
|
|
22446
22934
|
* @property extent.ymin - 最小纬度值, -90 至 90
|
|
22447
22935
|
* @property extent.ymax - 最大纬度值, -90 至 90
|
|
22448
22936
|
* @property [removeDblClick = false] - 是否移除Cesium默认的双击事件
|
|
22449
|
-
* @property [ionToken
|
|
22937
|
+
* @property [ionToken] - Cesium Ion服务的 Token令牌
|
|
22450
22938
|
* @property [resolutionScale = 1.0] - 获取或设置渲染分辨率的缩放比例。小于1.0的值可以改善性能不佳的设备上的性能,而值大于1.0则将以更高的速度呈现分辨率,然后缩小比例,从而提高视觉保真度。例如,如果窗口小部件的尺寸为640x480,则将此值设置为0.5将导致场景以320x240渲染,然后在设置时按比例放大设置为2.0将导致场景以1280x960渲染,然后按比例缩小。
|
|
22451
22939
|
*
|
|
22452
22940
|
* 以下是Cesium.Scene对象相关参数
|
|
@@ -22595,9 +23083,11 @@ declare namespace Map {
|
|
|
22595
23083
|
* @property [infoBox = true] - 是否显示 点击要素之后显示的信息
|
|
22596
23084
|
* @property [selectionIndicator = true] - 选择模型时,是否显示绿色框
|
|
22597
23085
|
* @property [animation = true] - 是否创建 左下角仪表动画面板
|
|
23086
|
+
* @property [animationTicks] - 左下角仪表动画面板 的可选步长
|
|
22598
23087
|
* @property [timeline = true] - 是否创建 下侧时间线控件面板
|
|
22599
23088
|
* @property [baseLayerPicker = true] - 是否显示 basemaps底图切换按钮
|
|
22600
23089
|
* @property [fullscreenButton = true] - 是否显示 全屏按钮
|
|
23090
|
+
* @property [fullscreenElement = document.body] - 当按下全屏按钮时,要置于全屏模式的元素或id。
|
|
22601
23091
|
* @property [vrButton = false] - 是否显示 右下角vr虚拟现实按钮
|
|
22602
23092
|
* @property [geocoder = true] - 是否显示 地名查找控件按钮
|
|
22603
23093
|
* @property [homeButton = true] - 是否显示 视角复位按钮
|
|
@@ -22623,9 +23113,11 @@ declare namespace Map {
|
|
|
22623
23113
|
infoBox?: boolean;
|
|
22624
23114
|
selectionIndicator?: boolean;
|
|
22625
23115
|
animation?: boolean;
|
|
23116
|
+
animationTicks?: number[];
|
|
22626
23117
|
timeline?: boolean;
|
|
22627
23118
|
baseLayerPicker?: boolean;
|
|
22628
23119
|
fullscreenButton?: boolean;
|
|
23120
|
+
fullscreenElement?: Element | string;
|
|
22629
23121
|
vrButton?: boolean;
|
|
22630
23122
|
geocoder?: boolean | Cesium.GeocoderService[];
|
|
22631
23123
|
homeButton?: boolean;
|
|
@@ -22732,6 +23224,23 @@ declare namespace Map {
|
|
|
22732
23224
|
tooltipOptions?: Tooltip.StyleOptions;
|
|
22733
23225
|
多个参数?: any;
|
|
22734
23226
|
};
|
|
23227
|
+
/**
|
|
23228
|
+
* 覆盖SDK内的{@link Token}所有第3方Token默认值
|
|
23229
|
+
* @property [tianditu] - 天地图
|
|
23230
|
+
* @property [gaode] - 高德
|
|
23231
|
+
* @property [baidu] - 百度
|
|
23232
|
+
* @property [ion] - Ion服务
|
|
23233
|
+
* @property [mapbox] - mapbox地图
|
|
23234
|
+
* @property [bing] - 微软Bing地图
|
|
23235
|
+
*/
|
|
23236
|
+
type tokenOptions = {
|
|
23237
|
+
tianditu?: string | string[];
|
|
23238
|
+
gaode?: string | string[];
|
|
23239
|
+
baidu?: string | string[];
|
|
23240
|
+
ion?: string;
|
|
23241
|
+
mapbox?: string;
|
|
23242
|
+
bing?: string;
|
|
23243
|
+
};
|
|
22735
23244
|
/**
|
|
22736
23245
|
* Map支持的{@link EventType}事件类型
|
|
22737
23246
|
* @example
|
|
@@ -22852,6 +23361,7 @@ declare namespace Map {
|
|
|
22852
23361
|
* @param [options.chinaCRS = ChinaCRS.WGS84] - 标识当前三维场景的国内坐标系(用于部分图层内对比判断来自动纠偏或加偏)
|
|
22853
23362
|
* @param [options.lang] - 使用的语言(如中文、英文等)。
|
|
22854
23363
|
* @param [options.templateValues] - 图层中统一的url模版,比如可以将服务url前缀统一使用模板,方便修改或动态配置。
|
|
23364
|
+
* @param [options.token] - 覆盖SDK内的{@link Token}所有第3方Token默认值
|
|
22855
23365
|
*/
|
|
22856
23366
|
declare class Map extends BaseClass {
|
|
22857
23367
|
constructor(id: string | Cesium.Viewer, options?: {
|
|
@@ -22865,6 +23375,7 @@ declare class Map extends BaseClass {
|
|
|
22865
23375
|
chinaCRS?: ChinaCRS;
|
|
22866
23376
|
lang?: LangType;
|
|
22867
23377
|
templateValues?: any;
|
|
23378
|
+
token?: Map.tokenOptions;
|
|
22868
23379
|
});
|
|
22869
23380
|
/**
|
|
22870
23381
|
* 当前类的构造参数
|
|
@@ -24200,6 +24711,42 @@ declare class LineTrailMaterialProperty extends BaseMaterialProperty {
|
|
|
24200
24711
|
bgColor: Cesium.Color;
|
|
24201
24712
|
}
|
|
24202
24713
|
|
|
24714
|
+
/**
|
|
24715
|
+
* 面状: 霓虹灯材质
|
|
24716
|
+
* @param [options] - 参数对象,包括以下:
|
|
24717
|
+
* @param [options.color = "#9b08fd"] - 颜色
|
|
24718
|
+
* @param [options.speed = 2] - 速度,值越大越快
|
|
24719
|
+
*/
|
|
24720
|
+
declare class NeonLightMaterialProperty extends BaseMaterialProperty {
|
|
24721
|
+
constructor(options?: {
|
|
24722
|
+
color?: string | Cesium.Color;
|
|
24723
|
+
speed?: number;
|
|
24724
|
+
});
|
|
24725
|
+
/**
|
|
24726
|
+
* 获取 材质名称
|
|
24727
|
+
* @param [time] - 检索值的时间。
|
|
24728
|
+
* @returns 材质名称
|
|
24729
|
+
*/
|
|
24730
|
+
getType(time?: Cesium.JulianDate): string;
|
|
24731
|
+
/**
|
|
24732
|
+
* 获取所提供时间的属性值。
|
|
24733
|
+
* @param [time] - 检索值的时间。
|
|
24734
|
+
* @param [result] - 用于存储值的对象,如果省略,则创建并返回一个新的实例。
|
|
24735
|
+
* @returns 修改的result参数或一个新的实例(如果没有提供result参数)。
|
|
24736
|
+
*/
|
|
24737
|
+
getValue(time?: Cesium.JulianDate, result?: any): any;
|
|
24738
|
+
/**
|
|
24739
|
+
* 将此属性与提供的属性进行比较并返回, 如果两者相等返回true,否则为false
|
|
24740
|
+
* @param [other] - 比较的对象
|
|
24741
|
+
* @returns 两者是同一个对象
|
|
24742
|
+
*/
|
|
24743
|
+
equals(other?: Cesium.Property): boolean;
|
|
24744
|
+
/**
|
|
24745
|
+
* 颜色
|
|
24746
|
+
*/
|
|
24747
|
+
color: Cesium.Color;
|
|
24748
|
+
}
|
|
24749
|
+
|
|
24203
24750
|
/**
|
|
24204
24751
|
* 线状 OD线效果 材质
|
|
24205
24752
|
* @param [options] - 参数对象,包括以下:
|
|
@@ -24769,6 +25316,31 @@ declare class EchartsLayer extends BaseLayer {
|
|
|
24769
25316
|
getRectangle(options?: {
|
|
24770
25317
|
isFormat?: boolean;
|
|
24771
25318
|
}): Cesium.Rectangle | any;
|
|
25319
|
+
/**
|
|
25320
|
+
* 绑定事件处理函数,
|
|
25321
|
+
* @param eventName - 事件名称,全小写,例如'click','mousemove', 'legendselected' ,可以参考[echarts官网说明]{@link https://echarts.apache.org/zh/api.html#echartsInstance.on}
|
|
25322
|
+
* @param callback - 绑定的监听器回调方法
|
|
25323
|
+
* @param [context] - 侦听器的上下文(this关键字将指向的对象)。
|
|
25324
|
+
* @returns 当前对象本身,可以链式调用
|
|
25325
|
+
*/
|
|
25326
|
+
on(eventName: string, callback: (...params: any[]) => any, context?: any): EchartsLayer;
|
|
25327
|
+
/**
|
|
25328
|
+
* 带条件的绑定事件处理函数
|
|
25329
|
+
* @param eventName - 事件名称,全小写,例如'click','mousemove', 'legendselected'
|
|
25330
|
+
* @param query - 可选的过滤条件,能够只在指定的组件或者元素上进行响应。可以参考[echarts官网说明]{@link https://echarts.apache.org/zh/api.html#echartsInstance.on}
|
|
25331
|
+
* @param callback - 绑定的监听器回调方法
|
|
25332
|
+
* @param [context] - 侦听器的上下文(this关键字将指向的对象)
|
|
25333
|
+
* @returns 当前对象本身,可以链式调用
|
|
25334
|
+
*/
|
|
25335
|
+
onByQuery(eventName: string, query: string | any, callback: (...params: any[]) => any, context?: any): EchartsLayer;
|
|
25336
|
+
/**
|
|
25337
|
+
* 解除绑定指定类型事件监听器
|
|
25338
|
+
* @param eventName - 事件名称,全小写,例如'click','mousemove', 'legendselected'
|
|
25339
|
+
* @param [callback] - 绑定的监听器回调方法,未传值时解绑所有指定类型对应事件
|
|
25340
|
+
* @param [context] - 侦听器的上下文(this关键字将指向的对象)。
|
|
25341
|
+
* @returns 当前对象本身,可以链式调用
|
|
25342
|
+
*/
|
|
25343
|
+
off(eventName: string, callback?: (...params: any[]) => any, context?: any): EchartsLayer;
|
|
24772
25344
|
}
|
|
24773
25345
|
|
|
24774
25346
|
/**
|
|
@@ -24898,7 +25470,6 @@ declare class HeatLayer extends BaseLayer {
|
|
|
24898
25470
|
* @param [options.depthTest = true] - 是否进行计算深度判断,在地球背面或被遮挡时不显示(大数据时,需要关闭)
|
|
24899
25471
|
* @param [options.fixedHeight = 0] - 点的固定的海拔高度
|
|
24900
25472
|
* @param [options.clampToGround = false] - 点是否贴地
|
|
24901
|
-
* @param [options.pointerEvents = false] - 图层是否可以进行鼠标交互,为false时可以穿透操作及缩放地图
|
|
24902
25473
|
* @param [options.多个参数] - 支持mapv本身所有drawOptions图层样式参数,具体查阅 [mapv库drawOptions文档]{@link https://github.com/huiyan-fe/mapv/wiki/%E7%B1%BB%E5%8F%82%E8%80%83} ,也可以 [在线编辑图层样式]{@link https://mapv.baidu.com/editor/}
|
|
24903
25474
|
* @param [options.id = uuid()] - 图层id标识
|
|
24904
25475
|
* @param [options.pid = -1] - 图层父级的id,一般图层管理中使用
|
|
@@ -24921,7 +25492,6 @@ declare class MapVLayer extends BaseLayer {
|
|
|
24921
25492
|
depthTest?: boolean;
|
|
24922
25493
|
fixedHeight?: number;
|
|
24923
25494
|
clampToGround?: boolean;
|
|
24924
|
-
pointerEvents?: boolean;
|
|
24925
25495
|
多个参数?: any;
|
|
24926
25496
|
id?: string | number;
|
|
24927
25497
|
pid?: string | number;
|
|
@@ -24942,10 +25512,6 @@ declare class MapVLayer extends BaseLayer {
|
|
|
24942
25512
|
* 图层对应的Canvas对象
|
|
24943
25513
|
*/
|
|
24944
25514
|
readonly canvas: HTMLCanvasElement;
|
|
24945
|
-
/**
|
|
24946
|
-
* 是否可以鼠标交互,为false时可以穿透操作及缩放地图,但无法进行鼠标交互及触发相关事件。true时无法缩放地球,但可以使用mapv相关的事件或toolitp等。
|
|
24947
|
-
*/
|
|
24948
|
-
pointerEvents: boolean;
|
|
24949
25515
|
/**
|
|
24950
25516
|
* 新增mapv数据
|
|
24951
25517
|
* @param dataSet - mapv.DataSet数据集,可以参考[ MapV数据集对象说明]{@link https://github.com/huiyan-fe/mapv/blob/master/src/data/DataSet.md}
|
|
@@ -24993,6 +25559,21 @@ declare class MapVLayer extends BaseLayer {
|
|
|
24993
25559
|
getRectangle(options?: {
|
|
24994
25560
|
isFormat?: boolean;
|
|
24995
25561
|
}): Cesium.Rectangle | any;
|
|
25562
|
+
/**
|
|
25563
|
+
* 绑定事件处理函数,
|
|
25564
|
+
* @param eventName - 事件名称,全小写,例如'click','mouseMove'
|
|
25565
|
+
* @param callback - 绑定的监听器回调方法
|
|
25566
|
+
* @param [context] - 侦听器的上下文(this关键字将指向的对象)。
|
|
25567
|
+
* @returns 当前对象本身,可以链式调用
|
|
25568
|
+
*/
|
|
25569
|
+
on(eventName: string, callback: (...params: any[]) => any, context?: any): EchartsLayer;
|
|
25570
|
+
/**
|
|
25571
|
+
* 解除绑定指定类型事件监听器
|
|
25572
|
+
* @param eventName - 事件名称,全小写,例如'click','mouseMove'
|
|
25573
|
+
* @param [callback] - 绑定的监听器回调方法,未传值时解绑所有指定类型对应事件
|
|
25574
|
+
* @returns 当前对象本身,可以链式调用
|
|
25575
|
+
*/
|
|
25576
|
+
off(eventName: string, callback?: (...params: any[]) => any): EchartsLayer;
|
|
24996
25577
|
/**
|
|
24997
25578
|
* 从地图上移除,同map.removeThing
|
|
24998
25579
|
* @param [destroy] - 是否调用destroy释放
|
|
@@ -26035,6 +26616,13 @@ declare class S3MLayer extends BaseLayer {
|
|
|
26035
26616
|
* 设置S3M图层本身支持的参数
|
|
26036
26617
|
*/
|
|
26037
26618
|
s3mOptions: any;
|
|
26619
|
+
/**
|
|
26620
|
+
* 遍历每一个子图层并将其作为参数传递给回调函数
|
|
26621
|
+
* @param method - 回调方法
|
|
26622
|
+
* @param context - 侦听器的上下文(this关键字将指向的对象)。
|
|
26623
|
+
* @returns 当前对象本身,可以链式调用
|
|
26624
|
+
*/
|
|
26625
|
+
eachLayer(method: (...params: any[]) => any, context: any): GroupLayer;
|
|
26038
26626
|
/**
|
|
26039
26627
|
* 设置透明度
|
|
26040
26628
|
* @param value - 透明度
|
|
@@ -27211,13 +27799,13 @@ declare class BaiduPOI {
|
|
|
27211
27799
|
* @param [queryOptions.location = null] - 经纬度坐标
|
|
27212
27800
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27213
27801
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27214
|
-
* @returns
|
|
27802
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27215
27803
|
*/
|
|
27216
27804
|
getAddress(queryOptions: {
|
|
27217
27805
|
location?: LngLatPoint | Cesium.Cartesian3 | string | any[] | any;
|
|
27218
27806
|
success?: (...params: any[]) => any;
|
|
27219
27807
|
error?: (...params: any[]) => any;
|
|
27220
|
-
}):
|
|
27808
|
+
}): Promise<any>;
|
|
27221
27809
|
/**
|
|
27222
27810
|
* 搜索提示查询
|
|
27223
27811
|
* @param queryOptions - 查询参数
|
|
@@ -27227,7 +27815,7 @@ declare class BaiduPOI {
|
|
|
27227
27815
|
* @param [queryOptions.citylimit = false] - 取值为"true",仅返回city中指定城市检索结果
|
|
27228
27816
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27229
27817
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27230
|
-
* @returns
|
|
27818
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27231
27819
|
*/
|
|
27232
27820
|
autoTip(queryOptions: {
|
|
27233
27821
|
text: string;
|
|
@@ -27236,7 +27824,7 @@ declare class BaiduPOI {
|
|
|
27236
27824
|
citylimit?: boolean;
|
|
27237
27825
|
success?: (...params: any[]) => any;
|
|
27238
27826
|
error?: (...params: any[]) => any;
|
|
27239
|
-
}):
|
|
27827
|
+
}): Promise<any>;
|
|
27240
27828
|
/**
|
|
27241
27829
|
* 关键字搜索
|
|
27242
27830
|
* @param queryOptions - 查询参数
|
|
@@ -27253,7 +27841,7 @@ declare class BaiduPOI {
|
|
|
27253
27841
|
* @param [queryOptions.count = 20] - 单次召回POI数量,最大返回20条。多关键字检索时,返回的记录数为关键字个数*count。多关键词检索时,单页返回总数=关键词数量*count
|
|
27254
27842
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27255
27843
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27256
|
-
* @returns
|
|
27844
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27257
27845
|
*/
|
|
27258
27846
|
queryText(queryOptions: {
|
|
27259
27847
|
text: string;
|
|
@@ -27270,7 +27858,7 @@ declare class BaiduPOI {
|
|
|
27270
27858
|
count?: number;
|
|
27271
27859
|
success?: (...params: any[]) => any;
|
|
27272
27860
|
error?: (...params: any[]) => any;
|
|
27273
|
-
}):
|
|
27861
|
+
}): Promise<any>;
|
|
27274
27862
|
/**
|
|
27275
27863
|
* 周边搜索(圆形搜索)
|
|
27276
27864
|
* @param queryOptions - 查询参数
|
|
@@ -27283,7 +27871,7 @@ declare class BaiduPOI {
|
|
|
27283
27871
|
* @param [queryOptions.page = 0] - 分页页码,默认为0, 0代表第一页,1代表第二页,以此类推。常与 count 搭配使用,仅当返回结果为poi时可以翻页。
|
|
27284
27872
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27285
27873
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27286
|
-
* @returns
|
|
27874
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27287
27875
|
*/
|
|
27288
27876
|
queryCircle(queryOptions: {
|
|
27289
27877
|
text: string;
|
|
@@ -27295,7 +27883,7 @@ declare class BaiduPOI {
|
|
|
27295
27883
|
page?: number;
|
|
27296
27884
|
success?: (...params: any[]) => any;
|
|
27297
27885
|
error?: (...params: any[]) => any;
|
|
27298
|
-
}):
|
|
27886
|
+
}): Promise<any>;
|
|
27299
27887
|
}
|
|
27300
27888
|
|
|
27301
27889
|
/**
|
|
@@ -27326,13 +27914,13 @@ declare class GaodePOI {
|
|
|
27326
27914
|
* @param [queryOptions.location] - 经纬度坐标
|
|
27327
27915
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27328
27916
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27329
|
-
* @returns
|
|
27917
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27330
27918
|
*/
|
|
27331
27919
|
getAddress(queryOptions: {
|
|
27332
27920
|
location?: LngLatPoint | Cesium.Cartesian3 | string | any[] | any;
|
|
27333
27921
|
success?: (...params: any[]) => any;
|
|
27334
27922
|
error?: (...params: any[]) => any;
|
|
27335
|
-
}):
|
|
27923
|
+
}): Promise<any>;
|
|
27336
27924
|
/**
|
|
27337
27925
|
* 高德搜索提示
|
|
27338
27926
|
* @param queryOptions - 查询参数
|
|
@@ -27342,7 +27930,7 @@ declare class GaodePOI {
|
|
|
27342
27930
|
* @param [queryOptions.citylimit = false] - 取值为"true",仅返回city中指定城市检索结果
|
|
27343
27931
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27344
27932
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27345
|
-
* @returns
|
|
27933
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27346
27934
|
*/
|
|
27347
27935
|
autoTip(queryOptions: {
|
|
27348
27936
|
text: string;
|
|
@@ -27351,7 +27939,7 @@ declare class GaodePOI {
|
|
|
27351
27939
|
citylimit?: boolean;
|
|
27352
27940
|
success?: (...params: any[]) => any;
|
|
27353
27941
|
error?: (...params: any[]) => any;
|
|
27354
|
-
}):
|
|
27942
|
+
}): Promise<any>;
|
|
27355
27943
|
/**
|
|
27356
27944
|
* 按限定区域搜索
|
|
27357
27945
|
* @param queryOptions - 查询参数
|
|
@@ -27363,7 +27951,7 @@ declare class GaodePOI {
|
|
|
27363
27951
|
* @param [queryOptions.count = 20] - 单次召回POI数量,默认为10条记录,最大返回20条。多关键字检索时,返回的记录数为关键字个数*count。多关键词检索时,单页返回总数=关键词数量*count
|
|
27364
27952
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27365
27953
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27366
|
-
* @returns
|
|
27954
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27367
27955
|
*/
|
|
27368
27956
|
query(queryOptions: {
|
|
27369
27957
|
text: string;
|
|
@@ -27374,7 +27962,20 @@ declare class GaodePOI {
|
|
|
27374
27962
|
count?: number;
|
|
27375
27963
|
error?: (...params: any[]) => any;
|
|
27376
27964
|
success?: (...params: any[]) => any;
|
|
27377
|
-
}):
|
|
27965
|
+
}): Promise<any>;
|
|
27966
|
+
/**
|
|
27967
|
+
* 根据ID获取POI点详情
|
|
27968
|
+
* @param queryOptions - 查询参数
|
|
27969
|
+
* @param queryOptions.id - AOI唯一标识, 最多可以传入1个id,传入目标区域的poiid即可
|
|
27970
|
+
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27971
|
+
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27972
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27973
|
+
*/
|
|
27974
|
+
detail(queryOptions: {
|
|
27975
|
+
id: string;
|
|
27976
|
+
success?: (...params: any[]) => any;
|
|
27977
|
+
error?: (...params: any[]) => any;
|
|
27978
|
+
}): Promise<any>;
|
|
27378
27979
|
/**
|
|
27379
27980
|
* 关键字搜索
|
|
27380
27981
|
* @param queryOptions - 查询参数
|
|
@@ -27386,7 +27987,7 @@ declare class GaodePOI {
|
|
|
27386
27987
|
* @param [queryOptions.page = 0] - 分页页码,默认为0, 0代表第一页,1代表第二页,以此类推。常与 count 搭配使用,仅当返回结果为poi时可以翻页。
|
|
27387
27988
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27388
27989
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27389
|
-
* @returns
|
|
27990
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27390
27991
|
*/
|
|
27391
27992
|
queryText(queryOptions: {
|
|
27392
27993
|
text: string;
|
|
@@ -27397,7 +27998,7 @@ declare class GaodePOI {
|
|
|
27397
27998
|
page?: number;
|
|
27398
27999
|
success?: (...params: any[]) => any;
|
|
27399
28000
|
error?: (...params: any[]) => any;
|
|
27400
|
-
}):
|
|
28001
|
+
}): Promise<any>;
|
|
27401
28002
|
/**
|
|
27402
28003
|
* 周边搜索(圆形搜索)
|
|
27403
28004
|
* @param queryOptions - 查询参数
|
|
@@ -27410,7 +28011,7 @@ declare class GaodePOI {
|
|
|
27410
28011
|
* @param [queryOptions.page = 0] - 分页页码,默认为0, 0代表第一页,1代表第二页,以此类推。常与 count 搭配使用,仅当返回结果为poi时可以翻页。
|
|
27411
28012
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27412
28013
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27413
|
-
* @returns
|
|
28014
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27414
28015
|
*/
|
|
27415
28016
|
queryCircle(queryOptions: {
|
|
27416
28017
|
text: string;
|
|
@@ -27422,7 +28023,7 @@ declare class GaodePOI {
|
|
|
27422
28023
|
page?: number;
|
|
27423
28024
|
success?: (...params: any[]) => any;
|
|
27424
28025
|
error?: (...params: any[]) => any;
|
|
27425
|
-
}):
|
|
28026
|
+
}): Promise<any>;
|
|
27426
28027
|
/**
|
|
27427
28028
|
* 多边形搜索
|
|
27428
28029
|
* @param queryOptions - 查询参数
|
|
@@ -27434,7 +28035,7 @@ declare class GaodePOI {
|
|
|
27434
28035
|
* @param [queryOptions.page = 0] - 分页页码,默认为0, 0代表第一页,1代表第二页,以此类推。常与 count 搭配使用,仅当返回结果为poi时可以翻页。
|
|
27435
28036
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27436
28037
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27437
|
-
* @returns
|
|
28038
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27438
28039
|
*/
|
|
27439
28040
|
queryPolygon(queryOptions: {
|
|
27440
28041
|
text: string;
|
|
@@ -27445,7 +28046,7 @@ declare class GaodePOI {
|
|
|
27445
28046
|
page?: number;
|
|
27446
28047
|
success?: (...params: any[]) => any;
|
|
27447
28048
|
error?: (...params: any[]) => any;
|
|
27448
|
-
}):
|
|
28049
|
+
}): Promise<any>;
|
|
27449
28050
|
}
|
|
27450
28051
|
|
|
27451
28052
|
/**
|
|
@@ -27477,14 +28078,14 @@ declare class GaodeRoute {
|
|
|
27477
28078
|
* @param queryOptions.points - 按起点、终点 顺序的坐标数组,如[[117.500244, 40.417801],[117.500244, 40.417801]]
|
|
27478
28079
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27479
28080
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27480
|
-
* @returns
|
|
28081
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27481
28082
|
*/
|
|
27482
28083
|
query(queryOptions: {
|
|
27483
28084
|
type: GaodeRoute.RouteType | number;
|
|
27484
28085
|
points: any[][];
|
|
27485
28086
|
success?: (...params: any[]) => any;
|
|
27486
28087
|
error?: (...params: any[]) => any;
|
|
27487
|
-
}):
|
|
28088
|
+
}): Promise<any>;
|
|
27488
28089
|
/**
|
|
27489
28090
|
* 按指定类别自动查询(多个路线数组,递归处理)
|
|
27490
28091
|
* @param queryOptions - 查询参数
|
|
@@ -27495,14 +28096,14 @@ declare class GaodeRoute {
|
|
|
27495
28096
|
* ]
|
|
27496
28097
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27497
28098
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27498
|
-
* @returns
|
|
28099
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27499
28100
|
*/
|
|
27500
28101
|
queryArr(queryOptions: {
|
|
27501
28102
|
type: GaodeRoute.RouteType;
|
|
27502
28103
|
points: any[][];
|
|
27503
28104
|
success?: (...params: any[]) => any;
|
|
27504
28105
|
error?: (...params: any[]) => any;
|
|
27505
|
-
}):
|
|
28106
|
+
}): Promise<any>;
|
|
27506
28107
|
/**
|
|
27507
28108
|
* 计算结果中的最短距离的导航路径
|
|
27508
28109
|
* @param data - queryArr返回的结果数组
|
|
@@ -27515,26 +28116,26 @@ declare class GaodeRoute {
|
|
|
27515
28116
|
* @param queryOptions.points - 按起点、终点 顺序的坐标数组,如[[117.500244, 40.417801],[117.500244, 40.417801]]
|
|
27516
28117
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27517
28118
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27518
|
-
* @returns
|
|
28119
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27519
28120
|
*/
|
|
27520
28121
|
queryWalking(queryOptions: {
|
|
27521
28122
|
points: any[][];
|
|
27522
28123
|
success?: (...params: any[]) => any;
|
|
27523
28124
|
error?: (...params: any[]) => any;
|
|
27524
|
-
}):
|
|
28125
|
+
}): Promise<any>;
|
|
27525
28126
|
/**
|
|
27526
28127
|
* 骑行路径查询 (单个查询)
|
|
27527
28128
|
* @param queryOptions - 查询参数
|
|
27528
28129
|
* @param queryOptions.points - 按起点、终点 顺序的坐标数组,如[[117.500244, 40.417801],[117.500244, 40.417801]]
|
|
27529
28130
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27530
28131
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27531
|
-
* @returns
|
|
28132
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27532
28133
|
*/
|
|
27533
28134
|
queryBicycling(queryOptions: {
|
|
27534
28135
|
points: any[][];
|
|
27535
28136
|
success?: (...params: any[]) => any;
|
|
27536
28137
|
error?: (...params: any[]) => any;
|
|
27537
|
-
}):
|
|
28138
|
+
}): Promise<any>;
|
|
27538
28139
|
/**
|
|
27539
28140
|
* 驾车路径规划查询
|
|
27540
28141
|
* @param queryOptions - 查询参数
|
|
@@ -27544,7 +28145,7 @@ declare class GaodeRoute {
|
|
|
27544
28145
|
* @param [queryOptions.strategy = 0] - 驾车选择策略,参考高德官网说明,默认为0:速度优先,不考虑当时路况,此路线不一定距离最短
|
|
27545
28146
|
* @param [queryOptions.success] - 查询完成的回调方法
|
|
27546
28147
|
* @param [queryOptions.error] - 查询失败的回调方法
|
|
27547
|
-
* @returns
|
|
28148
|
+
* @returns 查询完成的Promise,等价于success参数
|
|
27548
28149
|
*/
|
|
27549
28150
|
queryDriving(queryOptions: {
|
|
27550
28151
|
points: any[][];
|
|
@@ -27553,7 +28154,7 @@ declare class GaodeRoute {
|
|
|
27553
28154
|
strategy?: string;
|
|
27554
28155
|
success?: (...params: any[]) => any;
|
|
27555
28156
|
error?: (...params: any[]) => any;
|
|
27556
|
-
}):
|
|
28157
|
+
}): Promise<any>;
|
|
27557
28158
|
}
|
|
27558
28159
|
|
|
27559
28160
|
declare namespace GaodeRoute {
|
|
@@ -27699,6 +28300,7 @@ declare class QueryArcServer extends BaseClass {
|
|
|
27699
28300
|
* @param options - 参数对象,包括以下:
|
|
27700
28301
|
* @param options.url - GeoServer服务地址, 示例:'http://server.mars3d.cn/geoserver/mars/wfs'
|
|
27701
28302
|
* @param options.layer - 图层名称(命名空间:图层名称),多个图层名称用逗号隔开
|
|
28303
|
+
* @param [options.crs = "EPSG:4326"] - 服务数据的坐标系,如'EPSG:4326' (可以从 {@link http://epsg.io }查询)
|
|
27702
28304
|
* @param [options.headers = {}] - 将被添加到HTTP请求头。
|
|
27703
28305
|
* @param [options.proxy] - 加载资源时使用的代理。
|
|
27704
28306
|
*
|
|
@@ -27715,6 +28317,7 @@ declare class QueryGeoServer extends BaseClass {
|
|
|
27715
28317
|
constructor(options: {
|
|
27716
28318
|
url: string;
|
|
27717
28319
|
layer: string;
|
|
28320
|
+
crs?: string;
|
|
27718
28321
|
headers?: any;
|
|
27719
28322
|
proxy?: Cesium.Proxy;
|
|
27720
28323
|
id?: string | number;
|
|
@@ -27759,7 +28362,7 @@ declare class QueryGeoServer extends BaseClass {
|
|
|
27759
28362
|
/**
|
|
27760
28363
|
* 查询服务,基于cql_filter条件
|
|
27761
28364
|
* @param queryOptions - 查询参数
|
|
27762
|
-
* @param queryOptions.
|
|
28365
|
+
* @param queryOptions.cql_filter - 筛选服务数据的[SQL语句]{@link https://docs.geoserver.org/2.12.2/user/services/wfs/vendor.html#wfs-vendor-parameters}
|
|
27763
28366
|
* @param [queryOptions.graphic] - 限定的搜索区域,自动转换后加入到cql_filter中,也可以外部自行处理
|
|
27764
28367
|
* @param [queryOptions.geometryName = 'the_geom'] - 限定的搜索区域时,对应的geometry字段名称
|
|
27765
28368
|
* @param [queryOptions.maxFeatures = 1000] - 返回结果最大数量
|
|
@@ -27770,6 +28373,7 @@ declare class QueryGeoServer extends BaseClass {
|
|
|
27770
28373
|
* @returns 当前对象本身,可以链式调用
|
|
27771
28374
|
*/
|
|
27772
28375
|
queryBySql(queryOptions: {
|
|
28376
|
+
cql_filter: string;
|
|
27773
28377
|
graphic?: BaseGraphic | any;
|
|
27774
28378
|
geometryName?: string;
|
|
27775
28379
|
maxFeatures?: number;
|
|
@@ -27906,6 +28510,7 @@ declare class Measure extends BaseThing {
|
|
|
27906
28510
|
* @param [options.maxPointNum = 9999] - 绘制时,最多允许点的个数
|
|
27907
28511
|
* @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值
|
|
27908
28512
|
* @param [options.showAddText = true] - 是否显示每一段的增加部分距离,如(+10.1km)
|
|
28513
|
+
* @param [options.decimal = 2] - 显示的文本中保留的小数位
|
|
27909
28514
|
* @returns 绘制创建完成的Promise,返回 长度测量控制类 对象
|
|
27910
28515
|
*/
|
|
27911
28516
|
distance(options?: {
|
|
@@ -27914,6 +28519,7 @@ declare class Measure extends BaseThing {
|
|
|
27914
28519
|
maxPointNum?: number;
|
|
27915
28520
|
addHeight?: number;
|
|
27916
28521
|
showAddText?: boolean;
|
|
28522
|
+
decimal?: number;
|
|
27917
28523
|
}): Promise<DistanceMeasure | any>;
|
|
27918
28524
|
/**
|
|
27919
28525
|
* 测量 贴地长度
|
|
@@ -27925,6 +28531,7 @@ declare class Measure extends BaseThing {
|
|
|
27925
28531
|
* @param [options.showAddText = true] - 是否显示每一段的增加部分距离,如(+10.1km)
|
|
27926
28532
|
* @param [options.splitNum = 100] - 插值数,将线段分割的个数
|
|
27927
28533
|
* @param [options.has3dtiles = auto] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
28534
|
+
* @param [options.decimal = 2] - 显示的文本中保留的小数位
|
|
27928
28535
|
* @returns 绘制创建完成的Promise,返回 贴地长度测量控制类 对象
|
|
27929
28536
|
*/
|
|
27930
28537
|
distanceSurface(options?: {
|
|
@@ -27935,6 +28542,7 @@ declare class Measure extends BaseThing {
|
|
|
27935
28542
|
showAddText?: boolean;
|
|
27936
28543
|
splitNum?: number;
|
|
27937
28544
|
has3dtiles?: boolean;
|
|
28545
|
+
decimal?: number;
|
|
27938
28546
|
}): Promise<DistanceSurfaceMeasure | any>;
|
|
27939
28547
|
/**
|
|
27940
28548
|
* 剖面分析,测量线插值点的高程数据
|
|
@@ -27945,6 +28553,7 @@ declare class Measure extends BaseThing {
|
|
|
27945
28553
|
* @param [options.addHeight] - 在绘制时,在绘制点的基础上增加的高度值
|
|
27946
28554
|
* @param [options.splitNum = 200] - 插值数,将线段分割的个数
|
|
27947
28555
|
* @param [options.has3dtiles = auto] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
28556
|
+
* @param [options.decimal = 2] - 显示的文本中保留的小数位
|
|
27948
28557
|
* @returns 绘制创建完成的Promise,返回 剖面分析控制类矢量对象
|
|
27949
28558
|
*/
|
|
27950
28559
|
section(options?: {
|
|
@@ -27954,17 +28563,20 @@ declare class Measure extends BaseThing {
|
|
|
27954
28563
|
addHeight?: number;
|
|
27955
28564
|
splitNum?: number;
|
|
27956
28565
|
has3dtiles?: boolean;
|
|
28566
|
+
decimal?: number;
|
|
27957
28567
|
}): Promise<SectionMeasure | any>;
|
|
27958
28568
|
/**
|
|
27959
28569
|
* 面积测量(水平面)
|
|
27960
28570
|
* @param [options] - 控制参数
|
|
27961
28571
|
* @param [options.style] - 面的样式
|
|
27962
28572
|
* @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatArea}可选值:auto、m、km、mu、ha 。auto时根据面积值自动选用k或km
|
|
28573
|
+
* @param [options.decimal = 2] - 显示的文本中保留的小数位
|
|
27963
28574
|
* @returns 绘制创建完成的Promise,返回 面积测量控制类 对象
|
|
27964
28575
|
*/
|
|
27965
28576
|
area(options?: {
|
|
27966
28577
|
style?: PolygonEntity.StyleOptions;
|
|
27967
28578
|
unit?: string;
|
|
28579
|
+
decimal?: number;
|
|
27968
28580
|
}): Promise<AreaMeasure | any>;
|
|
27969
28581
|
/**
|
|
27970
28582
|
* 贴地面积测量
|
|
@@ -27973,6 +28585,7 @@ declare class Measure extends BaseThing {
|
|
|
27973
28585
|
* @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatArea}可选值:auto、m、km、mu、ha 。auto时根据面积值自动选用k或km
|
|
27974
28586
|
* @param [options.splitNum = 10] - 插值数,将面分割的网格数
|
|
27975
28587
|
* @param [options.has3dtiles = auto] - 是否在3dtiles模型上分析(模型分析较慢,按需开启),默认内部根据点的位置自动判断(但可能不准)
|
|
28588
|
+
* @param [options.decimal = 2] - 显示的文本中保留的小数位
|
|
27976
28589
|
* @returns 绘制创建完成的Promise,返回 面积测量控制类 对象
|
|
27977
28590
|
*/
|
|
27978
28591
|
areaSurface(options?: {
|
|
@@ -27980,6 +28593,7 @@ declare class Measure extends BaseThing {
|
|
|
27980
28593
|
unit?: string;
|
|
27981
28594
|
splitNum?: number;
|
|
27982
28595
|
has3dtiles?: boolean;
|
|
28596
|
+
decimal?: number;
|
|
27983
28597
|
}): Promise<AreaSurfaceMeasure | any>;
|
|
27984
28598
|
/**
|
|
27985
28599
|
* 体积测量(方量分析)
|
|
@@ -27996,6 +28610,7 @@ declare class Measure extends BaseThing {
|
|
|
27996
28610
|
* @param [options.showArea = true] - 是否显示横切面积
|
|
27997
28611
|
* @param [options.polygonWall] - 围合的墙样式
|
|
27998
28612
|
* @param [options.labelHeight] - 各边界点高度结果文本的样式
|
|
28613
|
+
* @param [options.decimal = 2] - 显示的文本中保留的小数位
|
|
27999
28614
|
* @returns 绘制创建完成的Promise,返回 体积测量控制类 对象
|
|
28000
28615
|
*/
|
|
28001
28616
|
volume(options?: {
|
|
@@ -28011,17 +28626,20 @@ declare class Measure extends BaseThing {
|
|
|
28011
28626
|
showArea?: boolean;
|
|
28012
28627
|
polygonWall?: PolygonEntity.StyleOptions;
|
|
28013
28628
|
labelHeight?: LabelEntity.StyleOptions;
|
|
28629
|
+
decimal?: number;
|
|
28014
28630
|
}): Promise<VolumeMeasure | any>;
|
|
28015
28631
|
/**
|
|
28016
28632
|
* 高度测量
|
|
28017
28633
|
* @param [options] - 控制参数
|
|
28018
28634
|
* @param [options.style] - 路线的样式
|
|
28019
28635
|
* @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatDistance}可选值:auto、m、km、mile、zhang 。auto时根据距离值自动选用k或km
|
|
28636
|
+
* @param [options.decimal = 2] - 显示的文本中保留的小数位
|
|
28020
28637
|
* @returns 绘制创建完成的Promise,返回 高度测量 对象
|
|
28021
28638
|
*/
|
|
28022
28639
|
height(options?: {
|
|
28023
28640
|
style?: PolylineEntity.StyleOptions;
|
|
28024
28641
|
unit?: string;
|
|
28642
|
+
decimal?: number;
|
|
28025
28643
|
}): Promise<HeightMeasure | any>;
|
|
28026
28644
|
/**
|
|
28027
28645
|
* 三角高度测量,
|
|
@@ -28029,20 +28647,26 @@ declare class Measure extends BaseThing {
|
|
|
28029
28647
|
* @param [options] - 控制参数
|
|
28030
28648
|
* @param [options.style] - 路线的样式
|
|
28031
28649
|
* @param [options.unit = 'auto'] - 计量单位,{@link MeasureUtil#formatDistance}可选值:auto、m、km、mile、zhang 。auto时根据距离值自动选用k或km
|
|
28650
|
+
* @param [options.decimal = 2] - 显示的文本中保留的小数位
|
|
28032
28651
|
* @returns 绘制创建完成的Promise,返回 三角高度测量控制类 对象
|
|
28033
28652
|
*/
|
|
28034
28653
|
heightTriangle(options?: {
|
|
28035
28654
|
style?: PolylineEntity.StyleOptions;
|
|
28036
28655
|
unit?: string;
|
|
28656
|
+
decimal?: number;
|
|
28037
28657
|
}): Promise<HeightTriangleMeasure | any>;
|
|
28038
28658
|
/**
|
|
28039
28659
|
* 角度测量
|
|
28040
28660
|
* @param [options] - 控制参数
|
|
28041
28661
|
* @param [options.style] - 路线的样式,默认为箭头线
|
|
28662
|
+
* @param [options.angleDecimal = 1] - 显示的 角度值 文本中保留的小数位
|
|
28663
|
+
* @param [options.decimal = 2] - 显示的 距离值 文本中保留的小数位
|
|
28042
28664
|
* @returns 绘制创建完成的Promise,返回 角度测量控制类 对象
|
|
28043
28665
|
*/
|
|
28044
28666
|
angle(options?: {
|
|
28045
28667
|
style?: PolylineEntity.StyleOptions;
|
|
28668
|
+
angleDecimal?: number;
|
|
28669
|
+
decimal?: number;
|
|
28046
28670
|
}): Promise<AngleMeasure | any>;
|
|
28047
28671
|
/**
|
|
28048
28672
|
* 坐标测量
|
|
@@ -29362,16 +29986,11 @@ declare class TilesetEditBase extends BaseThing {
|
|
|
29362
29986
|
/**
|
|
29363
29987
|
* 需要分析的模型 对应的 Cesium3DTileset 对象
|
|
29364
29988
|
*/
|
|
29365
|
-
tileset: Cesium.Cesium3DTileset;
|
|
29989
|
+
readonly tileset: Cesium.Cesium3DTileset;
|
|
29366
29990
|
/**
|
|
29367
29991
|
* 压平高度 (单位:米),基于压平区域最低点高度的偏移量
|
|
29368
29992
|
*/
|
|
29369
29993
|
readonly layerHeight: number;
|
|
29370
|
-
/**
|
|
29371
|
-
* 获取当前转换计算模型逆矩阵,
|
|
29372
|
-
* 用于 局部坐标系 与 世界坐标系 的转换。
|
|
29373
|
-
*/
|
|
29374
|
-
readonly inverseMatrix: Cesium.Matrix4;
|
|
29375
29994
|
/**
|
|
29376
29995
|
* 坐标位置数组,只显示单个区域【单个区域场景时使用】
|
|
29377
29996
|
*/
|
|
@@ -29436,10 +30055,73 @@ declare class TilesetFlat extends TilesetEditBase {
|
|
|
29436
30055
|
enabled?: boolean;
|
|
29437
30056
|
eventParent?: BaseClass | boolean;
|
|
29438
30057
|
});
|
|
30058
|
+
/**
|
|
30059
|
+
* 区域 列表
|
|
30060
|
+
*/
|
|
30061
|
+
readonly list: any;
|
|
30062
|
+
/**
|
|
30063
|
+
* 需要分析的模型(3dtiles图层)
|
|
30064
|
+
*/
|
|
30065
|
+
layer: TilesetLayer;
|
|
30066
|
+
/**
|
|
30067
|
+
* 需要分析的模型 对应的 Cesium3DTileset 对象
|
|
30068
|
+
*/
|
|
30069
|
+
readonly tileset: Cesium.Cesium3DTileset;
|
|
30070
|
+
/**
|
|
30071
|
+
* 压平高度 (单位:米),基于压平区域最低点高度的偏移量
|
|
30072
|
+
*/
|
|
30073
|
+
readonly layerHeight: number;
|
|
30074
|
+
/**
|
|
30075
|
+
* 坐标位置数组,只显示单个区域【单个区域场景时使用】
|
|
30076
|
+
*/
|
|
30077
|
+
positions: any[][] | string[] | LngLatPoint[] | Cesium.Cartesian3[];
|
|
30078
|
+
/**
|
|
30079
|
+
* 已添加的区域个数
|
|
30080
|
+
*/
|
|
30081
|
+
readonly length: number;
|
|
30082
|
+
/**
|
|
30083
|
+
* 添加单个区域
|
|
30084
|
+
* @param positions - 坐标位置数组
|
|
30085
|
+
* @param [options = {}] - 控制的参数
|
|
30086
|
+
* @param [options.height] - 开挖深度(地形开挖时,可以控制单个区域的开挖深度)
|
|
30087
|
+
* @returns 添加区域的记录对象
|
|
30088
|
+
*/
|
|
30089
|
+
addArea(positions: string[] | any[][] | LngLatPoint[] | Cesium.Cartesian3[], options?: {
|
|
30090
|
+
height?: any;
|
|
30091
|
+
}): Promise<any>;
|
|
30092
|
+
/**
|
|
30093
|
+
* 根据id获取区域对象
|
|
30094
|
+
* @param id - id值
|
|
30095
|
+
* @returns 区域对象
|
|
30096
|
+
*/
|
|
30097
|
+
getAreaById(id: number): any;
|
|
30098
|
+
/**
|
|
30099
|
+
* 隐藏单个区域
|
|
30100
|
+
* @param id - 区域id值
|
|
30101
|
+
* @returns 无
|
|
30102
|
+
*/
|
|
30103
|
+
hideArea(id: number): void;
|
|
30104
|
+
/**
|
|
30105
|
+
* 显示单个区域
|
|
30106
|
+
* @param id - 区域id值
|
|
30107
|
+
* @returns 无
|
|
30108
|
+
*/
|
|
30109
|
+
showArea(id: number): void;
|
|
30110
|
+
/**
|
|
30111
|
+
* 移除单个区域
|
|
30112
|
+
* @param item - 区域的id,或 addArea返回的区域对象
|
|
30113
|
+
* @returns 无
|
|
30114
|
+
*/
|
|
30115
|
+
removeArea(item: number | any): void;
|
|
29439
30116
|
/**
|
|
29440
30117
|
* 压平高度 (单位:米),基于压平区域最低点高度的偏移量
|
|
29441
30118
|
*/
|
|
29442
30119
|
height: number;
|
|
30120
|
+
/**
|
|
30121
|
+
* 清除分析
|
|
30122
|
+
* @returns 无
|
|
30123
|
+
*/
|
|
30124
|
+
clear(): void;
|
|
29443
30125
|
}
|
|
29444
30126
|
|
|
29445
30127
|
declare namespace TilesetFlood {
|
|
@@ -30649,27 +31331,45 @@ declare namespace MeasureUtil {
|
|
|
30649
31331
|
/**
|
|
30650
31332
|
* 格式化显示距离值, 可指定单位
|
|
30651
31333
|
* @param val - 距离值,米
|
|
30652
|
-
* @param [
|
|
30653
|
-
* @param [
|
|
31334
|
+
* @param [options] - 参数:
|
|
31335
|
+
* @param [options.unit = 'auto'] - 计量单位, 可选值:auto、m、km、mile、zhang 。auto时根据距离值自动选用k或km
|
|
31336
|
+
* @param [options.lang = 0] - 使用的语言
|
|
31337
|
+
* @param [options.decimal = 2] - 保留的小数位
|
|
30654
31338
|
* @returns 带单位的格式化距离值字符串,如:20.17 米
|
|
30655
31339
|
*/
|
|
30656
|
-
function formatDistance(val: number,
|
|
31340
|
+
function formatDistance(val: number, options?: {
|
|
31341
|
+
unit?: string;
|
|
31342
|
+
lang?: LangType;
|
|
31343
|
+
decimal?: number;
|
|
31344
|
+
}): string;
|
|
30657
31345
|
/**
|
|
30658
31346
|
* 格式化显示面积值, 可指定单位
|
|
30659
31347
|
* @param val - 面积值,平方米
|
|
30660
|
-
* @param [
|
|
30661
|
-
* @param [
|
|
31348
|
+
* @param [options] - 参数:
|
|
31349
|
+
* @param [options.unit = 'auto'] - 计量单位,可选值:auto、m、km、mu、ha 。auto时根据面积值自动选用m或km
|
|
31350
|
+
* @param [options.lang = 0] - 使用的语言
|
|
31351
|
+
* @param [options.decimal = 2] - 保留的小数位
|
|
30662
31352
|
* @returns 带单位的格式化面积值字符串,如:20.21 平方公里
|
|
30663
31353
|
*/
|
|
30664
|
-
function formatArea(val: number,
|
|
31354
|
+
function formatArea(val: number, options?: {
|
|
31355
|
+
unit?: string;
|
|
31356
|
+
lang?: LangType;
|
|
31357
|
+
decimal?: number;
|
|
31358
|
+
}): string;
|
|
30665
31359
|
/**
|
|
30666
31360
|
* 格式化显示体积值, 可指定单位
|
|
30667
31361
|
* @param val - 体积值,立方米
|
|
30668
|
-
* @param [
|
|
30669
|
-
* @param [
|
|
31362
|
+
* @param [options] - 参数:
|
|
31363
|
+
* @param [options.unit = 'auto'] - 计量单位,当前无用,备用参数
|
|
31364
|
+
* @param [options.lang = 0] - 使用的语言
|
|
31365
|
+
* @param [options.decimal = 2] - 保留的小数位
|
|
30670
31366
|
* @returns 带单位的格式化体积值字符串,如:20.21 方
|
|
30671
31367
|
*/
|
|
30672
|
-
function formatVolume(val: number,
|
|
31368
|
+
function formatVolume(val: number, options?: {
|
|
31369
|
+
unit?: string;
|
|
31370
|
+
lang?: LangType;
|
|
31371
|
+
decimal?: number;
|
|
31372
|
+
}): string;
|
|
30673
31373
|
}
|
|
30674
31374
|
|
|
30675
31375
|
/**
|
|
@@ -31924,14 +32624,14 @@ declare namespace Util {
|
|
|
31924
32624
|
*/
|
|
31925
32625
|
function isPCBroswer(): boolean;
|
|
31926
32626
|
/**
|
|
31927
|
-
* 执行alert
|
|
32627
|
+
* 执行alert弹窗(手动单击确定关闭窗口)
|
|
31928
32628
|
* @param msg - 弹窗内的内容
|
|
31929
32629
|
* @param title - 弹窗的标题
|
|
31930
32630
|
* @returns 无
|
|
31931
32631
|
*/
|
|
31932
32632
|
function alert(msg: string, title: string): void;
|
|
31933
32633
|
/**
|
|
31934
|
-
* 执行msg
|
|
32634
|
+
* 执行msg提示窗(自动消失)
|
|
31935
32635
|
* @param msg - 弹窗内的内容
|
|
31936
32636
|
* @returns 无
|
|
31937
32637
|
*/
|
|
@@ -31970,6 +32670,23 @@ declare namespace Util {
|
|
|
31970
32670
|
templateValues?: any;
|
|
31971
32671
|
headers?: any;
|
|
31972
32672
|
}): Promise<any>;
|
|
32673
|
+
/**
|
|
32674
|
+
* 请求服务返回结果,方法是基于axios库精简的
|
|
32675
|
+
* @param options - 请求参数
|
|
32676
|
+
* @param options.url - 服务URL地址
|
|
32677
|
+
* @param [options.queryParameters] - 与请求一起发送的 URL 参数,例如 {id: 1987 }
|
|
32678
|
+
* @param [options.method = "get"] - 请求类型
|
|
32679
|
+
* @param [options.timeout = 0] - 是否超时
|
|
32680
|
+
* @param [options.headers] - 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' }
|
|
32681
|
+
* @returns 返回Promise异步处理结果,对象为response对象
|
|
32682
|
+
*/
|
|
32683
|
+
function sendAjax(options: {
|
|
32684
|
+
url: string;
|
|
32685
|
+
queryParameters?: any;
|
|
32686
|
+
method?: string;
|
|
32687
|
+
timeout?: number;
|
|
32688
|
+
headers?: any;
|
|
32689
|
+
}): Promise<any>;
|
|
31973
32690
|
/**
|
|
31974
32691
|
* 根据设置的lang参数,获取当前key对应语言的文本内容。
|
|
31975
32692
|
* @param key - 文本key
|