derive icon indicating copy to clipboard operation
derive copied to clipboard

Export as png x2 or more

Open maxime1992 opened this issue 2 years ago • 1 comments

It'd be really nice to be able to export the png in higher quality for example x2, x3 and x4.

Same picture, just better definition.

maxime1992 avatar Jun 10 '23 13:06 maxime1992

Nice idea. Currently using https://github.com/mapbox/leaflet-image, which doesn't have a way to change the pixel ratio as far as I can tell (other than opening the map on a high DPI display?)

~Maybe could try scaling the canvas element that gets returned. That would make the raster tiles a bit blurry, but at least keep the track data sharp.~ The data would be rasterized before it's returned, so this wouldn't work.

I think you'd need to reimplement leaflet-image to get this to work. There are some other libraries to check out though

erik avatar Jun 21 '23 14:06 erik