Switching between multiple infowindow templates

3834
1
02-06-2015 04:55 PM
EdwardSohn2
New Contributor III

Need to switch between multiple infowindow templates depending on which layer is clicked on.

SetContent seems to clear the the domNode of the content for the infoWindow so that once it's used it gets cleared.  The second time it gets nulled and the infowindow is empty content.

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Edward,

   It sounds like you need to look into using PopUpTemplate and get away from using setcontent.

PopupTemplate | API Reference | ArcGIS API for JavaScript

0 Kudos