AnsweredAssumed Answered

Activate contextual window for some layers only

Question asked by FloCAD on Jan 19, 2016
Latest reply on Jan 19, 2016 by rscheitlin

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":,           "infoTemplate": template      });; }, 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...

Thank you by advance for helping me !