吉奥点扩散特效图层类
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
参数选项:
|
Example:
var effectLayer = new Cesium.GeoDiffusionEffectLayer({
effectTypeMapField: "effectType",
radius: 1600.0,
lineWidth: 10.0,
color: Cesium.Color.GHOSTWHITE.withAlpha(0.35),
speed: 24.0,
repeat: true,
});
//添加到地图/地球上
viewer.effectLayers.add(effectLayer);
effectLayer.setData([{
"type": "Feature",
"properties": {
"effectType": "ScanCircle",
"name": "scanCircle1",
"scanRingRadius": 2000.0
},
"geometry": {
"type": "Point",
"coordinates": [121.508604, 31.250103, 0]
}
}]);
Demo:
Extends
Methods
检查指定的几何类型是否为图层对象所支持
Name | Type | Description |
---|---|---|
geometryType |
String | Array.<String> | 被检查的几何类型 |
supportGeometryType |
Array.<String> | 支持的几何类型列表,如果为空则为本图层的supportGeometryType属性值 |
绑定到三维地图
Name | Type | Description |
---|---|---|
map |
viewer |
- Inherited From:
销毁图层对象
- Inherited From:
获取图层数据
- Inherited From:
获取数据源
- Inherited From:
隐藏图层
拾取图层中的要素
Name | Type | Description |
---|---|---|
pickedFeatures |
Array | 场景中被拾取的对象集合,需要在图层自己内部判断识别出属于自己的,并挂接上图层的属性信息 |
windowPosition |
Cartesian2 | 画布的二维坐标 |
geographicPosition |
Object | 地理位置,{ lng: lng, lat: lat, height: height } |
eventType |
ScreenSpaceEventType | 事件类型 |
Returns:
返回固定形态的结构数据
- Inherited From:
Example:
//返回结构参考样例
{
houseCode: fwCode,
floorCode: floor,
eventType: ScreenSpaceEventType.LEFT_CLICK,
originalLayer: geoSingleBuildingLayer
param:{
info: pickedFeature,
pickedInfos: pickedFeatureList
}
}
将图层从视图移除
移除数据源
- Inherited From:
设置图层相关数据
Name | Type | Description |
---|---|---|
features |
Array.<Object> | geojson要素数组,本类只支持Point几何对象类型 |
Example:
effectLayer.setData([{
"type": "Feature",
"properties": {
"effectType": "ScanCircle",
"name": "scanCircle1",
"scanRingRadius": 2000.0
},
"geometry": {
"type": "Point",
"coordinates": [121.508604, 31.250103, 0]
}
}]);
设置数据源
Name | Type | Description |
---|---|---|
dataSource |
GeoDataSource |
- Inherited From:
显示图层