AnsweredAssumed Answered

Adding Layers Using Javascript

Question asked by graynic on Jul 15, 2016
Latest reply on Jul 20, 2016 by graynic

Hello,

 

With Javascript, is there an advantage to adding layers in the constructor of a map using an array vs using map.add()?

 

var map = new Map({

layers: [housingLyr]

});

 

VS

 

map.add(housingLyr);

 

Thanks,

Nick

Outcomes