High Performance Map Interactions Using HTML5 Canvas
chairnerd.seatgeek.com
High Performance Map Interactions Using HTML5 Canvas
1–10 of 26 posts
Re: High Performance Map Interactions Using HTML5 Canvas
#2I've tried the Leaflet SVG layer and it can become quite slow when loaded with thousands of points.
Another approach would be to use a custom SVG layer overlay using CSS Transforms. I've used an SVG overlay with D3 and it was much faster at panning and zooming. It could handle ~30k points (and lots of lines) without a problem on my laptop.
Edit + an example: http://i.imgur.com/ey8YDWJ.jpg
Re: High Performance Map Interactions Using HTML5 Canvas
#3Re: High Performance Map Interactions Using HTML5 Canvas
#4@Developers, I'm sorry if I missed it in the article, but can I see the online demo somewhere? I went to your website and maps but still couldn't get to it. Thanks.
Re: High Performance Map Interactions Using HTML5 Canvas
#5One question, on your previous version you had a ton of big purple timeline bars. Were those mostly "recalculate styles" or "update layer trees"? I'm having similar issues and I'm wondering if canvas may be a better decision than DOM.
Re: High Performance Map Interactions Using HTML5 Canvas
#6Re: High Performance Map Interactions Using HTML5 Canvas
#7I knew that Canvas can easily be redrawn 60fps for things like games (though it may overheat your laptop). Didn't know about using them as shiftable tiles though. What a great way to minimize redraw! Is this how most online maps work?
Re: High Performance Map Interactions Using HTML5 Canvas
#8Re: High Performance Map Interactions Using HTML5 Canvas
#9Re: High Performance Map Interactions Using HTML5 Canvas
#10Bit off-topic, but do any of the readers of this topic know of a good combination of an open source (backend) tile server and a (frontend) JS zooming library for dealing with large high-resolution images, of say, something like old paintings?
http://www.thekremercollection.com/art/artists/Pieter-Codde/...
It's actually based on Google Maps API, which isn't open source, but OpenLayers has equivalent functionality though I find it less fluid and slower...