How to print a non-static google map (v3 api)
I would like to ask if there is any way to print a google map which is showing a direction overlay?
- I hv tried http://abcoder.com/google/google-map-api/print-button-for-google-map-api/ with google map javascript api v3, but the map cannot be shown.
- I hv also tried to use static google map, however Static Maps API URLs can be a maximum of approximately 2,000开发者_高级运维 characters only, as a result my map cannot be shown again
can anyone tell me if there is any way to solve the problem?? thx
I have solved the problem. Now I am able to print the dynamic map on firefox successfully. Here is some idea of how I achieved this:
after google maps drew the route, i tried to inspect the html using firebug and i found that the problem about firefox cant print google map successfully is somehow because of the "style" of the div of the map.
img1 : http://picasaweb.google.com/lh/photo/KNWAznhah3Fv0CxdJ7_anUNXPgy_jUWAJdQ2OJnhc_g?feat=directlink
By deleting the corresponding div (refer to img1) using javascript, the map and the route can be printed 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
精彩评论