File

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

Extends

PrimitivesDrawerService

Index

Properties
Methods

Constructor

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

Methods

add
add(cesiumProps: any)
Inherited from BasicDrawerService
Parameters :
Name Type Optional
cesiumProps any No
Returns : any
getShow
getShow()
Inherited from PrimitivesDrawerService
Returns : boolean
init
init()
Inherited from BasicDrawerService
Returns : void
remove
remove(entity: any)
Inherited from BasicDrawerService
Parameters :
Name Type Optional
entity any No
Returns : void
removeAll
removeAll()
Inherited from BasicDrawerService
Returns : void
setShow
setShow(showValue: boolean)
Inherited from BasicDrawerService
Parameters :
Name Type Optional
showValue boolean No
Returns : void
update
update(entity: any, cesiumProps: any, ...args: any[])
Inherited from BasicDrawerService
Parameters :
Name Type Optional
entity any No
cesiumProps any No
args any[] No
Returns : void
setPropsAssigner
setPropsAssigner(assigner: Function)
Inherited from BasicDrawerService
Parameters :
Name Type Optional
assigner Function No
Returns : void

Properties

Protected _cesiumCollection
Type : any
Inherited from PrimitivesDrawerService
Private _primitiveCollectionWrap
Type : any
Inherited from PrimitivesDrawerService
Protected _propsAssigner
Type : Function
Inherited from BasicDrawerService
Private _show
Default value : true
Inherited from PrimitivesDrawerService
import { Injectable } from '@angular/core';
import { CesiumService } from '../../cesium/cesium.service';
import { PrimitivesDrawerService } from '../primitives-drawer/primitives-drawer.service';
declare var Cesium: any;

@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.getMapContainer();
    return super.add(cesiumProps);
  }
}

results matching ""

    No results matching ""