themap.MapUnit = GeographyUnit.DecimalDegree; layer = new ShapeFileFeatureLayer(“A.shp”); // Get this path right… for a test, try the full path if nothing loads just to be sure this isn’t the problem layer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.Country1; layer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20; layer.RequireIndex = false; // You really want to build an index for any normal sized shape file… this is a huge performace boost. themap.StaticOverlay.Layers.Add(“LayerName”, layer); themap.Refresh();
Thanks a lot for your sample. Actually my mistake was to set ZoomLevelSet.ZoomLevel01 to the map instead of the layer ! But for the extent I really need to set it, because if not I can see only a part of the map.