Felipe Barriga Richards has been playing with OSM heatmaps in
OpenLayers. Have a look.
http://blog.felipebarriga.cl/olheatmap_demo/
Map screenshot from Felipe’s site
© OpenStreetMap contributors, CC-BY-SA
http://www.openstreetmap.org/
http://creativecommons.org/licenses/by-sa/2.0/