seInt(radius.value, 10));
            map.addLayer(heatLayer);
        
        }

        function createHeatmapLayer (data, blur, radius){
            var source = new ol.source.Vector({wrapX:false})
            var features = []
            for (var i in data) {
                var att = parseFloat(data[i].magnitude) ;
                for(var j in data[i].coordinates)
                {
                    var newFeature = createFeature([parseFloat(data[i].coordinates[j][0]),parseFloat(data[i].coordinates