ソースを参照

improve PrimitiveLayer

tags/2.2.3
Caven Chen 4年前
コミット
bedf5a0c4d
1個のファイルの変更20行の追加0行の削除
  1. 20
    0
      modules/layer/type/PrimitiveLayer.js

+ 20
- 0
modules/layer/type/PrimitiveLayer.js ファイルの表示

@@ -11,10 +11,30 @@ class PrimitiveLayer extends Layer {
constructor(id) {
super(id)
this._delegate = new Cesium.PrimitiveCollection()
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.type = Layer.getLayerType('primitive')
this._state = State.INITIALIZED
}

get points() {
return this._points
}

get lalbes() {
return this._lalbes
}

get billboards() {
return this._billboards
}

get polylines() {
return this._polylines
}

/**
* Clears all primitives
* @returns {PrimitiveLayer}

読み込み中…
キャンセル
保存