AnsweredAssumed Answered

infoTemplate

Question asked by timw1984dev on Apr 30, 2014
Latest reply on Apr 30, 2014 by timw1984dev
Hey everybody,

Is there a way to turn of the infoTemplate property of a FeatureLayer via a button?

      var cities = new FeatureLayer(           "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/0", {           mode: FeatureLayer.MODE_ONDEMAND,           infoTemplate:templateCity,           outFields: ["*"]       });


On start when I click on the city layer I want the popup to work, but when I push a button the popup won't work. How can I manipulate the infoTemplate property?

Thanks,

Tim

Outcomes