Hello,
I’m new to Map Suite and shapefiles. I have a few shapefiles that do not display correctly. As I zoom and pan they become corrupted, see attached image with 3 screenshots. The code is below.
The image shows 3 versions of the same shapefile as I zoom and pan
Does Map Suite something specific about the shapefiles it supports?
I attached the example shapefile as well
Thank you
// setup
wpfMap1.MapUnit = GeographyUnit.DecimalDegree;
wpfMap1.CurrentExtent = new RectangleShape( -- removed -- );
LayerOverlay layerOverlayShapefiles = new LayerOverlay();
// add listener to map
wpfMap1.CurrentExtentChanged += new EventHandler(wpfMap1_CurrentExtentChanged);
ShapeFileFeatureLayer shp4 = new ShapeFileFeatureLayer(@"C:\test1.shp");
GeoPen p3 = new GeoPen(new GeoColor(0, 0, 255)); // blue
AreaStyle style3 = new AreaStyle(p3);
shp4.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = style3;
shp4.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
layerOverlayShapefiles.Layers.Add(shp4);
// finalize
wpfMap1.Overlays.Add("x2", layerOverlayShapefiles);
wpfMap1.Refresh();
test1shp.zip (1.06 KB)