查阅Cesium API

创建图片标签Geojson要素图层。

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

属性

是否强制清楚缓存

方法

创建circleGeofeaturelayer

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

参数描述:
名称 类型 描述
name String 可选 图层名称。
geojsonOrurl object | String 可选 geojosn对象或者地址
option object 可选 参数对象{ Name: "", text: "", font_size: '30px', font_family:'sans-serif' stylet: this._cesium.LabelStyle.FILL, fillColor: this._cesium.Color.WHITE,// optional A Property specifying the fill Color. outlineColor: this._cesium.Color.BLACK,// optional A Property specifying the outline Color. outlineWidth: 1.0,// optional A numeric Property specifying the outline width. show: true,// optional A boolean Property specifying the visibility of the label. showBackground: false,// optional A boolean Property specifying the visibility of the background behind the label. backgroundColor: new this._cesiumColor(0.165, 0.165, 0.165, 0.8),//optional A Property specifying the background Color. backgroundPadding: new Cartesian2(7, 5),//optional A Cartesian2 Property specifying the horizontal and vertical background padding in pixels. scale: 1.0,//optional A numeric Property specifying the scale to apply to the text. horizontalOrigin: this._cesiumHorizontalOrigin.CENTER, //optional A Property specifying the HorizontalOrigin. verticalOrigin: this._cesium.VerticalOrigin.CENTER,// optional A Property specifying the VerticalOrigin. eyeOffset: this._cesium.Cartesian3.ZERO,// optional A Cartesian3 Property specifying the eye offset. pixelOffset: this._cesium.Cartesian2.ZERO,// optional A Cartesian2 Property specifying the pixel offset. heightReference: this._cesium.HeightReference.NONE,// optional A Property specifying what the height is relative to. near: 0, far: 5000 }
disFnc function 可选 回调函数
返回:
返回一个Cesium的datasource对象。
创建circleGeofeaturelayer

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

参数描述:
名称 类型 描述
name String 可选 图层名称。
geojsonOrurl object | String 可选 geojosn对象或者地址
option object 可选 参数对象{ show: true, position: this._cesium.Cartesian3.ZERO, pixelOffset: Cesium.Cartesian2.ZERO, eyeOffset: Cesium.Cartesian3.ZERO, heightReference: Cesium.HeightReference.NONE, horizontalOrigin: Cesium.HorizontalOrigin.CENTER, verticalOrigin: Cesium.VerticalOrigin.CENTER, scale: 1.0, image: '', imageSubRegion: undefined, color: Cesium.Color.WHITE, id: undefined, rotation: 0.0, alignedAxis: Cesium.Cartesian3.ZERO, width: undefined, height: undefined, scaleByDistance: undefined, translucencyByDistance: undefined, pixelOffsetScaleByDistance: undefined, sizeInMeters: false, distanceDisplayCondition: undefined }
disFnc function 可选 回调函数
返回:
返回一个Cesium的datasource对象。
删除数据
编辑
参数描述:
名称 类型 描述
open Boolean 可选 是否开启编辑
option Object 可选 参数
导出工程数据
设置数据是否刷新
设置数据是否刷新
设置数据显示隐藏