OptionalcaptureOptional. Function to capture HTML marker elements as canvas. When provided with withLabels, also includes markers in the screenshot.
If the returned canvas is tainted (contains cross-origin images without CORS), the marker layer will be skipped and the screenshot will still succeed.
To include all content, ensure:
useCORS: true in html2canvas optionsAccess-Control-Allow-Origin)scale: window.devicePixelRatio for crisp outputbackgroundColor: null for transparencyOptionalwithWhether to include map labels in the screenshot.
OptionalwithWhether to include the outdoor context in the screenshot.
Options for taking a screenshot.