apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

Problem with Safari while printing the google map #105

Closed AnuKrishna closed 13 years ago

AnuKrishna commented 13 years ago

Hi ,

I am using Google maps in my rails application, And i am printing the map by using window.print. In Firefox the map is printing fine. But in mac safari, safari and Google chrome the map printing badly. Shade coming over the map in the printed page. My safari version is 3.1.2.

How can i slove it. Is there is any problem with my code.

Please help.

Thanks, Anu Krishna.

apneadiving commented 13 years ago

Sorry, never needed that so I've really few feedback to provide.

Please report the solution if you found out.

dannymcc commented 13 years ago

Sadly I think it's an issue with Google Maps API. There is a suggestion that setting your browser to print background colours and images will fix the issue. Your mileage may vary.

Reference: http://blog.batchgeo.com/printing-issues-try-this

AnuKrishna commented 13 years ago

Hi ..

I found the solution for this. There are so many JS files including in my page. From one of the javascript "lightwindow.js" which applying 0.7 opacity to the lightwindow overlay div.

So i have changed the 0.7 to 0.0. Problem solved.

Now the map is printing fine.

Thanks for the response..

AnuKrishna :)

apneadiving commented 13 years ago

Thanks to both of you :)