I need some help with the ClusterPointStyle, I appear to be having an issue getting the numbers of features to make sense. Here is my scenario
10000 features scattered across the US
ClusterPointStyle added to a InMemoryFeatureLayers CustomStyles
ZoomLevelSets are 01 to 15.
InMemoryFeatureLayer clusterLayer = new InMemoryFeatureLayer();
ClusterPointStyle clusterPointStyle = new ClusterPointStyle(PointSymbolType.Triangle,
new GeoSolidBrush(GeoColor.FromArgb(150, GeoColor.StandardColors.Green)),
new GeoPen(GeoColor.StandardColors.Red, 2), 15);
//clusterPointStyle.TextStyle = new TextStyle("FeatureCount", new GeoFont("Arial", 8), new GeoSolidBrush(GeoColor.StandardColors.Black));
clusterPointStyle.TextStyle = TextStyles.CreateSimpleTextStyle("FeatureCount", "Arial", 8, DrawingFontStyles.Regular, GeoColor.StandardColors.Black, GeoColor.StandardColors.White, 3, 0, 0);
clusterPointStyle.TextStyle.DuplicateRule = LabelDuplicateRule.UnlimitedDuplicateLabels;
clusterPointStyle.TextStyle.PointPlacement = PointPlacement.LowerLeft;
clusterPointStyle.CellSize = 100;
clusterLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(clusterPointStyle);
clusterLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level15;
What I expect to see are triangle points scattered amongst the state lines indicating the number of features in each area. All 10000 features have been verified to have gps values that lie within the US. With the cell size set to 100, I see several of the cluster points, but when I add the numbers up from the labels, I am closer to 200 rather than the 10000 I expect. As I zoom in towards any given triangle, it behaves like I expect, new triangles are formed with new values. The problem is, the numbers don't really make any sense. I will zoom in towards a cluster of 50 (the label on the triangle says 50) and when it breaks apart into new triangles the numbers will indicate there are several hundred features in the area.
My question is, does anyone have a working sample of clusterPointStyle where the numbers are correct for the features in a given area? Also, what values appear to give the best results when working with cellsize, PointPlacement, DuplicateRule and other ClusterPointStyle members?