I am looking for a method to efficiently print Google maps that have been implemented on a site using the google maps api v3.
I have seen some people using just the window.print js and then
@media print
{
body * { visibility: hidden; }
#map * { visibility: visible; }
#map {visibility: visible;position:absolute; top: 5px; left: 5px;}
}
Currently a larger map is displayed to users using fancybox and I have added a print button to this. Ideally I just want to add some jquery or similar to print the map.
However this doesn't seem to really work. Has anyone got any suggestions on the best way to do this
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…