Solved! Go to Solution.
private function sharedDataUpdated2(event:AppEvent):void { var dataTable:Hashtable = event.data.data as Hashtable; if (dataTable.containsKey("Find U.S. address")) { var recAC:ArrayCollection = dataTable.find("Find U.S. address") as ArrayCollection; var locateResult:* = recAC[0]; var mPoly:Polygon = new Polygon(null); // The tollerance of 12 is all dependant on how big of a right of way there // is from the road var ext2:Extent = createExtentAroundMapPoint(locateResult.point, 12) as Extent; var pA2:Array = []; pA2.push(new MapPoint(ext2.xmin,ext2.ymin,ext2.spatialReference)); pA2.push(new MapPoint(ext2.xmin,ext2.ymax,ext2.spatialReference)); pA2.push(new MapPoint(ext2.xmax,ext2.ymax,ext2.spatialReference)); pA2.push(new MapPoint(ext2.xmax,ext2.ymin,ext2.spatialReference)); pA2.push(new MapPoint(ext2.xmin,ext2.ymin,ext2.spatialReference)); mPoly.addRing(pA2); mPoly.spatialReference = ext2.spatialReference; clear(); identifyFeatures(mPoly); } }
if (dataTable.containsKey("Find U.S. address"))