Very dirty result of an afternoon playing with things to speed up rendering. This helps performance a lot, but needs some TLC to make it right.
Fixes so the cordova build works again (missing symlinked directory for tiles from @rclosner's machine).
Lots of comments to explain the nuts and bolts of the optimized rendering. All prefixed with "PERF:".
Merge branch 'master' into optimized-trail-rendering
New TrailsCanvasLayer for rendering trails in canvas.
The same fit padding should apply even if the canvas layer is off
Merge pull request #45 from Mr0grog/optimized-trail-rendering

Optimized trail rendering