Select to view content in your preferred language

infowindow setFeatures show

724
1
12-04-2013 11:10 AM
EdwardSohn1
Emerging Contributor
Doing something like to programmatically show infowindow at a given feature and to highlight that feature:

map.centerAndZoom(features[0].geometry, 12).then(function () {
                        var shape = features[0].getDojoShape();
                        if (shape) {
                            setTimeout(function () {
                                shape.moveToFront();                             
                                 map.infoWindow.setFeatures(features)
                                map.infoWindow.show(features[0].geometry);
                            }, 500);
                        }
                    });

This causes the infowindow to show on the feature and also for that feature to highlight.  But the infowindow is empty including the titel.
If I click on a feature manually then the infowindow shows with all associated attributes inside the content.
0 Kudos
1 Reply
EdwardSohn1
Emerging Contributor
Resolved:

using http://forums.arcgis.com/threads/54790-infoWindow-vs-infoTemplate?highlight=popup+setFeatures+empty

adding:
map.infoWindow.hide();
map.infoWindow.clearFeatures();

before setFeatures might have done it...
0 Kudos