Hello,
I'm looking at your DisplayASimpleMapController sample and i'm wondering how can i load a shape file to build my map.
I used your initial code (in the controller) and added something like this:
Map map = new Map("Map1",
new System.Web.UI.WebControls.Unit(100, System.Web.UI.WebControls.UnitType.Percentage),
new System.Web.UI.WebControls.Unit(100, System.Web.UI.WebControls.UnitType.Percentage));
map.MapUnit = GeographyUnit.DecimalDegree;
map.CurrentExtent = new RectangleShape(-125, 72, 50, -46);
map.MapBackground = new BackgroundLayer(new GeoSolidBrush(GeoColor.FromHtml("#E5E3DF")));
map.CustomOverlays.Add(new WorldMapKitWmsWebOverlay());
ShapeFileFeatureLayer coastLineLayer = new ShapeFileFeatureLayer("C:\\polygonlayer.shp");
LayerOverlay layerOverlay1 = new LayerOverlay();
layerOverlay1.Layers.Add(layerOverlay1);
map.CustomOverlays.Add( coastLineLayer);
return View(map);
However, i'm having some trouble loading the layers.
Can you give me some insight on what i'm doing wrong?
Regards,