Add a basic widget

The default widget is a general purpose widget that can be used to provide contextual information for your map.

To see available parameters run help(basic_widget).

In the example below, the default widget is used to provide general information for a map of Seattle road collisions.


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

set_default_credentials('cartoframes')

In [2]:
Layer(
    'seattle_collisions',
    widgets=[
        basic_widget(
            title='Road Collisions in 2018',
            description='An analysis of collisions in Seattle, WA',
            footer='Data source: City of Seattle'
        )
    ]
)


Out[2]:
:
StackTrace
    ">