Explorar el Código

improve Primitive Layer

tags/2.2.3
Caven Chen hace 4 años
padre
commit
ab1e06c431
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4
    0
      modules/layer/type/PrimitiveLayer.js

+ 4
- 0
modules/layer/type/PrimitiveLayer.js Ver fichero

@@ -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

Cargando…
Cancelar
Guardar