We can define a lists of baselayers via the layers attribute, so the user will see a control to switch the active layer on the top right corner, like in this example.
You can see a standalone example of this code here.