@greenmice/ngx-cesium
Version:
Angular library for working with Cesium.
26 lines (25 loc) • 742 B
TypeScript
import { CesiumService } from '../cesium/cesium.service';
import * as i0 from "@angular/core";
/**
* Take screenshot of your cesium globe.
*
* usage:
* ```typescript
* // get base 64 data url
* const dataUrl = screenshotService.getMapScreenshotDataUrl();
*
* // or download as png
* screenshotService.downloadMapScreenshot('my-map.png');
*
* ```
*
*/
export declare class ScreenshotService {
private cesiumService;
constructor(cesiumService: CesiumService);
getMapScreenshotDataUrlBase64(): string;
downloadMapScreenshot(filename?: string): void;
private downloadURI;
static ɵfac: i0.ɵɵFactoryDeclaration<ScreenshotService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<ScreenshotService>;
}