title: Google maps API v3 print page appears white line
body: <p>I created a page with google maps and I need to print it, but a white line appears in the map in some coordinates of the map, not all the locations it appears.</p>
  
  <p><a href="https://i.stack.imgur.com/LqCrU.png" rel="nofollow noreferrer">Print</a></p>
  
  <p>HTML Code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
  &lt;meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"&gt;
  
  &lt;title&gt;Google Maps - Teste&lt;/title&gt;
  
  &lt;!-- # CSS Imports # --&gt;
  &lt;link href="css/site.css" rel="stylesheet"&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div id="map"&gt;&lt;/div&gt;
  
  &lt;!-- # Javascript Imports # --&gt;
  &lt;script src="js/site.js"&gt;&lt;/script&gt;
  &lt;script async defer src="https://maps.googleapis.com/maps/api/js?key=KEY_GOOGLEMAPS_API&amp;callback=initMap"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>CSS Code (css/site.css):</p>
  
  <pre><code>#map {
    height: 100%;
  }
  html, body {
    height: 100%;
    margin: 0;
    padding: 0;
  }
  @media print {
    img {
      max-width: none !important;
    }
  }
  </code></pre>
  
  <p>Javascript Code (js/site.js):</p>
  
  <pre><code>var map;
  function initMap() {
    map = new google.maps.Map(document.getElementById('map'), {
      zoom: 9,
      center: {
        lat: -27.6301719, 
        lng: -49.0330395
      },
      mapTypeId: 'terrain'
    });
  }
  </code></pre>
  
  <p>EDIT 1:</p>
  
  <p>I found a solution ... Instead of taking a screenshot of the div in question, use the Google Maps Static API, where you send some parameters and it returns an image ... BUUUUUT see edit 2...</p>
  
  <p><a href="https://developers.google.com/maps/documentation/static-maps/?hl=pt-br" rel="nofollow noreferrer">https://developers.google.com/maps/documentation/static-maps/?hl=pt-br</a></p>
  
  <p>EDIT 2:</p>
  
  <p>The URL of google maps static is limited by 8192 chars, and i need draw ALOOOOT lines into maps... so... im back to the init...</p>
  
  <p>[## Sorry my bad english :(]</p>