News for hackers. Stuff that matters.
Re:High Performance Map Interactions Using HTML5 Canvas by albertoleal on Tuesday August 19, 2014 @02:42PM (#8199034)
Are canvas tiles more performant than one giant canvas sized to fit within a user's browser?
Re:High Performance Map Interactions Using HTML5 Canvas by efkv on Tuesday August 19, 2014 @03:01PM (#8199141)
So basically what we wanted to avoid was doing lots of redrawing during panning. If there were a single static canvas with the image tiles moving underneath it, then it would have to constantly redraw during panning. By using tiles, you only have to draw or redraw as necessary, e.g. as you pan to a part of the map outside of the current bounds.