Function takeScreenshot
Parameters
- map: Map
- options: { download?: boolean; filename?: string } = {}
Optionaldownload?: booleanIf
true, this function will trigger a download in addition to returning a blob. Default:falseOptionalfilename?: stringOnly if
options.downloadistrue. Indicates the filename under which the file will be downloaded. Default:"maptiler_screenshot.png"
Returns Promise<Blob>
Was this helpful?
Takes a screenshot (PNG file) of the curent map view. Depending on the options, this function can automatically trigger a download of te file.