views:

126

answers:

1

I am using Google Map Version 3 API to add markers on Google Map.

The problem is that, markers show up on browsers.
but when users print the map through browser's print command, nothing shows up.

The question is, - How can I display markers on printed materials? -

Comparisons:

  • On the browser - markers are clearly visible alt text

  • After Print (IE7, IE8) - markers are not printed (on paper or PDF) alt text

  • After Print (FireFox 3.5.4) - only markers are printed alt text

+2  A: 

I suggest you try out the Static Maps API. You can build a url that will return a static image (you can build your custom markers into the URL).

The browser will do a much better job of printing an image than it will do with a dynamic Google map.

Cannonade
Unfortunately, when I construct static map URL, URL becames too long to be processed.
Sung Meister
That is unfortunate. Static Maps has a maximum URL length of 2048 characters. The docs mention that you should check you are encoding the URL correctly. http://code.google.com/apis/maps/documentation/webservices/index.html#BuildingURLs Maybe worth checking. Good luck.
Cannonade