I use the Google Maps API v2, and I would like to be able to print the map, just like Google, on my maps page.
You can click the small printer icon and create a new pop-up window with the same card, but all non-printable items (such as controls) will be deleted. I know that they use @media print to achieve this effect when you click "Preview" or "Print" in the navigator. However, the popup is not in print mode. A.
Is there a way to do the magic trick that they do, for example, set the current media type for "printing"? Or do they trick and customize their own CSS cheat style?
I have a Silverlight plugin and a Google map on the same page, and I want to create a popup containing only a map ready to print (e.g. Google).
Thanks http://abcoder.com/google/google-map-api/print-button-for-google-map-api/ I know how to get HTML content, but I can get content with all the controls, etc. . on it (which I do not want).
Any help would be appreciated.
css google-maps
R4cOON
source share