美文网首页
cesium 图层构建的那些事 (十四)

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

作者: haibalai | 来源:发表于2022-07-29 17:46 被阅读0次

针对 一些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

相关文章

网友评论

      本文标题:cesium 图层构建的那些事 (十四)

      本文链接:https://www.haomeiwen.com/subject/lthhwrtx.html