GooglePolyline Reference

Click on the map below to build points of the polyline
Then click to button 'Draw' to draw it.

Current Points #
Extra Data


collapse Description
Wraps Google Maps API class GPolyline. This is a map overlay that draws a polyline on the map, using the vector drawing facilities of the browser if they are available, or an image overlay from Google servers otherwise.

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">
    <Polylines>
        <artem:GooglePolyline Color="Blue" Weight="2" Opacity="1" IsGeodesic="false">
            <artem:GooglePoint Latitude="42.1229" Longitude="24.7879" />
            <artem:GooglePoint Latitude="51.34433" Longitude="16.17578" />
            <artem:GooglePoint Latitude="41.70572" Longitude="12.39257" />
        </artem:GooglePolyline>
    </Polylines>
</artem:GoogleMap>
collapse Properties
  • Bounds - Gets or sets the bounds of polyline. Have in mind it requires an additional post back after polyline is loaded.
  • Color - Gets or sets a value for color of polyline.
  • IsClickable - Gets or sets a value indicating whether this polyline is clickable.
  • IsGeodesic - Gets or sets a value indicating whether this polyline is geodesic.
  • Opacity - Gets or sets the opacity of polyline. The opacity is given as a number between 0 and 1. The line will be antialiased and semitransparent.
  • Points - Gets or sets the points of polyline.
  • Weight - Gets or sets the weight of polyline. The weight is the width of the line in pixels.
collapse Methods(Actions)
  • Hide - Method to fire invokation of hide function of the GPolyline instance from the server-side code.
  • Show - Method to fire invokation of show function of the GPolyline instance from the server-side code.
collapse Known Issues