forked from MapComplete/MapComplete
Bugfixes, add A3 poster
This commit is contained in:
parent
1f87728782
commit
b912343805
14 changed files with 2933 additions and 439 deletions
|
@ -119,6 +119,7 @@ export default class MinimapImplementation extends BaseUIElement implements Mini
|
|||
public async TakeScreenshot(format: "blob"): Promise<Blob> ;
|
||||
public async TakeScreenshot(format: "image" | "blob"): Promise<string | Blob> ;
|
||||
public async TakeScreenshot(format: "image" | "blob" = "image"): Promise<string | Blob> {
|
||||
console.log("Taking a screenshot...")
|
||||
const screenshotter = new SimpleMapScreenshoter()
|
||||
screenshotter.addTo(this.leafletMap.data)
|
||||
const result = <any> await screenshotter.takeScreen((<any> format) ?? "image")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue