Skip to content


Subversion checkout URL

You can clone with
Download ZIP

How to use OpenHeatMap within your own site

petewarden edited this page · 20 revisions

The OpenHeatMap component is designed to be easily be reused by web developers who want to display map data within their own sites. Here’s what the code to embed your own heatmap looks like:

var mapWidth = 800;
var mapHeight = 600;

insertOpenHeatMapInto(‘#openheatmap_container’, mapWidth, mapHeight);


function onMapCreated()
var map = getOpenHeatMap();

map.loadWaysFromFile(‘’); map.loadValuesFromFile(‘hello_data.csv’);


Something went wrong with that request. Please try again.