1

Unfortunately, CARTO.js does not support feature over multiple layers. I have replicated your problem in this glitch example. CARTO VL, on the other hand, supports this type of interactivity. You can see a working example here. You can open a bug ticket in CARTO.js v4 github repository, but that project has not being updated for a while.


1

CARTO.js does not retrieve raw data from the account, on that code you are just setting the map data definition. To get raw data you need to use the SQL API. There is no dedicated SDK for that API because of its extreme simplicity. You have code examples on using fetch and other libraries to do that on this help center article. Disclaimer: I work at CARTO.


1

Disclaimer: I work at CARTO Not at this moment. The current procedure in CARTO.js is to add the different layers one by one, both with the corresponding SQL and CartoCSS. This may change in the future but so far that's the procedure.


1

Disclaimer: I work at CARTO CARTO.js does not provide UI for widgets, it gives you the data model and the events to trigger changes and it's up to the developer to decide how to display that model in the UI. This gives all the flexibility to use the technology you feel more comfortable, some use D3, others higher level libraries like Vega, Highcharts, etc. ...


Only top voted, non community-wiki answers of a minimum length are eligible