map = {
let container = DOM.element('div', { style: `width:${width}px;height:${width/3}px` });
yield container;
let map = L.map(container).setView([30, 0], 3);
L.tileLayer('https://{s}.basemaps.cartocdn.com/rastertiles/voyager_nolabels/{z}/{x}/{y}.png', {
maxZoom: 18
}).addTo(map);
const client = new carto.Client({
apiKey: 'YOUR_API_KEY',
username: 'cartojs-test'
});
client.addLayer(
new carto.layer.Layer(
new carto.source.Dataset(table_name),
new carto.style.CartoCSS(cartoCSS)
));
client.getLeafletLayer().addTo(map)
}