Click on the buttons to change the active map layer. You can see a standalone example of this code here.