Please someone let me know if I'm asking a reasonable question here. I'm thinking there might be an event listener I could add to get the map to recenter when printing, but not sure what to do. Does anyone have an idea for this? And does anyone else pay attention to the print output from their map? I'm guessing it would be fine if the map div was a static size, but I haven't tried doing that--I'm quite happy having a page that will respond to users' font preferences. I currently change the width of the map div from screen to print (80% to 100% of the containing block), but even with the same percentage value I get the problem.
Is there a listener I could add that will recenter the map when printed? Sorry if my Javascript skills (or lack thereof) are the problem. If so, tell me to go learn some Javascript. Again, site is here if it helps: http://www.healthypetmobilevet.com/area.shtml sorry but the javascript and css are in separate files--I can set up a demo page it that would help. -Brian On Apr 17, 4:29 pm, Brian P <[email protected]> wrote: > First, here's the site where I'm having these > problems:http://www.healthypetmobilevet.com/area.shtml > > Does anyone know if it's possible to get the map div to be centered on > the same place when printed? I checked this on FireFox 3, IE 7, Opera > 9.64, and Safari 3.2 (all running on Windows) and they basically have > the same problem. On some the effect is more severe, though. > > Another problem I saw when doing this--the polygons on my map are in > the incorrect location under IE7 when printed, even though they're > correct when displayed. And when printed from Opera, the polygons > completely disappear! The best looking print seems to come from > Safari, though the map still isn't perfectly centered. I'm starting to > get a little concerned about the IE7 problems, considering how many > people use IE6/7. I suppose I should really check it on IE6 too since > it makes up ~17% of my recent visits. > > Maybe this is a problem with my CSS, but it does seem to re-size the > map div the way I asked (100% of the containing div). I'm really > concerned with the screwed-up polygons in IE7. Anyone have some > insight on getting printouts to look decent with Google maps? > > And should I set up a demonstration page to see how print media > styling affects Google maps without all the other content, or is my > current page enough to see the problem? > > -Brian > > On Apr 14, 10:59 pm, Brian P <[email protected]> wrote: > > > I wonder if anyone can answer this for me. I found exactly the same > > question being asked > > in:http://groups.google.com/group/Google-Maps-API/browse_frm/thread/e110... > > > The question is, can the map be re-centered when printed? I have a > > solution (found in here somewhere I think) that re-centers the map > > when the window is re-sized, but this does not work with a print media > > CSS div (at least in Firefox 3). You can see my map, with print CSS > > that does not keep the same center > > at:http://www.healthypetmobilevet.com/area.shtml > > > Just open it in FF and choose print preview. The map center changes :^ > > ( > > > -Brian P > > > From laurelwoodart: > > I already use media rules to fit the map's DIV on the page the way > > that > > I want it. (well not quite, > > seehttp://groups-beta.google.com/group/Google-Maps-API/browse_thread/thr... > > ) > > > What I want to is make the center of the map on the screen also be the > > center of the printed DIV (i.e I want the screen and print version's > > to > > be centered on the same lat/lon) > > > Google Maps seems to get a pre-rendered image from the server and > > print > > that instead of the interactive map. Since that feature does not seem > > to be part of the official API, I do not know if doing it manually > > would be a breach of the ToS. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
