GraphicsClusterer.OnCreateGraphic MapPoint contains invalid XY coordinates

474
1
04-29-2010 04:17 PM
ScottMcEachern
New Contributor III
I have a class that implements the GraphicsClusterer.  This class is set to a GraphicsLayer in code.  This layer contains point geometry and a UniqueValueRenderer.  The OnCreateGraphics method accepts the "center" mapPoint parameter.  The XY coordinates for the MapPoint are invalid; NaN.  Additionally, the GraphicCollection contains all of the graphics for the layer.

A graphic is returned from the OnCreateGraphics but the MapPoint is invalid and no graphics are displayed on the map.  Anyone have a clue?

Thanks,
Scott
0 Kudos
1 Reply
ScottMcEachern
New Contributor III
I determined that the issue was with a graphic within the GraphicsLayer that did not contain geometry; the record was not geocoded.  When the graphic with no geometry was removed, the GraphicsClusterer worked.

Scott
0 Kudos