Hi All,
as a result of a queryTask I got one graphic (polygon), I don't want to add to the map.
I need to get the center and then simulate a click (polygon center) on the map to show infoWindow, is it possible?
Thank,
Naty
Solved! Go to Solution.
I did it by myself!
var extent = graphicsUtils.graphicsExtent(featureSet.features) | |
var screenPoint = this.map.toScreen(extent.getCenter()); | |
this.map.infoWindow.setFeatures([graphic]); | |
this.map.infoWindow.show(screenPoint); |
I did it by myself!
var extent = graphicsUtils.graphicsExtent(featureSet.features) | |
var screenPoint = this.map.toScreen(extent.getCenter()); | |
this.map.infoWindow.setFeatures([graphic]); | |
this.map.infoWindow.show(screenPoint); |