Hello, it´s my first experience with Map Suite.
I want to load a map with the Map Web Editon, I have this code below, it is a copy of a quick start guide, if I use my file "ccaa00c01.shp" the control not dislplay the map, the control is empty. If I use de .shp of the quick start guide example the control display the map. I need show this map, it´s a problem of compatibility, is my .shp spoiled (can I check .shp ?), ...
Can someone help me, thanks.
protected
{
{
void Page_Load(object sender, EventArgs e)if (!IsPostBack)// Set the Map Unit. The reason for setting it to DecimalDegrees is that is what the shapefile's unit of measure is inherently in.
Map1.MapUnit =
GeographyUnit.DecimalDegree;// We create a new Layer and pass the path to a Shapefile into its constructor.
worldLayer.RequireIndex =
ShapeFileFeatureLayer worldLayer = new ShapeFileFeatureLayer(@"C:\Bajado Internet\Mapas\Mapas INE\mapas_completo_municipal\ccaa00c01.shp");false;// Set the worldLayer with a preset Style, as AreaStyles.Country1 has YellowGreen background and black border, our worldLayer will have the same render style.
worldLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle =
AreaStyles.Country1;// This setting will apply from ZoonLevel01 to ZoomLevel20, that means we can see the world the same style with ZoomLevel01 all the time no matter how far we zoom out/in.
worldLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel =
ApplyUntilZoomLevel.Level20;// We need to add the world layer to map's Static Overlay.
Map1.StaticOverlay.Layers.Add(worldLayer);
// Set a proper extent for the map, that's the place you want it to display.
Map1.CurrentExtent =
}
}
new RectangleShape(5, 78, 30, 26);