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(default_widget)
.
In the example below, the default widget is used to provide general information for a map of Seattle road collisions.
from cartoframes.auth import set_default_credentials
from cartoframes.viz import Map, Layer
set_default_credentials('cartoframes')
from cartoframes.viz.widgets import default_widget
Map(
Layer(
'seattle_collisions',
widgets=[
default_widget(
title='Road Collisions in 2018',
description='An analysis of collisions in Seattle, WA',
footer='Data source: City of Seattle'
)
]
)
)