"If at first you don't succeed; call it version 1.0" :-Unknown

Pages

Showing posts with label Google Maps. Show all posts
Showing posts with label Google Maps. Show all posts

Wednesday, January 2, 2013

Print Google Maps

Print Google Maps 


To print google maps you have to use the Google Static Maps API if you want printer friendly maps.

It should be pretty easy to build the Static Maps API URL request string from the LatLng or your markers. One caveat is that the URL is limited to 2048 characters including any character escapes, this will limit how many markers you can have on the map at one time.

In the Javascript API, markers have the class 'gmnoprint', which disables them from showing up on the printed rendering. You can iterate through the markers and remove this class, which should allow them to be printed on the page. As far as I know, this will not work for the direction lines.