<!DOCTYPE html>
<html>
<head>
<title>Earthquakes heatmap</title>
<script src="js/jquery.js"></script>
<link rel="js/ol.css" type="text/css">
<script src="js/ol-debug.js"></script>
</head>
<body>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<div id="map" class="map"></div>
</div>
<div class="span4">
<form>
<label>radius size</label>
<input id="radius" type="range" min="1" max="50" step="1" value="5"/>
<label>blur size</label>
<input id="blur" type="range" min="1" max="50" step="1" value="15"/>
</form>
</div>
</div>
</div>
<script>
var heatData = {
type: "FeatureCollection",
features: [
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ -2.966700, 56.466702 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ -4.856786, 55.736744 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 14.716700, 55.116699 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 69.216698, 54.883301 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ -1.166700, 54.599998 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 18.549999, 54.533298 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 11.416700, 53.633301 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 8.583300, 53.549999 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 4.133300, 51.950001 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 2.350000, 51.049999 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ -1.400000, 50.899998 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ -1.333300, 50.816700 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 106.199997, 50.250000 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 82.599998, 50.000000 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 106.176331, 49.902462 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ -1.633300, 49.650002 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 21.250000, 48.700001 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ -4.500000, 48.383301 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ -100.783302, 46.799999 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 96.239334, 46.327366 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 14.433300, 45.333302 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ -65.967369, 45.242485 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ -100.349998, 44.366699 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ -116.216698, 43.616699 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 104.500000, 43.450001 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 20.433300, 41.683300 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 25.416700, 41.133301 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 16.866699, 41.099998 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ -74.011223, 40.663960 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 20.683300, 40.333302 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ -75.369164, 39.869167 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 69.000000, 39.750000 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 23.688377, 37.956287 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ -122.271477, 37.810452 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ -25.692211, 37.746300 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ -2.965954, 35.316483 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 70.466698, 34.433300 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 35.416698, 33.583302 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 35.450001, 33.383301 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 68.416702, 32.849998 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 35.000000, 32.766701 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 35.283298, 32.700001 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 36.233299, 32.283298 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 36.066700, 32.083302 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 34.866699, 31.916700 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 37.333302, 31.333300 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 34.799999, 31.250000 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 33.799999, 31.133301 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 41.033298, 30.983299 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 35.599998, 30.833334 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ -88.116699, 30.683300 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 40.133301, 30.000000 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ -94.783302, 29.316700 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 82.216698, 29.250000 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 33.223736, 28.807247 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ -16.250000, 28.466700 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 36.599998, 28.383301 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 33.616699, 28.233299 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ -15.416700, 28.150000 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 41.750000, 27.466700 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 44.133301, 26.333300 ] } }
,
{ "type": "Feature", "properties": { }, "geometry": { type: "Point", "coordinates": [ 50.083302, 26.333300 ] } }
,
{ "type": "Feature", "propertie