Como exibir o Heatmap no mapa de folhetos

Quero exibir no mapa do folheto um mapa de calo

I usei heatmap.js dehttps: //github.com/pa7/heatmap.j mas acaba exibindo

TypeError não capturado: não é possível atribuir para ler apenas a propriedade 'data' do objeto '#'

Então, eventualmente, acabo indo parahttps: //github.com/ursudio/leaflet-webgl-heatma.

// notei que quando depuro esse

método @setData do heatmapLayer tem isso como argumentos

s propriedades @TypeError: 'caller', 'callee' e 'argumentos' não podem ser acessadas em funções de modo estrito ou nos objetos de argumentos para chamadas para eles em Function.invokeGetter (: 2: 14)

Bow é o meu código

 // I initialize heatmap

 // first function where i define and create map and the heatmap 
 var heatmapLayer = new L.webGLHeatmap({
   size: 25, // diameter-in-pixels
   units: 'px',
    opacity: 0.5,
    alphaRange: 0.4 
});

  var myRenderer = L.canvas({ padding: 0.5 });
     var markers = L.markerClusterGroup( { 
        chunkedLoading: true,
        renderer: myRenderer,
        iconCreateFunction: function  (cluster) {
        var childCount = cluster.getChildCount();

        var c = ' marker-cluster-';
        if (childCount < 10) {
            c += 'small';
        } 
        else if (childCount < 100) {
            c += 'medium';
        } 
            else {
                c += 'large';
            }

            return new L.DivIcon({ html: '<div><span>' + childCount + '</span></div>', 
               className: 'marker-cluster' + c, iconSize: new L.Point(40, 40) 
});
}
         });


 var overlays   = {
                 "Fancy Markers": markers,
         "Fancy Heatmap": heatmapLayer
          };

    L.control.layers(baseLayer, overlays).addTo(map);
    component.set("v.map", map); 
    component.set('v.markers',markers);
    component.set('v.heatLayer',heatmapLayer);

segunda função

var heatmapLayer = component.get('v.heatLayer');
var locationsAccounts = new Array(accounts.length);    

 for (var i=0, len = accounts.length; i<len; i++) {
          locationsAccounts[i]=[account.ShippingLatitude, 
account.ShippingLongitude,1];

}

  heatmapLayer.setData(locationsAccounts); 

questionAnswers(0)

yourAnswerToTheQuestion