I am trying to use the replicate the functionality of wabWidget as it is used in the AddData widget in the AddFromUrlPanel.js under the addClicked function.
In that widget, the use of:
var map = this.wabWidget.map;
the map variable produces all the info for the map.
However if I attempt to use the above scripting for for a custom function to get the variable map, I get the error:
What am I missing to get the same output for the map?