瀏覽代碼

improve Primitive Layer

tags/2.2.3
Caven Chen 4 年之前
父節點
當前提交
ab1e06c431
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      modules/layer/type/PrimitiveLayer.js

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

@@ -41,6 +41,10 @@ class PrimitiveLayer extends Layer {
*/
clear() {
this._delegate && this._delegate.removeAll()
this._points = this._delegate.add(new Cesium.PointPrimitiveCollection())
this._lalbes = this._delegate.add(new Cesium.LabelCollection())
this._billboards = this._delegate.add(new Cesium.BillboardCollection())
this._polylines = this._delegate.add(new Cesium.PolylineCollection())
this._cache = {}
this._state = State.CLEARED
return this

Loading…
取消
儲存