Browse Source

improve Primitive Layer

tags/2.2.3
Caven Chen 4 years ago
parent
commit
ab1e06c431
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      modules/layer/type/PrimitiveLayer.js

+ 4
- 0
modules/layer/type/PrimitiveLayer.js View File

@@ -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…
Cancel
Save