Hi Robert,
I just tried this line of code to see how it's like and already it gives me error : "Expected identifier or string".
Could you please tell me what is wrong with my codes ?
Much appreciated!
_initLayers: function(layerInfoArray) {
this.layerInfoArray = layerInfoArray;
this.layerItems = [];
this.selectionSymbols = {};
html.empty(this.layerItemsNode);
array.forEach(layerInfoArray, lang.hitch(this, function(layerInfo) {
var visible = layerInfo.isShowInMap() && layerInfo.isInScale();
var item = new SelectableLayerItem({
layerInfo: layerInfo,
if (item.layerName ==='Accounts'){
checked: visible;
}
else {
checked: false;
}
layerVisible: visible,
folderUrl: this.folderUrl,
allowExport: this.config ? this.config.allowExport : false,
map: this.map,
nls: this.nls
});