浏览代码

improve Primitive Layer

tags/2.2.3
Caven Chen 4 年前
父节点
当前提交
dca887be8d
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4
    4
      modules/layer/type/PrimitiveLayer.js

+ 4
- 4
modules/layer/type/PrimitiveLayer.js 查看文件

super(id) super(id)
this._delegate = new Cesium.PrimitiveCollection() this._delegate = new Cesium.PrimitiveCollection()
this._points = this._delegate.add(new Cesium.PointPrimitiveCollection()) this._points = this._delegate.add(new Cesium.PointPrimitiveCollection())
this._lalbes = this._delegate.add(new Cesium.LabelCollection())
this._labels = this._delegate.add(new Cesium.LabelCollection())
this._billboards = this._delegate.add(new Cesium.BillboardCollection()) this._billboards = this._delegate.add(new Cesium.BillboardCollection())
this._polylines = this._delegate.add(new Cesium.PolylineCollection()) this._polylines = this._delegate.add(new Cesium.PolylineCollection())
this.type = Layer.getLayerType('primitive') this.type = Layer.getLayerType('primitive')
return this._points return this._points
} }


get lalbes() {
return this._lalbes
get labels() {
return this._labels
} }


get billboards() { get billboards() {
clear() { clear() {
this._delegate && this._delegate.removeAll() this._delegate && this._delegate.removeAll()
this._points = this._delegate.add(new Cesium.PointPrimitiveCollection()) this._points = this._delegate.add(new Cesium.PointPrimitiveCollection())
this._lalbes = this._delegate.add(new Cesium.LabelCollection())
this._labels = this._delegate.add(new Cesium.LabelCollection())
this._billboards = this._delegate.add(new Cesium.BillboardCollection()) this._billboards = this._delegate.add(new Cesium.BillboardCollection())
this._polylines = this._delegate.add(new Cesium.PolylineCollection()) this._polylines = this._delegate.add(new Cesium.PolylineCollection())
this._cache = {} this._cache = {}

正在加载...
取消
保存