bubkoo / html-to-image

✂️ Generates an image from a DOM node using HTML5 canvas and SVG.
MIT License
5.69k stars 531 forks source link

Google maps is not rendered correctly #349

Open pparikhgit opened 1 year ago

pparikhgit commented 1 year ago

Expected Behavior

Google maps is getting zoomed in/out incorrectly most likely due to the weird width & height it gets rendered in. On screen it looks fine but after converting to image, it is not proper.

Current Behavior

Google map gets incorrectly zoomed in or out.

Possible Solution

Would be good to have support for it when it converts google map to an image and embeds that.

Steps To Reproduce

  1. ...
  2. ...
  3. ...
Error Message & Stack Trace

```txt ```

Additional Context

Your Environment

vivcat[bot] commented 1 year ago

👋 @pparikhgit

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

vivcat[bot] commented 1 year ago

Potential duplicates:

ruanstackworx commented 1 year ago

My google map exports perfectly when I use toJpeg(). When I use toPng(), the map does not render correctly. html-to-image: 1.11.11 Chrome Version 114.0.5735.198 (Official Build) (arm64) MaOS: 13.3.1 (a) (22E772610a)