Let's create a basic ASP.NET MVC project in Visual Studio named LBM.Geodata. We then copy the HomeController
from the previous chapter with the Index
action.
public class HomeController : Controller { public ActionResult Index() { ViewBag.Title = "LBM | Geodata"; return View(); } }
This returns a simple view, Index.chtml
, which will contain a single DIV element to hold our map.
<div id="lbm-map"></div>
We also copy jquery.js
, app.js
, learningTheme.js
and paste them into the Scripts
folder, as well as app.css
and learningTheme.css
in the Content
folder. Then, we do the same with the _Layout.cshtml
and BundleConfig.cs
files, which we paste into
Views/Shared
and App_Start
folders respectively.
When we run the project in debug mode, we should be presented with the following screenshot on the browser: