title: jsPDF settings for printing leaflet/openlayers map
body: <p>I came across jsNode library here <a href="https://stackoverflow.com/questions/18191893/generate-pdf-from-html-in-div-using-javascript">Generate pdf from HTML in div using Javascript</a>
  So I've installed. I'm tryna use it to print a leaflet map. It seems I was not able to set it propely. It create the PDF but nothing shows on the map. Could you help me with that ?</p>
  
  <p><strong>Javascript</strong></p>
  
  <pre><code>function genPDF() {
  
      var doc = new jsPDF();
      var elementHandler = {
          '#ignorePDF': function(element, renderer) {
              return true;
          }
      };
      var source = window.document.getElementsByTagName("div")[0];
      doc.fromHTML(
          source,
          15,
          15, {
              'width': 180,
              'elementHandlers': elementHandler
          });
  
      doc.output("dataurlnewwindow");
  
  }
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;html&gt;
      &lt;body onload="Create_MAP();"&gt;
          &lt;div id="map"&gt;
          &lt;/div&gt;
          &lt;input type="button" class="bt" value="PRINT PDF" onclick="genPDF();"&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>