views:

145

answers:

1

Hi,

I would like to ask if there is any way to print a google map which is showing a direction overlay?

can anyone tell me if there is any way to solve the problem?? thx

+1  A: 

I hv solved the problem. Now I am able to print the dynamic map on firefox successfully. Here is some idea of how to achieve this:

after the google map draw the route, i tried to inspect the html using firebug and i found that the problem abt firefox cant print google map successfully is somehow becox of the "style" of the div of the map.

img1 : http://www.geocities.jp/chiwa1015jp/firefox_print.png

By deleting the corresponding div (refer to img1) using javascript, the map and the route can be print correctly in firefox.

I am not sure if this is violating the rules in using Google map api, it's better for you to check carefully before using this method.

--Mark

CoderMark
And u may find that if the map contain "marker", the **firefox will print out a white box instead of the marker**, this can also be solvedimg2 : http://www.geocities.jp/chiwa1015jp/marker.pngFirst of all, (refer to img2) remove two divs (z-index:102 and z-index:103), one of them is holding the shadow of the marker.In the div (with z-index:105), it is holding the marker img, remove the "opacity: 0.01" this style from the corresponding div can solve the blank markers problem.Hope the above methods can also solve ur problems~ =)
CoderMark
Your links with images are dead now.
DixonD