[OSM-talk] Osm2go: mobile mapping with Nokia n800/n810
Andrew Chadwick (mailing lists)
andrewc-email-lists at piffle.org
Sun Nov 23 20:29:07 GMT 2008
Till Harbaum / Lists wrote:
> I do have a small problem with it: I i try to zoom out and hit the zoom limit,
> the canvas slowly scrolls a tiny step top and left with every trial to zoom
> further out.
Okay, give this a spin. The attached patch applies cleanly against
vanilla osm2go-0.5-5 from the source .dsc/.tar.gz once again. Rather
than fight with the rounding errors that were causing this, I've added
some recentreing code to make attempts to zoom out beyond the limit
recentre gently pan the map towards the centre in controllable
increments. Once it hits the centre, all is still. You might want to add
a message flash at either the no-more-zoom point, the no-more-recentring
point, or both; should be obvious when those happen.
The feel on zooming out shouldn't be much different to what currently
happens in vanilla osm2go actually, but now there's freedom to pan the
map around when a project is opened. There are a few hardcoded constants
that you might want to tweak for speed and prettiness on actual n8X0
hardware; I'll leave that to you because I don't have the SDK here right
now.
--
Andrew Chadwick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osm2go-0.5-5+pan1st+recentre.patch.gz
Type: application/x-gzip
Size: 3034 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20081123/2f7cc4d5/attachment.bin>
More information about the talk
mailing list