AnsweredAssumed Answered

Overriding a feature's infoTemplate using map.infoWindow.setContent()

Question asked by sarahclark on Sep 23, 2014
Latest reply on Dec 22, 2014 by thebillcarr

I have found that if I have an infoTemplate set for a feature layer, when I try to use map.infoWindow.setContent(attributeInspector) the infoTemplate content overrides it and continues to display.

 

If I first set

feature.setInfoTemplate() 

 

with the blank parameters and then change the content, it works. Anyone know how to use map.infoWindow.destroyDijits or other methods to create a more elegant solution?

 

This JSFiddle demonstrates an infoTemplate overriding the setContent() method.

 

Edit fiddle - JSFiddle

Outcomes