using System; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using ThinkGeo.MapSuite.Core; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Map1.MapUnit = GeographyUnit.Meter; ShapeFileLayer municipio = new ShapeFileLayer(@"C:\inetpub\wwwroot\Prototipo\Mapas\municipio.shp", ShapeFileReadWriteMode.ReadOnly); municipio.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.County1; municipio.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20; Map1.StaticLayers.Add(municipio); Map1.CurrentExtent = new RectangleShape(0, 100000, 100000, 0); Map1.BackgroundFillBrush = new GeoSolidBrush(GeoColor.StandardColors.LightSteelBlue); Map1.MousePosition.Enabled = true; Map1.Overview.Enabled = true; Map1.PanZoomBar.Enabled = true; } } }