Is there any way to get rid of the left pane of content on Google Maps, so that the map takes up the whole width of the window?
I don’t know if there’s a way to toggle it manually, but it seems to go away when you input an unambiguous location ("<city>,<state>" or exact street address).
This can be done with a bit of JavaScript. After you’ve positioned the map the way you want it, enter the following in your address bar and then push enter:
javascript:document.getElementById("panel").style.visibility="hidden";document.getElementById("map").style.marginLeft="0";void(0);
If you add that line as the URL of a new bookmark/favorite (and give it a name like “Hide Google Maps Left Pane”), you can easily use it again in the future.
Reply verry verry cool!
Got any JavaScript to kill everything but the map?
Thanks, both of those suggestions worked great. Especially the bookmarklet.
This seems to work:
javascript:document.getElementById("gaia").style.display="none";document.getElementById("header").style.display="none";document.getElementById("panel").style.display="none";document.getElementById("map").style.marginLeft=0;document.getElementById("map").style.height=window.innerHeight+"px";void(0);
It basically removes everything else and leaves you with a full-screen map.
Unfortunately, the navigation controls are still there because I can’t figure out how to remove them. The API lets you remove them by name, but I don’t know what Google calls them by default. They can also be removed if there’s a way to hide all objects of a certain class (.gmnoprint in this case), but I don’t know enough JavaScript to do so. Anyone?
Also, for longer-term use, it’d probably be easier to just make a custom version using the Google Maps API.
Beautiful! Thanks.
Yes, very cool!
BTW, here is Google’s answer to my query, which matches what scr4 said.