File

projects/angular-cesium/src/lib/angular-cesium/services/drawers/html-drawer/html-drawer.service.ts

Index

Methods

Constructor

constructor(_cesiumService: CesiumService)
Parameters :
Name Type Optional
_cesiumService CesiumService No

Methods

add
add(cesiumProps: any)
Parameters :
Name Type Optional
cesiumProps any No
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);
  }
}

result-matching ""

    No results matching ""