Skip to content
This sample shows you how to get started building your first application with the Map Suite Web for Mvc 10.0.0.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
HelloWorld
.gitignore
HelloWorld.sln
README.md
Screenshot.gif

README.md

Hello World Sample for Mvc

Description

This sample shows you how to get started building your first application with the Map Suite Web for Mvc 10.0.0.

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

<div style="height:80%">
    @{ Html.ThinkGeo().Map(Model).Render(); }
</div>

public ActionResult Index()
{
    Map map = new Map("Map1");
    map.Width = new System.Web.UI.WebControls.Unit(100, System.Web.UI.WebControls.UnitType.Percentage);
    map.Height = new System.Web.UI.WebControls.Unit(100, System.Web.UI.WebControls.UnitType.Percentage);
    map.MapUnit = GeographyUnit.Meter;
    map.ZoomLevelSet = ThinkGeoCloudMapsOverlay.GetZoomLevelSet();
    map.CurrentExtent = new RectangleShape(-13086298.60, 7339062.72, -8111177.75, 2853137.62);
    map.MapBackground = new GeoSolidBrush(GeoColor.FromHtml("#E5E3DF"));

    map.CustomOverlays.Add(new ThinkGeoCloudMapsOverlay());

    return View(map);
}

Getting Help

Map Suite web for Mvc Wiki Resources

Map Suite web for Mvc 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.

You can’t perform that action at this time.