I have a google map on my webapp - working with JavaScript API V3. I give my users the ability to manage certain routes using the directions of a Google map. Now my problem is that I want to give them the opportunity to print it (just a map, not the whole site).
I tried the following:
var OpenWindow = window.open("_blank", "", ''); var contents = document.getElementById("mapMainCanvas"); OpenWindow.document.write(contents.innerHTML);
This really opens a new tab with a map, but without directions. In addition, I could not find the "print" option in the API. Has anyone solved this problem?
Thanks.
source share