Building Web GIS Apps with C# ASP.NET CORE MVC and Leaflet
Introduction
Source File
Installing PostgreSQL and PostGIS on Windows
Creating a Spatial Database
Installing OSGeo4w
Installing the .NET SDK
Installing the Visual Studio Code IDE
Creating an ASP.NET MVC 6 Starter Project
Installing Entity Framework Core Packages
Creating the Model Class
Creating the Data Context Interface
Creating the Data Context Class
Adding the Connection String
Database Migrations
Creating the Repository Interface
Creating the Repository Implementation Class
Downloading the Sample Dataset
Extract Transform and Load Data into our Spatial Table
Creating the REST Controller Class
Adding the Front-End Static Files
Creating the Layout Page
Creating the Index Page
Creating our First Leaflet Map
Creating Multiple Basemaps
Displaying Data on the Map
Styling the Map Part 1
Styling the Map Part 2: Interactivity
Creating the Legend
Creating the Bar Chart Legend
Creating the Bar Chart
Source File