New answers tagged


I solved the problem this way: var mBnd = map.getBounds(); //map is a leafLetJS map object. this coordinates are for temporal use, they will be replaced with a custom rectangle coordinates const bboxFilter = new carto.filter.BoundingBox(); bboxFilter.setBounds({ west: mBnd._southWest.lng, south:, east: mBnd._northEast.lng, north: mBnd....


In this example, there's a button that triggers a change by adding a simple Range filter. The 'statusChanged' event is needed when the data is loaded the first time. The 'dataChanged' event, once the data has been loaded. This is all explained in the guides and reference <!DOCTYPE html> <html> &...


What it's needed is to manage properly how to get the data asynchronously. This is an example that's adding 10 layers, each one with 10 different dataviews: <!DOCTYPE html> <html> <head> <title>Single layer | CARTO</title> <meta name="viewport" content="initial-scale=1.0"> <meta charset="utf-8"> &...


You have to wait for the dataView to load. It provides a statusChanged event for this this.widgetFormula.on('statusChanged', (status) => { if (status === 'loaded') { this.widgetFormula.getData(); // This should return data now } });

Top 50 recent answers are included