Print resolution - scale factor for tiles

221 views
Skip to first unread message

Ziggy Jonsson

unread,
Mar 20, 2012, 3:24:37 PM3/20/12
to leafl...@googlegroups.com
When I print a leaflet map from a webpage the DPI is very low and the results are grainy.
Is there any simple way of tricking leaflet into scaling the pics down (and increasing the number of tiles fetched) such that effective "DPI" is higher?
The difference would not be noticeable on screen (or slighly worse as the images would be scaled down) but my bet is that the print DPI would be improved.

Ziggy Jonsson

unread,
May 10, 2012, 10:01:59 AM5/10/12
to leafl...@googlegroups.com
Solved.  I multiply the DIV height and width by a scale factor and then set the css3 property zoom to 1 / scale factor.

Valerio De Luca

unread,
Feb 20, 2016, 4:51:08 AM2/20/16
to Leaflet
hi ziggy,
have any solution at thi time?
I tryed this:
https://github.com/aratcliffe/Leaflet.print
but when I zoom seems not work fine
tks bye
valerio
Reply all
Reply to author
Forward
0 new messages