Recommended Free Tools
html2canvas often cannot capture Google Maps or charts correctly because it reconstructs a page from the DOM and CSS; it does not take a native browser screenshot. Maps and charts can depend on cross-origin tiles, images, frames, canvases, SVG, or resources that html2canvas cannot read. Depending on how the content is rendered, the result may be blank or incomplete, or the browser may block exporting the canvas.
The right fix depends on what you need: a static map image, an exported chart, a screenshot of a live page, or a capture that remains usable as data. No html2canvas option can override browser security rules.
What html2canvas is doing—and why it matters
html2canvas walks a page’s DOM and CSS, then paints the supported parts into a new canvas. It is not capturing the browser’s pixels in the way a screenshot tool does. Its documentation describes the result as a webpage “screenshot” taken “directly in the users browser,” but that means a reconstruction of supported page content, not a guaranteed pixel-for-pixel copy of everything on screen.
This distinction matters for complex widgets. A browser can display content that page JavaScript is not allowed to inspect. html2canvas must work within those same browser security boundaries, and it also cannot reproduce every CSS feature or embedded resource. Thus the fact that a map or chart is visible on screen does not mean html2canvas can copy it into an exportable canvas.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
Why Google Maps disappears or looks incomplete
A live Google Maps JavaScript widget is an application, not one ordinary image. It can combine map tiles, overlays, controls, and other content fetched from Google-controlled origins. The browser’s same-origin policy prevents a page from reading arbitrary pixels from another origin unless the resource server permits it through CORS.
- If an image or tile does not return acceptable CORS headers, html2canvas may skip it.
- If a cross-origin image has already been drawn into a canvas, that canvas is tainted. Reading its pixels or exporting it is then blocked.
- If map content is inside a cross-origin iframe, the page cannot inspect that frame’s document through
contentDocument.
These are browser-enforced protections, not a Google Maps bug that can be switched off with an html2canvas setting. A map can therefore be visible in the browser while its tiles are missing in the reconstructed output. Depending on the particular resources and capture path, the overall export can also fail when code tries to read or save a tainted canvas.
Why charts can be blank, clipped, or missing details
“Chart” describes several implementations. A chart may draw into its own <canvas>, use SVG, depend on external resources, or include separate overlays for labels, tooltips, and controls. html2canvas can render only the CSS and drawing features it supports. A chart may also still be drawing when capture starts, so the screenshot can happen before its content is ready.
If a chart’s own canvas contains unreadable cross-origin pixels, that can taint the result. Otherwise, the failure may simply be a timing or rendering-support issue: the chart appears blank, loses labels, or omits a tooltip or overlay. Wait for the chart library’s documented ready signal and use its native export function when one is available.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problemsRank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
Choose the fix that fits the output you need
| Need | Better approach | Important trade-off |
|---|---|---|
| A static map image | Use the Google Maps Static API and embed its returned image. | It is an image snapshot, not a pannable or interactive map. Maps Platform authentication, billing, quotas, and terms apply. |
| A chart image | Use the chart library’s export feature; for supported Google Charts, use getImageURI() after the ready event. |
The export represents the chart state, not necessarily the surrounding application interface. |
| A screenshot of a rendered browser page | Capture the page with a real browser using Puppeteer or Playwright. | Browser automation does not grant permission to read content that browser security rules protect. |
| A browser-side reconstruction of ordinary page content | Continue with html2canvas, configuring CORS or a proxy only when appropriate. | It remains a DOM/CSS reconstruction, subject to supported features and canvas limits. |
Fix a cross-origin image when you control its server
If you control the server hosting the image, configure it to return an Access-Control-Allow-Origin response that permits the requesting origin. Then ask html2canvas to use CORS for eligible images. The option requests CORS loading; it cannot create the required permission header itself.
const canvas = await html2canvas(document.querySelector("#capture"), {
useCORS: true
});
const image = canvas.toDataURL("image/png");
Use the actual element you intend to capture in place of #capture. This is useful for images whose server opts into CORS; it does not turn a live Google Maps widget or cross-origin iframe into readable same-origin content. If the server does not provide the required headers, the request will not make those pixels exportable.
When you do not control the image server
html2canvas has a proxy option for loading resources through a proxy. A same-origin proxy can be appropriate only when you are authorized to retrieve and reuse the resource and the arrangement meets your privacy and security requirements. A proxy changes who receives the request and who handles the resource; it is not a neutral workaround.
Do not treat allowTaint: true as a way to make an export succeed. It can allow rendering to proceed even when the canvas becomes tainted, but it does not make toDataURL(), pixel reads, or other canvas extraction safe. If your goal is a downloadable image, permitting a tainted canvas defeats that goal. It does not bypass browser security policy.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
For a Google Maps image, use a static map
If the required result is a non-interactive map picture, the Google Maps Static API returns an image—GIF, PNG, or JPEG—in response to an HTTP request. Build the request for the map you need, including the appropriate center, zoom, size, markers, or paths, and place the returned image in an ordinary <img>. html2canvas is then handling an image element rather than trying to reconstruct a live map widget and its tiles.
This trades live map behavior for a defined image: viewers cannot pan the map or use its interactive controls, and the image does not preserve live tooltips or application state. Google Maps Platform authentication, billing, quotas, and terms apply. If the deliverable must remain an interactive map, keep the live map on the page rather than expecting the canvas export to reproduce it.
For Google Charts, wait for readiness and export the chart
For supported Google Charts core charts and geocharts, wait until the chart raises its ready event, then call getImageURI(). The returned URI represents a PNG of the rendered chart. This avoids asking html2canvas to reconstruct the chart from its internal drawing elements.
google.visualization.events.addListener(chart, "ready", () => {
const imageUri = chart.getImageURI();
document.querySelector("#chart-export").src = imageUri;
});
Here, chart is the chart instance you created and #chart-export is an image element in your page. Attach the readiness handler as part of the chart’s setup, before relying on the chart being ready to export. Google also provides image-rendered chart types. Native chart export is the better route when the deliverable is the chart itself; it is not a screenshot of surrounding controls or unrelated page content.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
For server-side captures, use a real browser
html2canvas requires browser globals; it is not a Node.js renderer. For server-side screenshots, use browser automation such as Puppeteer or Playwright to load a page in a real browser and capture its rendered view. This is the appropriate category of tool when you need a browser screenshot rather than a DOM/CSS reconstruction.
Browser automation can capture the page as rendered, but it is not a security-policy bypass. A capture still depends on the page loading successfully and on what the browser is allowed to display. For a reliable workflow, wait for the relevant map, chart, images, and fonts to be ready before capturing; a fixed delay alone may not correspond to actual readiness.
Check timing, dimensions, and canvas limits
- Wait for content: capture after the chart’s documented ready event and after relevant images or fonts have loaded. For a map, account for tiles and overlays rather than assuming the outer map element being present means the map is complete.
- Reduce oversized captures: if an image is blank or clipped, try smaller capture dimensions or a lower scale. Browser canvas dimensions and total area have limits, and oversized canvases can fail without a clear error.
- Separate rendering from export: a page may paint something into a canvas successfully while a later pixel read or export fails because the canvas is tainted. Identify whether the problem is missing content or blocked extraction.
- Choose scale deliberately: higher scale can improve sharpness but increases canvas dimensions and memory demand. Keep the output within browser-specific canvas limits.
- Preserve the underlying data when needed: an image is a visual artifact, not the chart’s structured data or the map’s interactive state. Keep an accessible live view or a data export alongside the image where users need to inspect or reuse the content.
Or skip the browser setup
If what you need is a website screenshot rather than html2canvas’s DOM reconstruction, ScreenshotNeo provides a screenshot API and MCP server. One GET request returns an image or PDF. It does not make protected cross-origin content readable, but it avoids setting up your own capture browser for pages that can be captured.
For example, this cURL request saves a WebP screenshot:
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchPC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
See the ScreenshotNeo API documentation for request parameters. Cookie and consent banners, newsletter popups, and chat widgets are removed before capture; each step can be turned off. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and responses identify the page verdict and billing status in headers. An MCP server lets AI agents use take_screenshot, get_page_info, and capture_pdf. The Free plan includes 1,000 shots per month without a card; paid plans start at $5 for 3,000 shots, and every feature is on every plan. Sign up for 1,000 free screenshots a month with no card.
Troubleshooting symptoms and fixes
| Symptom | Likely cause | What to do |
|---|---|---|
| Map area is empty but other page content appears | Cross-origin map tiles, overlays, or an inaccessible frame were omitted. | Use a Static API image for a map picture, or capture the rendered page with a real browser if you need a screenshot. |
SecurityError when calling toDataURL() or reading pixels |
The canvas is tainted by a resource that was not made CORS-readable. | Use an asset server that permits CORS, an authorized same-origin proxy, or an export path that does not require reading the tainted canvas. Do not rely on allowTaint to make extraction safe. |
| Chart is blank or partly drawn | Capture began before rendering finished, or the chart uses content html2canvas cannot reproduce. | Wait for the chart’s readiness event and use native PNG export when supported. |
| Capture is cut off or entirely blank at large dimensions | The canvas may exceed browser-specific size or area limits. | Reduce the capture area or scale, then try again. |
useCORS: true has no effect |
The remote server has not granted CORS access for the requesting origin, or the content is not an ordinary CORS-enabled image. | Configure the server if you control it; otherwise choose a permitted proxy or a different capture approach. |
Make the choice based on fidelity, access, and reuse
Before implementing a capture path, decide what “screenshot” means for your use case. A static map or chart export provides a focused image; a browser capture represents the page as rendered; html2canvas is useful for supported DOM content that can be reconstructed in the browser. The key constraints are whether cross-origin pixels are available, whether API authentication or billing applies, whether capture runs in the browser or on a server, whether users need accessible/selectable data, and whether image dimensions stay within canvas limits.
For a chart, prefer the chart library’s native export when it provides the image you need. For a non-interactive map, use a static map image. For a server-side browser view, use Puppeteer or Playwright. Keep html2canvas for the cases it is suited to: browser-side reconstruction of accessible, supported page content.
Frequently Asked Questions
Can I use a screenshot as a substitute for an accessible chart or map?
Usually not by itself. A raster image does not expose the underlying chart values or interactive map controls as structured content. Keep the live component or provide an equivalent text or data representation when users need to explore or reuse the information.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Does switching from html2canvas to browser automation remove Google’s access restrictions?
No. Browser automation changes how the page is captured; it does not grant permission to inspect cross-origin pixels or override browser security rules.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

