Hi,
I'm obviously confused about terminology. What's a MarkerOverlay (got to do with it)?
I was trying to follow the example 'ChangePointLabelPlacement'. Is that wrong.
What I am doing:
1. Adding a ShapeFileFeatureLayer which loads a .shape file which contains towns (and other things)
ShapeFileFeatureLayer placesLayer = new ShapeFileFeatureLayer(MapPath("~/App_Data/Maps/AAGazetteer, GB_point.shp"));
2. Setting zoom levels such that different towns/cities appear at different zoom levels
...
Collection<Style> capital = new Collection<Style>();
capital.Add(PointStyles.Capital1);
capital.Add(new TextStyle("NAME", new GeoFont("Arial", 9), new GeoSolidBrush(GeoColor.StandardColors.Black)));
...
ValueStyle zoom8 = new ValueStyle();
zoom8.ColumnName = "LEVEL";
zoom8.ValueItems.Add(new ValueItem("8", capital));
placesLayer.ZoomLevelSet.ZoomLevel09.CustomStyles.Add(zoom8);
placesLayer.ZoomLevelSet.ZoomLevel09.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
placesLayer.ZoomLevelSet.ZoomLevel09.DefaultTextStyle.XOffsetInPixel = PointLabelXAxisPixelOffset; // a const int of say 25
placesLayer.ZoomLevelSet.ZoomLevel09.DefaultTextStyle.PointPlacement = PointPlacement.CenterRight;
is this right/wrong?
cheers
Matt