AnsweredAssumed Answered

Can't load new modules

Question asked by erocha_tecgeo on Oct 19, 2016
Latest reply on Oct 20, 2016 by rscheitlin

Hello everyone

 

I am with a problem to load a new module using WAB dijits.

 

My javascript file is defined like this:

 

console.log("loading myscrip.js ...");
define([
'dojo/_base/declare'
, 'esri/map'
, 'dojo/dom'
], function (declare, map, dom) {
return declare(null, {
filtrar: function () {
console.log("filter");
var lryToFilter = map.getLayer("filterparameter");
if (lryToFilter== null) {
console.log("can't filter");
}
else {
map.removeLayer(lryToFilter);
}
}
});
});

 

This file is on app/jmu.js folder and refered on index.html at: 

 

.

.

.

<script src="simpleLoader.js "></script>
<script src="init.js "></script>
<script src="jimu.js/myscrip.js"></script>

 

I am getting the following error:

Outcomes