针对 一些Primiteve 特定要素我们定义Primiteve图层
```javascript
import {Layer} from "./Layer";
export abstract class PrimiteveLayer extends Layer {
constructor(name: string) {
super(name);
}
protected _addToMap(map: Map): void {
map.scene.primitives.add(this.cesiumObj);
}
protected _removeByMap(destroy?: boolean): void {
this.map.scene.primitives.remove(this.cesiumObj);
}
protected _flyTo(duration = 3, pitch = -90, heading = 0, range = 0, maximumHeight?: number) {
更多参考 https://xiaozhuanlan.com/topic/6059371482
网友评论