My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3550: Bug: Printing with page breaks - incorrect tiles on next page
26 people starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  ----


Sign in to add a comment
 
Reported by [email protected], Aug 18, 2011
Whenever a (large) map is printed and it involves a page break before or in the middle of the map canvas, the first few map tiles on the part of the map pushed to the page following the page break are wrong. Typically, some tiles appear and they are from the geographic neighbourhood of the correct tiles, but are not spot on.

Examples are attached using primarily Chrome printing, but same behaviour is observed in IE 9.0.8, Firefox 5.0.1, Safari 5.1 and Chrome 13.0, however, the issue shows a litte bit different in each browser.

In each of the GMap.Print.Bug.x.pdf files notice the top of the maps following a page break. Also notice that the overlays (markers and polylines) are drawn correctly. Only the tiles are wrong.

The forced page break example is constructed using the css page-break-before property.

It does not occur with the first map, if it fits on the first page, but then only to subsequent maps following page breaks (see GMap.Print.Bug.Chrome.ForcedPageBreak.WholeMap.NoText.pdf).

The file GMap.Print.Correct.Chrome.ForcedPageBreak.iFrames.pdf shows how the maps in the example instance should look (map canvases were placed in separate iframes to force print of each map canvas on independent pages, thereby avoiding the issue).

Lastly, all the pages used in this example look absolutely fine when displayed in browsers. The issue only ever appears when printing.
GMap.Print.Bug.Chrome.AutomaticPageBreak.MidMap.pdf
1.4 MB   Download
GMap.Print.Bug.Chrome.AutomaticPageBreak.WholeMap.pdf
1.4 MB   Download
GMap.Print.Bug.Chrome.ForcedPageBreak.WholeMap.pdf
1.5 MB   Download
GMap.Print.Bug.Firefox.ForcedPageBreak.MidMap.pdf
155 KB   Download
GMap.Print.Bug.IE.ForcedPageBreak.WholeMap.pdf
554 KB   Download
GMap.Print.Correct.Chrome.ForcedPageBreak.iFrames.pdf
1.5 MB   Download
GMap.Print.Bug.Chrome.ForcedPageBreak.WholeMap.NoText.pdf
442 KB   Download
Aug 30, 2011
#1 [email protected]
omg thx, i've got the same probleme for month and i think it was because of my css or html. My english is bad so i didnt understand everything, have u found a solution? i noticed that sometimes with ie9 the display of the map is correct
Sep 3, 2011
#2 [email protected]
@jean, one solution is to put the maps on separate html-pages in iframes. In that way the maps get printed in separate pages. It works for me in all abovementioned browsers.
Apr 30, 2014
#3 [email protected]
This is still a problem in Chrome 34. Though it doesn't seem to affect Internet Explorer 10 (or IE 10 running in IE9 mode).

Is there a solution that doesn't involve the use of iframes?
Aug 25, 2014
#4 [email protected]
 Issue 3693  has been merged into this issue.
Aug 25, 2014
#5 [email protected]
 Issue 4263  has been merged into this issue.
Aug 25, 2014
#6 [email protected]
 Issue 6905  has been merged into this issue.
Apr 2, 2015
Project Member #7 [email protected]
(No comment was entered for this change.)
Status: Accepted
Labels: Internal-16708160
Jul 23, 2015
Project Member #9 [email protected]
 Issue 7274  has been merged into this issue.
Sep 23, 2015
Project Member #10 [email protected]
 Issue 5145  has been merged into this issue.
Sign in to add a comment

Powered by Google Project Hosting