VtDynamicSource

VtDynamicSource

VtDynamicSource 类似于矢量切片的动态数据源,可以添加点线标注,使用同样的方式设置各种显示风格,自动标注避让,自动贴地。适用于较小的数据集,建议数据量小于1万,否则性能会很快下降
基类: VtDataSourceBase

Members

maxLevel : number

最大层级

minLevel : number

最小层级

readonly layerInfos : VtLayerInfo[]

图层信息

readonly layerNames : string[]

图层名

Methods

constructor(earthViewer)

创建动态切片数据源
Name Type Description
earthViewer EarthViewer

addLine(points,anno,properties)

添加线标注
Name Type Description
points Vector3[] 线坐标
anno string 标注
properties object optional附加属性,保留

addPoint(position,anno,properties)

添加点标注
Name Type Description
position Vector3 坐标
anno string 标注
properties object optional附加属性,保留

clear()

清除所有点线标注

loadGeoJson(jsonUrl,annoFieldName)

从GeoJson加载点线对象,目前不支持multi对象。可以结合使用GeoJsonParser自行添加
Name Type Description
jsonUrl string 文件url
annoFieldName string 标注字段