Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export as png x2 or more #70

Open
maxime1992 opened this issue Jun 10, 2023 · 1 comment
Open

Export as png x2 or more #70

maxime1992 opened this issue Jun 10, 2023 · 1 comment

Comments

@maxime1992
Copy link

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.

@erik
Copy link
Owner

erik commented Jun 21, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants