var attrInspector:AttributeInspector = new AttributeInspector(); ... attrInspector.featureLayers = [featLayer]; var g:Graphic = new Graphic(); attrInspector.showFeature(g, featLayer);
Solved! Go to Solution.
Update :
I have tried to add it to the InfoWindow :var attr:AttributeInspector = new AttributeInspector(); attr.featureLayers = [featLayer]; var g:Graphic = new Graphic(); var attributes:Object = {}; attributes["OBJECTID"] = ""; g.attributes = attributes; attr.showFeature(g, featLayer); map.infoWindow.visible = true; map.infoWindow.anchorX = 15; map.infoWindow.anchorY = 200; map.infoWindow.content = attr;
but the infoWindow is displayed empty.
var attr:AttributeInspector = new AttributeInspector(); attr.featureLayers = [featLayer]; var g:Graphic = new Graphic(); var attributes:Object = {}; attributes["OBJECTID"] = ""; g.attributes = attributes; attr.showFeature(g, featLayer); map.infoWindow.visible = true; map.infoWindow.anchorX = 15; map.infoWindow.anchorY = 200; map.infoWindow.content = attr;
Update :
I have tried to add it to the InfoWindow :var attr:AttributeInspector = new AttributeInspector(); attr.featureLayers = [featLayer]; var g:Graphic = new Graphic(); var attributes:Object = {}; attributes["OBJECTID"] = ""; g.attributes = attributes; attr.showFeature(g, featLayer); map.infoWindow.visible = true; map.infoWindow.anchorX = 15; map.infoWindow.anchorY = 200; map.infoWindow.content = attr;
but the infoWindow is displayed empty.