How to print gmap ?

    You can print gmap using javascript by using following procedure. First of all create html file printmap.html and place it in the root directory or on the path that is accessible.
    <script type="text/javascript">
      var map_content =  window.opener.document.getElementById("mapDiv");
      document.write(map_content.innerHTML);
      window.print();
    </script>
    On the page where we have gmap place a link or button as needed I'm using simple link here mapDiv is the div id in which the map is placed
    <a href="javascript:void(0);" class="printmap" onclick="window.open('/printmap.html')">Print This Map</a>
    5
    Average: 5 (1 vote)