This example shows how to databind Googlemap Control for ASP.NET MVC.
The required steps are:
public ActionResult DataBindingToModel() { IEnumerable<RegionInfo> data = DataContext.GetRegions(); return View(data); }
@( Html.Googlemap() .Name("map") .BindTo<RegionInfo, Circle> (Model, mappings => { mappings.For<RegionInfo>(binding => binding .ItemDataBound(circle, regionInfo) => { circle.Center = new Location(obj.Latitude,regionInfo.Longitude); circle.Radius = (int) regionInfo.population/50; }) ); }) )