projects/angular-cesium/src/lib/angular-cesium/services/drawers/html-drawer/html-drawer.service.ts
Methods |
constructor(_cesiumService: CesiumService)
|
||||||
Parameters :
|
add | ||||||
add(cesiumProps: any)
|
||||||
Parameters :
Returns :
any
|
import { Injectable } from '@angular/core';
import { CesiumService } from '../../cesium/cesium.service';
import { PrimitivesDrawerService } from '../primitives-drawer/primitives-drawer.service';
@Injectable()
export class HtmlDrawerService extends PrimitivesDrawerService {
constructor(private _cesiumService: CesiumService) {
super(Cesium.HtmlCollection, _cesiumService);
}
add(cesiumProps: any): any {
cesiumProps.scene = this._cesiumService.getScene();
cesiumProps.mapContainer = this._cesiumService.getMap().getMapContainer();
return super.add(cesiumProps);
}
}