This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
map_suite_web_for_mvc_quick_start_guide [2017/03/15 07:51] tgwikiupdate |
map_suite_web_for_mvc_quick_start_guide [2017/03/15 08:30] (current) tgwikiupdate [Parameters] |
||
|---|---|---|---|
| Line 75: | Line 75: | ||
| {{mapsuite10:mvc:Map_Suite_Mvc_QSG_AddController.png}} | {{mapsuite10:mvc:Map_Suite_Mvc_QSG_AddController.png}} | ||
| + | {{mapsuite10:mvc:Map_Suite_Mvc_QSG_AddScaffold.png}} | ||
| Now move your mouse pointer over the code "return View()" and right-click to add the responding view page. Keep all of the default settings as shown below: | Now move your mouse pointer over the code "return View()" and right-click to add the responding view page. Keep all of the default settings as shown below: | ||
| Line 102: | Line 103: | ||
| Then, we can add the map and shape file reference code as below: | Then, we can add the map and shape file reference code as below: | ||
| <code csharp> | <code csharp> | ||
| - | @{Html.ThinkGeo().Map("Map1", 600, 500) | + | @{Html.ThinkGeo().Map("Map1", 800, 600) |
| .MapBackground(new GeoSolidBrush(GeoColor.FromHtml("#E5E3DF"))) | .MapBackground(new GeoSolidBrush(GeoColor.FromHtml("#E5E3DF"))) | ||
| .CurrentExtent(-131.22, 55.05, -54.03, 16.91) | .CurrentExtent(-131.22, 55.05, -54.03, 16.91) | ||
| Line 146: | Line 147: | ||
| <code csharp> | <code csharp> | ||
| - | @{Html.ThinkGeo().Map("Map1", 600, 500) | + | @{Html.ThinkGeo().Map("Map1", 800, 600) |
| .MapBackground(new GeoSolidBrush(GeoColor.FromHtml("#E5E3DF"))) | .MapBackground(new GeoSolidBrush(GeoColor.FromHtml("#E5E3DF"))) | ||
| - | .CurrentExtent(5, 78, 30, 26) | + | .CurrentExtent(-131.22, 55.05, -54.03, 16.91) |
| .MapUnit(GeographyUnit.DecimalDegree) | .MapUnit(GeographyUnit.DecimalDegree) | ||
| .StaticOverlay(overlay => | .StaticOverlay(overlay => | ||
| Line 197: | Line 198: | ||
| <code csharp> | <code csharp> | ||
| - | @{Html.ThinkGeo().Map("Map1", 600, 500) | + | @{Html.ThinkGeo().Map("Map1", 800, 600) |
| .MapBackground(new GeoSolidBrush(GeoColor.FromHtml("#E5E3DF"))) | .MapBackground(new GeoSolidBrush(GeoColor.FromHtml("#E5E3DF"))) | ||
| - | .CurrentExtent(5, 78, 30, 26) | + | .CurrentExtent(-131.22, 55.05, -54.03, 16.91) |
| .MapUnit(GeographyUnit.DecimalDegree) | .MapUnit(GeographyUnit.DecimalDegree) | ||
| .StaticOverlay(overlay => | .StaticOverlay(overlay => | ||
| Line 248: | Line 249: | ||
| <code csharp> | <code csharp> | ||
| - | @{Html.ThinkGeo().Map("Map1", 600, 500) | + | @{Html.ThinkGeo().Map("Map1", 800, 600) |
| .MapBackground(new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean)) | .MapBackground(new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean)) | ||
| - | .CurrentExtent(5, 78, 30, 26) | + | .CurrentExtent(-131.22, 55.05, -54.03, 16.91) |
| .MapUnit(GeographyUnit.DecimalDegree) | .MapUnit(GeographyUnit.DecimalDegree) | ||
| .StaticOverlay(overlay => | .StaticOverlay(overlay => | ||
| Line 349: | Line 350: | ||
| </script> | </script> | ||
| <div> | <div> | ||
| - | @{Html.ThinkGeo().Map("Map1", 600, 500) | + | @{Html.ThinkGeo().Map("Map1", 800, 600) |
| .MapBackground(new GeoSolidBrush(GeoColor.FromHtml("#E5E3DF"))) | .MapBackground(new GeoSolidBrush(GeoColor.FromHtml("#E5E3DF"))) | ||
| .CurrentExtent(-131.22, 55.05, -54.03, 16.91) | .CurrentExtent(-131.22, 55.05, -54.03, 16.91) | ||
| Line 411: | Line 412: | ||
| GeoFont font = new GeoFont("Arial", 9, DrawingFontStyles.Bold); | GeoFont font = new GeoFont("Arial", 9, DrawingFontStyles.Bold); | ||
| GeoSolidBrush txtBrush = new GeoSolidBrush(GeoColor.StandardColors.Maroon); | GeoSolidBrush txtBrush = new GeoSolidBrush(GeoColor.StandardColors.Maroon); | ||
| - | TextStyle textStyle = new TextStyle("NAME", font, txtBrush); | + | TextStyle textStyle = new TextStyle("AREANAME", font, txtBrush); |
| textStyle.XOffsetInPixel = 0; | textStyle.XOffsetInPixel = 0; | ||
| textStyle.YOffsetInPixel = -6; | textStyle.YOffsetInPixel = -6; | ||