AnsweredAssumed Answered

Disable infotemplate for one of ArcGISDynamicMapServiceLayer

Question asked by kfpearson on Dec 2, 2015
Latest reply on Dec 3, 2015 by rscheitlin

I have a service with 2 layers that I add to my application with a ArcGISDynamicMapServiceLayer.


var myLayer = new ArcGISDynamicMapServiceLayer("http....."{});


I only want to set up a InfoTemplate for layer [1] and not [0] but make them both visible.  It still displays a infotemplate with "no information available" for [0].



                1: { infoTemplate: protrackInfoTemplate }


            myLayer.setVisibleLayers([0, 1]);


I've also tried 0: { infoTemplate: null } but it still displays a blank infotemplate.


I've looked through the documentation and I can't determine how to disable [0] while still making it visible.