其他分享
首页 > 其他分享> > cesium 图层构建的那些事 (二十二)

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

作者:互联网

我们来构建等高线图层

```javascript

import {Layer} from "./Layer";
import { GraphicLayer } from "./GraphicLayer";

export class IsoLineLayer extends Layer {
private option: any;
protected isAdd2LoadCesium = true;
constructor(option: any) {
super(option.name);
this.option = option;
}
public flyTo(duration?: number, pitch?: number, heading?: number, range?: number, maximumHeight?: number): this {
if (this.map) {
this.cesiumObj.flyTo(duration,pitch,heading,range,maximumHeight);
}
return this;
}
protected _addToMap(map: any): void {
this.cesiumObj = this.createIsoLine();
map.dataSources.add(this.cesiumObj);
}

 更多参考 https://xiaozhuanlan.com/topic/0792451836

标签:二十二,map,const,option,coordinates,cesium,return,图层,any
来源: https://www.cnblogs.com/haibalai/p/15827449.html