Hi
I try to make a small sample with my map. As I don't know the extent of the map I take it from the shapefile :
themap.MapUnit = GeographyUnit.Meter;
ShapeFileFeatureLayer lay= new ShapeFileFeatureLayer("A.shp");
lay.RequireIndex = false;
themap.StaticOverlay.Layers.Add(lay);
themap.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.Country1;
themap.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
lay.Open();
themap.CurrentExtent = lay.GetBoundingBox();
themap.Refresh();
There is no error but the map does not display. Thanks for any help.
(ps map attached)
383-A.zip (641 Bytes)