Before going through this blog, read Google Map, using Bootstrap in ASP.NET MVC Part-1 carefully.
http://www.c-sharpcorner.com/blogs/google-map-using-bootstrap-in-asp-net-mvc-part1
Description
The map types given below are supported in Google Maps API
ROADMAP - This type will show normal, default 2D map.
SATELLITE- This type will show photographic maps.
HYBRID- This type will show photographic maps + roads and city names.
TERRAIN- This type will show maps with mountains, rivers etc.
The map type is specified either within the Map properties object, with the mapTypeId property or by calling the map's setMapTypeId() method.
The map types SATELLITE and HYBRID support a 45° perspective imagery view for the certain locations and
not for all the locations only at high zoom levels.
If you zoom into a location with 45° imagery view, the map will automatically alter the perspective view.
The map will add
- Compass wheel around the Pan control, which allows you to rotate the image.
- Rotate control between the Pan and Zoom controls, which allows you to rotate the image 90°.
- Toggle control to display the 45° perspective view under the Satellite control/label.
Zooming out from a map with 45° imagery will revert each of these changes and the original map is displayed.
Steps
Create a Controller action method named Details() in the same controller HomeController.cs of this same MVC Application.
Create a Controller action method named Details() in the same controller HomeController.cs of this same MVC Application.
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.Mvc;
- namespace SatyaGoogleMapBootstrapMVC.Controllers
- {
- public class HomeController : Controller
- {
- //
- // GET: /Home/
- public ActionResult Index()
- {
- return View();
- }
- public ActionResult Details()
- {
- return View();
- }
- }
- }

Join the conversation! Your thoughts help the community grow.