| 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 = {} |