File

projects/angular-cesium/src/lib/angular-cesium/cesium-enhancements/ConfigurationService.ts

Constructor

constructor(config: any)
Parameters :
Name Type Optional
config any No
import { Inject, Injectable, InjectionToken, Optional } from '@angular/core';
import { fixCesiumEntitiesShadows } from './StaticGeometryColorBatch';

export const ANGULAR_CESIUM_CONFIG = new InjectionToken('ANGULAR_CESIUM_CONFIG');

@Injectable()
export class ConfigurationService {
  constructor(@Optional() @Inject(ANGULAR_CESIUM_CONFIG) private config: any) {
    const fixEntitiesShadows = config ? config.fixEntitiesShadows : true;
    if (fixEntitiesShadows !== false) {
      fixCesiumEntitiesShadows();
    }
  }
}

result-matching ""

    No results matching ""