TajAlDeen
TTCTheo's Typesafe Cult
•Created by TajAlDeen on 2/23/2024 in #questions
react take a screen shot openstreetmap
I integrated openstreetmap( react leaflet ) and I want to print the current map image but I just can't
I tried
I tried html2canvas but it just take a screenshot without the map render
also tried leaflet-easy-print but not working
Dom to image rendered the map as pieces like a table with gray lines between each piece of the image
The only thing that worked is using a scraper (puppeteer) but it's not practical and cost a lot with hosting
1 replies