reham1

updating Javascript api student data

Blog Post created by reham1 on Sep 8, 2014

Please note that when applying the javascript exercises from the student data there is some missing argument in function.

could you please add a comments for both the namespace and the missing argument. also one more note in OutputAViewshedAnalysis exercises don't change the variable neither the argument in the following snippet of code marked with red:

 

var myTemplates = [];

    dojo.forEach(myLayouts, function(lo) {

      var t = new PrintTemplate();

          t.layout = lo.name;

         t.label =   lo.label;

          t.format = lo.format;

          t.layoutOptions = lo.options

         myTemplates.push(t);

    });

 

if changed the example will not work

 

 

Thanks in advanced,

Reham

Outcomes