Change default CARTO basemap

By default, CARTOframes uses CARTO's Positron basemap with labels under. The basemap can be customized to use another CARTO style (Voyager, Dark Matter), a Mapbox basemap, or a custom background color; all through the basemap parameter.

In the example below, the default is changed from Positron to Voyager.


In [1]:
from cartoframes.auth import set_default_credentials
from cartoframes.viz import Map, Layer, basemaps

set_default_credentials('cartoframes')

In [2]:
Map(
    Layer('pittsburgh_311'),
    basemap=basemaps.voyager
)


Out[2]:
:
StackTrace
    ">