Ive been trying to import my shapefile into the ASP.net framework using Mapsuite ASP.net but a message comes up when debugging the program requesting for a .idx file. The .idx file is available in the same folder of that of the actual shapefile im trying to import
I tried using ShapeFileFeatureSource.BuildinIndexFile aswel as ShapeFileFeaturLayer.BuildIndexFile and .RequiredIndex set to false.
This removes the message of the .idx file missing but no shapefile is still displayed when i run the program
Below is my code
Thank you
@
@
using ThinkGeo.MapSuite.MvcEditionusing ThinkGeo.MapSuite.Core
<
div>
@{
Html.ThinkGeo().Map(
.MapBackground(
.CurrentExtent(5, 78, 30, 26)
.MapUnit(
.StaticOverlay(overlay =>
{
"Map1", 600, 500)new BackgroundLayer(new GeoSolidBrush(GeoColor.FromHtml("#E5E3DF"))))GeographyUnit.DecimalDegree)
ShapeFileFeatureLayer layer = new ShapeFileFeatureLayer(@"F:\Maps\1ST FLOOR\BUILDING\Building.shp");
ShapeFileFeatureLayer
.BuildIndexFile(@"F:\Maps\1ST FLOOR\BUILDING\Building.shp");
layer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle =
layer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel =
overlay.Layer(layer);
AreaStyles.Forest1;ApplyUntilZoomLevel.Level20;
})
.Render();
}
</
div>