Add a Layer

This example illustrates how to add one Layer to a Map.

For more information, run help(Layer).


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

set_default_credentials('cartoframes')

In [2]:
Map(
    Layer('global_power_plants')
)


Out[2]:
:
StackTrace
    ">

    If you want to render only one layer, you can use directly the Layer class.

    
    
    In [3]:
    Layer('global_power_plants')
    
    
    
    
    Out[3]:
    :
    StackTrace
      ">