The onShow event for the tab itself is what you want. Tab container doesn't have an event to return the "active" tab and/or to let you know that a tab has been changed. It does have myTabs.selectedChildWidget, which is the selected tab (literally the widget).on(tab1, 'show', function() {
//do stuff
});
on(tab2, 'show', function() {
//do stuff
});
//and so on
Then perhaps call a function to handle the web map creation.on(tab3, 'show', function() {
switchWebMap('WEB_MAP_ID');
});
switchWebMap function(id) {
//do stuff
}
Sorry, I don't know much about ago web maps, but hope this helps with your tabs.Have you been to the dojo Reference Guide and the API Documentation. Most everything you need for developing with dojo.