html2canvas icon indicating copy to clipboard operation
html2canvas copied to clipboard

Google Maps capture and tile artifacts/grid-lines...

Open sobomp3 opened this issue 6 years ago • 4 comments

Hello all, I've seen numerous posts on trying to capture a Google Map for various purposes. In our case, we'd like to be able to print a map. We have used most of the common code suggested here to capture the map using the proper CSS transforms. However, we are almost always seeing grid lines between the tiles. Does anyone know how to fix these grid lines? Here is an example of what I'm talking about:

image

Specifications:

  • html2canvas version tested with: 1.0.0-alpha.12
  • Browser & version: 70.0.3538.77 (and earlier versions, also Firefox, Edge)
  • Operating system: Windows 10 x64

sobomp3 avatar Oct 31 '18 20:10 sobomp3

Same, always seeing these lines, even in the browser. Any fix?

josiahbryan avatar Aug 23 '21 01:08 josiahbryan

Experiencing the same, does anybody know anything?

vlrevolution avatar Apr 09 '24 21:04 vlrevolution

No clue, still having the same problem - never heard any response (obviously lol)

josiahbryan avatar Apr 09 '24 21:04 josiahbryan

No clue, still having the same problem - never heard any response (obviously lol)

Try this ;)

.gm-style img {
  /* Targeting only images within Google Maps */
  transform: translateZ(0) scale(1.002); /* Using scale to slightly stretch the tiles */
  backface-visibility: hidden; /* Improves rendering */
}

vlrevolution avatar Apr 10 '24 11:04 vlrevolution