map.graphics.add(graphic); map.centerAndZoom(graphic.geometry.getCentroid(), 6); //What I want to do //map.setSelectedGraphic(graphic) map.infoWindow.show(graphic.geometry.getCentroid());
Solved! Go to Solution.
map.infoWindow.setFeatures(result); map.infoWindow.show(center);
map.infoWindow.setFeatures(result); map.infoWindow.show(center);
Something like:map.infoWindow.setFeatures(result); map.infoWindow.show(center);
map.infoWindow.setFeatures([graphic]);