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

Attachment: osm2go-0.5-5+pan1st+recentre.patch.gz
Description: GNU Zip compressed data

_______________________________________________
talk mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/talk

Reply via email to