private function showHighlight(params:Array):void { var searchResult:ResultItem = params[0]; var showHighlightPoint:MapPoint = searchResult.center as MapPoint; var linkAlias:String = searchResult.attributes.linkAlias; popUpRenderer.popUpInfo = configurePopUpInfo(searchResult.attributes); popUpRenderer.graphic = searchResult.graphic; map.infoWindow.content = popUpRenderer; map.infoWindow.contentOwner = popUpRenderer.graphic; map.infoWindow.show(showHighlightPoint); clearTimeout(hitimer); hitimer = setTimeout(clearGraphics, 300); } private function clearGraphics():void { if (resultFeatureLayer) { resultFeatureLayer.featureCollection = new FeatureCollection(new FeatureSet(), resultFeatureLayer.layerDetails); // empty featureset to clear } }
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.