This example show how to setup Googlemap Control for Asp.Net MVC to set the bounds of the map based on markers coordinates. If this option is set to true, the map viewport is centered and zoomed to the bounding box determined from the markers coordinates. Default value is false.
Change the configuration above to see how it affects the map.
@(Html.GoogleMap() .Name("map") .FitToMarkersBounds(true) .MarkersGeocoding(true) .Markers(m => { m.Add().Address("Madrid, Spain"); m.Add().Address("Florida, USA"); }) )