Finally moved to Flex 4 and the 2.5 API...I have a function that grabs all the graphics from a particular point, picks out the objects with a point geometry, and displays the graphic's symbol and attribute information in the map's info window. The code to get and display the graphic is the following:private function createSwatchFromGraphic(g:Graphic, m:Map):UIComponent { var swatch:UIComponent = new UIComponent; var sym:Symbol = g.symbol; sym.draw(swatch, new MapPoint(), null, m); swatch.x = swatch.y = 0; return swatch; }
I'm sure I got this code from one of Master Scheitlin's posts :o, and it's always worked just fine. Now I find it only works if the current map extent includes the original map extent's center. Any ideas?