This seems it should be very simple to do but I can't figure it out. Any help is greatly appreciated. I have inferred that this is possible due to the line style: LineStyles.InternationalBorder. What else would you use this on except for a polygon border. This is what I have tried:
ShapeFileFeatureLayer layer = new ShapeFileFeatureLayer(@"C:\data\City Border.shp");
layer.ZoomLevelSet.ZoomLevel01.DefaultLineStyle = LineStyles.InternationalBorder1;
layer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
LayerOverlay staticOverlay = new LayerOverlay();
staticOverlay.Layers.Add("Layer1", layer);
winformsMap1.Overlays.Add(staticOverlay);
layer.RequireIndex = false;
layer.Open();
winformsMap1.CurrentExtent = layer.GetBoundingBox();
layer.Close();
winformsMap1.Refresh();
Result in a blank map.I have also tried:
layer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add( LineStyles.InternationalBorder1);
Same result.
Anyone? Thanks!
Eric