Hi,
I tried to load a .shp the same way the quickstart guide did, but the map didn't load. I only see "unlicensed" tiles on the screen.
I changed the extent, and also played with the GeographyUnit enumeration, but without success.
I can open the shapefile on Map Suite Explorer. The Routing Add-on also worked on my data.
So, what can I try to do in order to open and display the .shp myself in my application? Everything seems file in the .shp.
Thanks
.shp not being shown
My .shp represents lines, so I had to set the LineStyle to something like:
worldLayer.ZoomLevelSet.ZoomLevel01.DefaultLineStyle = LineStyles.MajorRoad4;
Hi Gustavo,
Thanks for your post.
I think you are on the right way of playing with Map Suite. Have you tried setting the bounding box of the shape file to the current extent of the map control? The code could be like this:
worldLayer.Open();
winformsMap1.CurrentExtent = worldLayer.GetBoundingBox();
worldLayer.Close();
If this doesn’t make any sense, could you please paste some of your code here so that we can check it to see if there is anything wrong? Also attaching the shape file is very helpful if convenient.
Any more information is much appreciated.
Thanks,
Sun