O'Reilly logo

.NET Framework 4.5 Expert Programming Cookbook by A.P. Rajshekhar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding Google Map functionality using Map Helper

Nowadays, displaying maps as a part of your website has become a requirement. The reason can be anything from helping customers locate your store to providing the transit path of a package. ASP.NET 4.5 makes displaying maps easier by providing Map Helpers that can be installed using the NuGet package manager.

In this recipe, we will see how to use Map Helper and Google Maps. We will be using the Razor V2 View engine.

Getting ready

You will need to update the NuGet package manager by going to Tools | Extensions and Updates. If NuGet is not installed, then install it by going to Tools | Extensions and Updates.

How to do it...

  1. Create a new Web Site project. Name it MapDisplay.
  2. Install ASP.NET Web Helpers ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required