AnsweredAssumed Answered

Call dojo/on in Web App builder

Question asked by juanma93_6 on May 30, 2018
Latest reply on May 31, 2018 by rscheitlin

Hi Guys, i set this code line in the mapManager.js in the WAB Application

 

_show2DWebMap: function(appConfig) {
//should use appConfig instead of this.appConfig, because appConfig is new.
// if (appConfig.portalUrl) {
// var url = portalUrlUtils.getStandardPortalUrl(appConfig.portalUrl);
// agolUtils.arcgisUrl = url + "/sharing/content/items/";
// }

on(this.map, "load", lang.hitch(this, function() {
//do something to addedLayers
}));

 

but i get this error:

 

The big problem is that i have declare dojo on the define function, i dont know what is the error, thank you.

Outcomes