map.graphics.add(graphic); map.centerAndZoom(graphic.geometry.getCentroid(), 6); //What I want to do //map.setSelectedGraphic(graphic) map.infoWindow.show(graphic.geometry.getCentroid());
map.infoWindow.setFeatures(result); map.infoWindow.show(center);
Something like: map.infoWindow.setFeatures(result); map.infoWindow.show(center);
map.infoWindow.setFeatures([graphic]);
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.