dzieki :slight_smile: mam z ta biblioteka jeden mały problem w przerobieniu. Nie umiem pobrac srodków połozenia pól. Do biblioteki jest dołączona biblioteka d3-hexabin.js https://github.com/d3/d3-hexbin ma ona w sobie wbudowaną funkcję o ile dobrze tłumaczę dokumentacje

# hexbin.centers()

Returns an array of [x, y] points representing the centers of every hexagon in the extent.

Nie działa mi to… zwraca mi to aby jeden punkt [0,0].
Część kodu

// Create the hex layout
this._hexLayout = d3_hexbin()
.radius(this.options.radius)
.x(function(d) { return d.point[0]; })
.y(function(d) { return d.point[1]; });
centers: function() {
var points_table = [];
points_table = this._hexLayout.centers();

for (let i=0; i<points_table.length; i++) {
console.log('licznik pętli: ' + i);
console.log('element: ' + points_table[i]);
}

return points_table;
},
var hexLayer = L.hexbinLayer(options).addTo(map)
hexLayer.centers();

Jest ktoś w stanie mi pomóc ogarnąć tą jedną rzecz ? Strasznie mnie to blokuje, siedzę nad tym już któryś dzień ;/.