grinat / leaflet-simple-map-screenshoter

Leaflet plugin which take screenshot of map
MIT License
71 stars 19 forks source link

Blank screenshots are being generated in specific scenarios #56

Open arnabadas opened 7 months ago

arnabadas commented 7 months ago

Steps to reproduce the scenario:

  1. Create a div of (308px width and 256px height)
  2. Create a map with bounds [[28.3899664,77.0219019], [30.3345816,78.2874772]] within it center and zoom control not provided
  3. Try taking screenshot

Blank png with dimensions 300x150 and size 2kb is being generated. But if I move the map even a little bit then the screenshot is being generated just fine. Tested in the latest Edge browser (v 119.0.2151.72 64-bit). In latest Firefox (v120.0 x64) the screenshoter seems to perform very poorly for some reason.

I am using React with Tailwind, if it matters.