cesium 图层构建的那些事 (十四)

针对 一些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) {
posted @ 2022-01-20 17:42  haibalai  阅读(37)  评论(0编辑  收藏  举报