Closed marshallino16 closed 2 years ago
Hi,
How can we generate an image from the canvas? Everytime we try something we only get a blank white image.
Also reported here: https://github.com/mapbox/mapbox-gl-leaflet/issues/79
Thanks
Find out.
There's a preserveDrawingBuffer option that needs to be set to true.
preserveDrawingBuffer
e.g https://docs.mapbox.com/mapbox-gl-js/api/map/
Hi,
How can we generate an image from the canvas? Everytime we try something we only get a blank white image.
Also reported here: https://github.com/mapbox/mapbox-gl-leaflet/issues/79
Thanks