Hi every one ,I have downloaded complete_world_lanmass_polygons from osmdata.thinkgeo.com , this file contains the world map shape file I tried to show processed_p.shp but its not showing up.
here is my code
Map1.MapUnit = GeographyUnit.DecimalDegree;
ShapeFileFeatureLayer worldLayer = new ShapeFileFeatureLayer(HttpContext.Current.Server.MapPath(“WorldLayers\processed_p.shp”));
worldLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.Country1;
worldLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
worldLayer.Open();
Map1.CurrentExtent = new RectangleShape(worldLayer.GetBoundingBox().GetWellKnownBinary());
Map1.StaticOverlay.Layers.Add(worldLayer);
worldLayer.Close();
OpenStreetMap layer not shown
Hi Saied,
Thanks for your post and welcome to MapSuite Worold.
Would you please change
Map1.MapUnit = GeographyUnit.DecimalDegree;
Into
Map1.MapUnit = GeographyUnit.Meter;
Now it should work.if you have any more question , please feel free to let us know.
Best Regards
Summer