Why does GetClusterShape return null when the cluster specification was retrieved through the GetClu

Posted by Markus Olsson on Stack Overflow See other posts from Stack Overflow or by Markus Olsson
Published on 2009-04-22T15:20:53Z Indexed on 2010/03/12 18:47 UTC
Read the original article Hit count: 331

Filed under:
|

Suppose I have a virtual earth shape layer called shapeLayer1 (my creative energy is apparently at an alltime low).

When i call the GetClusteredShapes method I get an array of VEClusterSpecification objects that represent each and every one of my currently visible clusters; no problem there. But when I call the GetClusterShape() method it returns null... null! Why on earth would it do that? I used firebug to confirm that the private variable of the VEClusterSpecification that's supposed to hold a reference to the shape is indeed null so it's not the method that's causing the problem.

Some have suggested that this is actually documented behavior

Returns null if a VEClusterSpecification object was returned from the VEShapeLayer.GetClusteredShapes Method

But looking at the current MSDN documentation for the VEShape class it says:

Returns if a VEClusterSpecification object was returned from the VEShapeLayer.GetClusteredShapes Method

Is this a bug or a feature? Is there any known workarounds or (if it is a bug) some plan on when they are going to fix it?

© Stack Overflow or respective owner

Related posts about virtual-earth

Related posts about JavaScript