var attrInspector:AttributeInspector = new AttributeInspector(); ... attrInspector.featureLayers = [featLayer]; var g:Graphic = new Graphic(); attrInspector.showFeature(g, featLayer);
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;
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.