OpenStreetMap

Two small Potlatch 2 updates

Posted by Richard on 14 November 2018 in English.

Last week there was a small change to the API which means some GPS traces are now returned unordered whereas previously they may have been ordered. This obviously has implications for editors’ GPS display. Potlatch 2 now copes with this by doing some basic proximity testing in an attempt to ‘reorder’ the unordered points, which restores the GPS layer to some degree of sanity.

At the same time, I took the opportunity to fix something that’s been bugging me for months. Historically, Potlatch 2 draws all the features crossing the current viewport, and then removes the sprites when they’re no longer visible. This is fine except when you pan across a 2000km power line, which takes ages to draw as a dotted line at z19, and bogs down Flash’s display performance for evermore. For such large objects, P2 now only draws the on-screen part, which makes it a whole bunch snappier.

Discussion

Log in to leave a comment