You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, Basically, I want to grab a screenshot of the map. I tried directly using canvas.toDataURL() by accessing canvas using both map._canvas and map.getCanvas(). It just gives a blank white image.
I then tried using the @watergis/maplibre-gl-export control, the control is rendered correctly, but when I click generate it just loads for some time and does nothing.
No Errors are thrown in both the cases.
Same happens even when I use maplibre instead of maptiler, Does the map restrict such canvas exports?
Any help or lead would help, Thank you!
The text was updated successfully, but these errors were encountered:
Hi, Below is my sample code for reference, You can put this in any vue js App.js
So, Basically, I want to grab a screenshot of the map. I tried directly using
canvas.toDataURL()
by accessing canvas using bothmap._canvas
andmap.getCanvas()
. It just gives a blank white image.I then tried using the
@watergis/maplibre-gl-export
control, the control is rendered correctly, but when I clickgenerate
it just loads for some time and does nothing.No Errors are thrown in both the cases.
Same happens even when I use maplibre instead of maptiler, Does the map restrict such canvas exports?
Any help or lead would help, Thank you!
The text was updated successfully, but these errors were encountered: