GooglePolygon Reference

Click on the map below to build points of the polygon(at least 3).
Then click to button 'Draw' to draw it.

Current Points #
Extra Data


collapse Description
Wraps Google Maps API class GPolygon. This is very similar to a GPolyline, except that you can additionally specify a fill color and opacity.

The control above is initialized with this code.

<artem:GoogleMap ID="GoogleMap2" runat="server" Width="530px" Height="500px" Latitude="42.1229" Longitude="24.7879"
    Zoom="4" OnClientClick="handleMapClick" EnableScrollWheelZoom="true" BorderStyle="Solid" BorderColor="#999999"
    BorderWidth="1">
    <Polygons>
        <artem:GooglePolygon FillColor="Red" FillOpacity=".8" StrokeColor="Blue" StrokeWeight="2">
            <artem:GooglePoint Latitude="37.97918" Longitude="23.716647" />
            <artem:GooglePoint Latitude="41.036501" Longitude="28.984895" />
            <artem:GooglePoint Latitude="44.447924" Longitude="26.097879" />
            <artem:GooglePoint Latitude="44.802416" Longitude="20.465601" />
            <artem:GooglePoint Latitude="42.002411" Longitude="21.436097" />
            <artem:GooglePoint Latitude="37.97918" Longitude="23.716647" />
        </artem:GooglePolygon>
    </Polygons>
</artem:GoogleMap>
collapse Properties
  • Bounds - Gets or sets the bounds of polygon. Have in mind it requires an additional post back after polygon is loaded.
  • FillColor - Gets or sets the fill color of polygon. The color is given as a string that contains the color in hexadecimal numeric HTML style, i.e. #RRGGBB.
  • FillOpacity - Gets or sets the fill opacity of polygon. The opacity is given as a number between 0 and 1. The line will be antialiased and semitransparent.
  • IsClickable - Gets or sets a value indicating whether this polygon is clickable.
  • Points - Gets or sets the points of polygon.
  • StrokeColor - Gets or sets the stroke color of polygon. The color is given as a string that contains the color in hexadecimal numeric HTML style, i.e. #RRGGBB.
  • StrokeOpacity - Gets or sets the stroke opacity of polygon. The opacity is given as a number between 0 and 1. The line will be antialiased and semitransparent.
  • StrokeWeight - Gets or sets the weight of polygon. The weight is the width of the line in pixels.
collapse Methods(Actions)
  • Hide - Method to fire invokation of hide function of the GPolygon instance from the server-side code.
  • Show - Method to fire invokation of show function of the GPolygon instance from the server-side code.
collapse Known Issues