MapSuiteWebForWebForms is based on .NET Framework. This package allows you to add maps and perform GIS spatial operations within your WebForms application. It provides classes to work with most GIS data formats, display popups, allow spatial drawing, manage projections, perform spatial operation and much more. Visit our website and wiki, link below, to learn more and watch Map Suite in action. Package Documentation: http://wiki.thinkgeo.com/wiki/map_suite_web_for_webforms#standard Wiki Documentation: http://wiki.thinkgeo.com/wiki/map_suite_web_for_webforms Supported Platforms: Windows, Linux, macOS Other ThinkGeo Products: - Map Suite UI Components - Map Suite Desktop Map Suite Mobile Map Suite Web - Map Suite Servers and Services - Map Suite World Streets Map Suite World Imagery Map Suite Routing Map Suite Geocoder Map Suite Reverse Geocoder Map Suite Elevation


Keywords
.NET, ASP.NET, Control, GIS, Map, MapSuite, Mapping, Spatial, Suite, ThinkGeo, Web, WebForms, how-do-i, map-suite
Install
Install-Package MapSuiteWebForWebForms-Standard -Version 10.3.0

Documentation

How Do I Sample for WebForms

Description

The "How Do I?" samples collection is a comprehensive set containing dozens of interactive samples.

Please refer to Wiki for the details.

Screenshot

Requirements

This sample makes use of the following NuGet Packages

MapSuite 10.0.0

About the Code

ShapeFileFeatureLayer worldLayer = new ShapeFileFeatureLayer(MapPath("~/SampleData/world/cntry02.shp"));
worldLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.FromArgb(255, 243, 239, 228), GeoColor.FromArgb(255, 218, 193, 163), 1);
worldLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;

ShapeFileFeatureLayer citiesLayer = new ShapeFileFeatureLayer(MapPath("~/SampleData/USA/cities_a.shp"));
citiesLayer.ZoomLevelSet.ZoomLevel05.DefaultPointStyle = PointStyles.CreateCompoundCircleStyle(GeoColor.StandardColors.White, 6F, GeoColor.StandardColors.Black, 1F, GeoColor.StandardColors.Black, 3F);
citiesLayer.ZoomLevelSet.ZoomLevel05.DefaultTextStyle = new TextStyle("AREANAME", new GeoFont("Verdana", 9), new GeoSolidBrush(GeoColor.StandardColors.Black));
citiesLayer.ZoomLevelSet.ZoomLevel05.DefaultTextStyle.HaloPen = new GeoPen(GeoColor.StandardColors.White, 2);
citiesLayer.ZoomLevelSet.ZoomLevel05.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;

ShapeFileFeatureLayer streetsLayer = new ShapeFileFeatureLayer(MapPath("~/SampleData/USA/Austin/austinstreets.shp"));
streetsLayer.ZoomLevelSet.ZoomLevel10.DefaultLineStyle = LineStyles.CreateSimpleLineStyle(GeoColor.StandardColors.White, 3F, GeoColor.StandardColors.DarkGray, 5F, true);
streetsLayer.ZoomLevelSet.ZoomLevel10.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;

Map1.StaticOverlay.Layers.Add(worldLayer);
Map1.StaticOverlay.Layers.Add(citiesLayer);
Map1.StaticOverlay.Layers.Add(streetsLayer);

Getting Help

Map Suite Web for WebForms Wiki Resources

Map Suite Web for WebForms Product Description

ThinkGeo Community Site

ThinkGeo Web Site

Key APIs

This example makes use of the following APIs:

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.