Change map type in mapbox

Hallo,
I would like if there is a way to “dynamically” (i.e. by clicking) change the map type with mapbox, like they do here in js:

At the moment I can only do this “statically” by changing style in my source file:
mapbox=dict(

style= ‘mapbox://styles/mapbox/satellite-streets-v9’

)

Thanks,
prplbr