查阅Cesium API

多边形切片Geojsonu要素图层

Author:
  • 金磊、张丹钊、张恒、薛鹏

属性

是否强制清楚缓存

方法

序列化参数对象

_serialize(params)String

参数描述:
名称 类型 描述
params Object 参数对象
返回:
序列化字符串
生成管状数据
参数描述:
名称 类型 描述
radians Float
创建VolumeGeoJsonFeatureLayer

createVolumeGeoJsonFeatureLayer(name, geojsonOrurl, option, disFnc)Promise.<Object>

参数描述:
名称 类型 描述
name String 可选 图层名称。
geojsonOrurl object | String 可选 geojosn对象或者地址
option object 可选 参数对象{ radius: 2, material: "#FFFFFF", show: true }
disFnc function 可选 回调函数
返回:
返回一个Cesium的datasource对象。
geojson管线矢量图层

createVolumeGeoJsonFeatureLayerProvider(name, geoOptions, styleOption, GroupID, disFnc)

参数描述:
名称 类型 描述
name String 可选 图层名称
geoOptions object 可选 geojosn图层 url: 'http://192.168.1.40:8090/geoserver/gwc/service/wmts', layer:'nanjing', upperLevelLimit: 13, lowerLevelLimit: 13, minx:118.51721649800015, miny:31.863232407499936, maxx:118.91648798400001, maxy:32.27649160409993
styleOption object 可选 图层样式 material: this._cesium.Color.WHITE, // optional A Property specifying the material used to draw the polyline. radius:3
GroupID Float 可选 组itemID
disFnc object 可选 回调函数
创建VolumeGeoJsonFeatureLayer

createVolumeVectorGeoJsonFeatureLayer(name, geojsonOrurl, option, disFnc)Promise.<Object>

参数描述:
名称 类型 描述
name String 可选 图层名称。
geojsonOrurl object | String 可选 geojosn对象或者地址
option object 可选 参数对象{ height: 0,// optional A numeric Property specifying the altitude of the polygon relative to the ellipsoid surface. extrudedHeight: 0,// optional A numeric Property specifying the altitude of the polygon's extruded face relative to the ellipsoid surface. heightReference: this._cesium.HeightReference.NONE,// optional A Property specifying what the extrudedHeight is relative to. show: true,// optional A boolean Property specifying the visibility of the polygon. fill: true,// optional A boolean Property specifying whether the polygon is filled with the provided material. material: this._cesium.Color.WHITE,//optional A Property specifying the material used to fill the polygon. outline: false,//optional A boolean Property specifying whether the polygon is outlined. outlineColor: this._cesium.Color.BLACK,// optional A Property specifying the Color of the outline. outlineWidth: 1.0,//optional A numeric Property specifying the width of the outline. stRotation: 0.0,// optional A numeric property specifying the rotation of the polygon texture counter-clockwise from north. granularity: this._cesium.Math.RADIANS_PER_DEGREE,// optional A numeric Property specifying the angular distance between each latitude and longitude point. perPositionHeight: false, //optional A boolean specifying whether or not the the height of each position is used. closeTop: true, //optional When false, leaves off the top of an extruded polygon open. closeBottom: true,// optional When false, leaves off the bottom of an extruded polygon open. shadows: this._cesium.ShadowMode.DISABLED,// optional An enum Property specifying whether the polygon casts or receives shadows from each light source. near: 0, far: 5000 }
disFnc function 可选 回调函数layername, url, option, GroupID, disFnc
返回:
返回一个Cesium的datasource对象。name, geoOptions, styleOption, GroupID, checked, disFnc
山东项目数据加载

createVolumeVectorGeoJsonFeatureLayersd()

删除数据
编辑
参数描述:
名称 类型 描述
open Boolean 可选 是否开启编辑
option Object 可选 参数
导出工程数据
设置数据是否刷新
是否强制清除缓存
参数描述:
名称 类型 描述
b Boolean
设置数据是否刷新
设置数据显示隐藏