Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to use media print, for google maps

I have this webbrowser view of a page, with a Google map.

browser view

Then I have added some @Media Print style

<style type="text/css">
        @media print
        {
        body{font-family:georgia,times,sans-serif;}
        img{max-width:500px;}
        #headerblock{display:none;}
        #navigationblock{display:none;}
        #thewaydiv{display:block;}
        #footerblock{display:none;}
        #contentmap{min-height:100px; position:relative; width:100%;}
        #map{border-bottom:0px; border-left:0px; border-top:0px; border-right:0px; height:250px; margin-top:0px; width:100%;}
        }
    </style>

When I then use print page or print view then I get this:

print view

As you can see the Google map is OK in the size for the page, but it's too big/just a little part of the true image. How can I fix this, so I get a Google image like the Browser View on the Print View?

like image 798
Thomas BP Avatar asked Sep 03 '12 17:09

Thomas BP


People also ask

Can you use Google Maps in print?

Print a mapOn your computer, sign in to My Maps. Open a map. Print map. Follow the on-screen instructions.

How do I print a high resolution image from Google Maps?

Click on 'Create a new map', you will be required to sign-in with your Gmail account. Search your location and zoom in/out as desired. Select the required size and output. Press the print button to produce an image or pdf file.

Can I use screenshots of Google Maps commercially?

All uses of Google Maps, Google Earth, and Street View content must provide attribution to Google and, if applicable, to our data providers. We do not approve of any use of content without proper attribution, in any circumstances, and we require attribution while the content is shown.

Can you print Google Maps satellite view?

Google Maps and Google Earth are great tools for satellite imagery and the best thing is that you can print the satellite images from both of them. However, you should only use these printouts for your personal use and not for any commercial or illegal activities.


1 Answers

This cannot be done using CSS.

You will need a special page with a map sized as it has to be printed, or zoom-out the map before printing(this may be done using javascript).

like image 101
Dr.Molle Avatar answered Sep 24 '22 13:09

Dr.Molle