0

It was possible to add labels to polygon visualizations in Carto.js 3.x via the CartoCSS; is there a way to add them in Carto VL visualizations? From what I can tell, Carto VL doesn't have the CartoCSS styling options and I don't know what the alternative or workaround would be.

0

Disclaimer: I work at CARTO.

Unfortunately, there is not yet support for labels within CARTOVL. It's definitely on the team roadmap, but we need some time to figure out the best approach to implement this and for sure it will be properly announced very likely in CARTO's main blog, but be sure to follow also our inside blog.

0

With the new CARTO VL v1.1 we have just released, we added a new method to features called getRenderedCentroid. That allows creating a dynamic geojson layer, which then can be used to apply the common Mapbox GL labeling capabilities.

We have prepared a few examples in our Dev Center, such as this one: https://carto.com/developers/carto-vl/examples/#example-point-labels

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.