Here’s what my GraticuleFeatureLayer currently looks like:
As you can see, it’s showing basically every long/lat line. What I want to have is what the example for the web version shows like so:
How can I go about doing this? Below is the relevant snippet from my code:
private void map_Loaded(object sender, RoutedEventArgs e)
{
Map1.Focus();
Map1.MapUnit = GeographyUnit.DecimalDegree;
ShapeFileFeatureLayer worldLayer = new ShapeFileFeatureLayer(@"C:/Users/dsweaver/Downloads/Countries02.shp");
AreaStyle areaStyle = new AreaStyle();
areaStyle.FillSolidBrush = new GeoSolidBrush(GeoColor.FromArgb(255, 233, 232, 214));
areaStyle.OutlinePen = new GeoPen(GeoColor.FromArgb(255, 118, 138, 69), 1);
areaStyle.OutlinePen.DashStyle = LineDashStyle.Solid;
worldLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = areaStyle;
worldLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
GraticuleFeatureLayer graticuleAdornmentLayer = new GraticuleFeatureLayer();
graticuleAdornmentLayer.GraticuleLineStyle.OuterPen.Color = GeoColor.FromArgb(125, GeoColor.StandardColors.Navy);
worldOverlay.Layers.Add(new BackgroundLayer(new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean)));
worldOverlay.Layers.Add(worldLayer);
worldOverlay.Layers.Add("graticule", graticuleAdornmentLayer);
Map1.Overlays.Add("WorldOverlay", worldOverlay);
Map1.Refresh();
}
Thanks!