Googlemap control for Asp.Net MVC

Polygon Basic

About this example

This sample show a how to render polygons to the map. The shape above correspond to the "Bermudas Triangle"

@(
Html.Googlemap()
    .Name("map")
    .Polygons(
                pf => pf.Add()
                .Points(ptn =>
                            {
                                ptn.Add(25.774252, -80.190262);
                                ptn.Add(18.466465, -66.118292);
                                ptn.Add(32.321384, -64.75737);
                            })
                .FillColor(Color.Blue)
                .StrokeColor(Color.DarkBlue)
                )

)