Googlemap control for Asp.Net MVC

Geocoding


Google Map Settings

About this example

This example shows how to set the center of the map using Gooogle maps Geocoder Services and a valid address.

Change the configuration above to see how it affects the map.

@(
    Html.GoogleMap()
        .Name("map")
        .Center(c => c.Address("Madrid, Spain"))
        .Markers(m => m.Add())
)