if (this.mapConfig.customLayers) {
var customLayers = this.mapConfig.customLayers;
for (var i = 0; i < customLayers.length; i++) {
var customLayer = customLayers[i];
var layer;
if (customLayer.options && customLayer.options.imageParameters) {
var params = new esri.layers.ImageParameters();
var keys = Object.keys(customLayer.options.imageParameters);
arrayUtil.forEach(keys, function (key) {
params[key] = customLayer.options.imageParameters[key];
});
customLayer.options.imageParameters = params;
}
layer = new esri.layers.ArcGISDynamicMapServiceLayer(customLayer.url, customLayer.options);
if (layer) {
this.map.addLayer(layer);
}
}
}
Please add functionality to add feature layers to show features on top of the basemap.
Here is an example of what i did.
In AppConfig.js i added...
Then in EsriMap.js i added this...