[josm-dev] [PATCH] tweak tile imagery autozoom behavior

Dave Hansen dave at sr71.net
Sat Aug 20 19:38:56 BST 2011


>From the code comment:

In general, smaller zoom levels are more readable.  We prefer big,
block, pixelated (but readable) map text to small, smeared,
unreadable underzoomed text.  So, use .floor() instead of rounding
to skew things a bit toward the lower zooms.

The second hunk changes the range in which we start looking for an
autozoom.  The old code was fairly picky about when it tried to change
autozoom levels.  It was expensive to calculate.  The new code is _much_
nicer and cleaner.  But, it also removed some code that tended to let it
autozoom sooner.  The end result is that we are sticking with high zoom
levels too aggressively which leads to quite unreadable text.  This
tweaks the pixelScaling limits to go looking for more autozoom levels
more often.

-- Dave
-------------- next part --------------
A non-text attachment was scrubbed...
Name: autozoom-tweak-0.patch
Type: text/x-patch
Size: 1177 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/josm-dev/attachments/20110820/9ca4c0b8/attachment.bin>


More information about the josm-dev mailing list