Skip to main content
100%

Add layer | CARTO

✓ Published0🌍 Public
Aandrewbt
Last edited Aug 2, 2019
Created on Aug 2, 2019

This example shows how to add a single CARTO layer to an interactive map. It displays populated places as points on a global basemap, centered at [0,0] with zoom level 1. The visualization uses Mapbox GL JS for map rendering and the CARTO VL library (v1.4.1) to define a data source from the `populated_places` dataset and add it as a layer to the map. The basemap uses CARTO’s `voyager` style, and the layer is added before the `watername_ocean` layer. A loading spinner hides once the layer finishes loading.

AI-generated description

Similar vizzes