I can easily load the Polygons' Tabfile, but I have problem in loading Point and Polyline Tabfiles.
My Code is:
wpfMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.SimpleColors.Transparent);
wpfMap1.MapUnit = GeographyUnit.DecimalDegree;
TabFileFeatureLayer worldLayer = new TabFileFeatureLayer(Addreess, null);
worldLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.NoData1;
worldLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
LayerOverlay staticOverlay = new LayerOverlay();
staticOverlay.Layers.Add("WorldLayer", worldLayer);
wpfMap1.Overlays.Add(staticOverlay);
worldLayer.Open();
wpfMap1.CurrentExtent = worldLayer.GetBoundingBox();
worldLayer.Close();
wpfMap1.Refresh();
I changed the MapUnit to Meter and Feet , but it did not have any effect.
In addition, we use the shapeFileLayer.GetShapeFileType() to find the type of Shape File, is there any method to find the TabFile's Type?