Home Page
  • May 19, 2025, 08:50:18 am *
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

Official site launch very soon, hurrah!


Author Topic: Taking screenshots of Google Maps [Street View]  (Read 1823 times)

Dakusan

  • Programmer Person
  • Administrator
  • Hero Member
  • *****
  • Posts: 556
    • View Profile
    • Dakusan's Domain
Taking screenshots of Google Maps [Street View]
« on: May 12, 2025, 07:06:12 pm »


The following are the steps to take a screenshot without overlays inside Google Maps Street View or Google Maps.
  1. Collapse the left side window if visible with the arrow
  2. Press F11 to go full screen
  3. Open up the dev console [F12]
    Optional: You may need to open the dev console in another window (undocked). Leaving it docked with the window could cause problems.
  4. Run the following command in the dev console:

    document.querySelectorAll('*').forEach(el => el.style.display='none');
    for(let c=document.getElementsByTagName('canvas')[0];c.parentNode;c=c.parentNode) c.style.display='';
    This should be pretty foolproof, but you may need to change the [0] to another number if the primary canvas element isn't the first canvas.

    If that doesn't work, you can also try the following, which is a bit more specialized, but may not catch all the elements on the screen (including the Google logo).

    document.querySelectorAll('[jsaction^="mouseover:"],[jsaction^="mouseout:"],button,[role="navigation"],.scene-footer-container,#omnibox-container,[aria-label="Sign in"],[aria-label="Google apps"]')
       .forEach(el => el.style.display = 'none');
    document.querySelectorAll('[aria-label="Interactive map"]').forEach(el => el.parentNode.style.display='none');
  5. Close the dev console (or Alt+tab back to the chrome window if undocked)
  6. Move the mouse to the sky (or a portion that won't trigger possible popups)
  7. Wait for a few seconds for icons to disappear
  8. Take screenshot
Logged