Quickstart Sample for WebForms
Description
The Map Suite Web QuickStart Guide will guide you through the process of creating a sample application and will help you become familiar with Map Suite.
Please refer to Wiki for the details.
Requirements
This sample makes use of the following NuGet Packages
About the Code
ShapeFileFeatureLayer worldLayer = new ShapeFileFeatureLayer(MapPath("~/App_Data/Countries02.shp"));
AreaStyle areaStyle = new AreaStyle();
areaStyle.FillSolidBrush = new GeoSolidBrush(GeoColor.FromArgb(255, 233, 232, 214));
areaStyle.OutlinePen = new GeoPen(GeoColor.FromArgb(255, 118, 138, 69), 1);
areaStyle.OutlinePen.DashStyle = LineDashStyle.Solid;
worldLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = areaStyle;
worldLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
ShapeFileFeatureLayer capitalLayer = new ShapeFileFeatureLayer(MapPath("~/App_Data/WorldCapitals.shp"));
capitalLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = PointStyles.CreateSimpleCircleStyle(GeoColor.StandardColors.White, 7, GeoColor.StandardColors.Brown);
capitalLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level05;
PointStyle pointStyle = new PointStyle();
pointStyle.SymbolType = PointSymbolType.Square;
pointStyle.SymbolSolidBrush = new GeoSolidBrush(GeoColor.StandardColors.White);
pointStyle.SymbolPen = new GeoPen(GeoColor.StandardColors.Black, 1);
pointStyle.SymbolSize = 6;
Getting Help
Map Suite Web for WebForms Wiki Resources
Map Suite Web for WebForms Product Description
Key APIs
This example makes use of the following APIs:
- ThinkGeo.MapSuite.Styles.AreaStyle
- ThinkGeo.MapSuite.Layers.ShapeFileFeatureLayer
- ThinkGeo.MapSuite.Drawing.GeoColor
- ThinkGeo.MapSuite.Styles.PointStyle
About Map Suite
Map Suite is a set of powerful development components and services for the .Net Framework.
About ThinkGeo
ThinkGeo is a GIS (Geographic Information Systems) company founded in 2004 and located in Frisco, TX. Our clients are in more than 40 industries including agriculture, energy, transportation, government, engineering, software development, and defense.