Hello everyone !
I would like to create a popup (with the infoTemplate) for some of my layers created through ArcGISDynamicMapServiceLayer.
I'm creating a loop that looks like this :
array.forEach(this.config.operationalLayers, function (layer, i) {
var template = new InfoTemplate("Attributs", "${*}");
var dynamicLayer = new ArcGISDynamicMapServiceLayer(layer.url, {
"opacity": layer.opacity,
"visible": layer.visible,
"id": layer.name,
"infoTemplate": template
});
this.map.addLayer(dynamicLayer);
}, this);The problem is that I want to create some personnalized template for some layers but not all and I don't know if an ifclause in the infoTemplate is usable...
I don't know if is it clear but I don't know how to explain it clearly...