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); } }
James,
So here it is, I ended up only having to add code to the Identify widget and I tried to comment all my changes. The big thing is this line needs to be the name of your locate widget:if (dataTable.containsKey("Find U.S. address"))
What you are attempting to identify needs to be on and visible. Basically when you locate an address the XY map point is fired off to the identify widget and buffered 12 units in attempt to get far enough away from the street center line to pickup a parcel.
Don't forget to click the top arrow (promote) and to click the Mark as answer check as shown below: