GoogleDirection Reference

Extra Data


collapse Description
Wraps Google Maps API class GDirections. This class is used to obtain driving directions results and display them on a map and/or a text panel.

The control above is initialized with this code.

<artem:GoogleMap ID="GoogleMap2" runat="server" Width="530px" Height="500px" Latitude="37.559819" Longitude="-122.210540"
    Zoom="4" BorderStyle="Solid" BorderColor="#999999" BorderWidth="1">
    <Directions>
        <artem:GoogleDirection RoutePanelId="route" Query="from: San Francisco, CA to: Mountain View, CA" />
    </Directions>
</artem:GoogleMap>
collapse Properties
  • Bounds - Gets or sets the bounds of the GoogleDirection. It is used to get the bounding box for the result of this directions query. Have in mind it requires an additional post back after driving directions are loaded.
  • Distance - Gets or sets the distance of the GoogleDirection. Returns an object literal representing the total distance of the directions request (across all routes). Have in mind it requires an additional post back after driving directions are loaded.
  • Duration - Gets or sets the duration of the GoogleDirection. Returns an object literal representing the total time of the directions request (across all routes). Have in mind it requires an additional post back after driving directions are loaded.
  • Locale - Gets or sets a value indicating whether the GoogleDirection is localized. The locale to use for the directions result. For example, "en_US", "fr", "fr_CA", etc.
  • Query - Gets or sets the query of GoogleDirection. The query parameter is a string containing any valid directions query, e.g. "from: Seattle to: San Francisco" or "from: Toronto to: Ottawa to: New York".
  • RoutePanelId - Gets or sets the route panel id. The textual directions associated with the result are added to the indicated DIV, replacing any existing content in the DIV. If either of these arguments is null, the associated elements are not retrieved unless explicitly requested in the GDirections.load()
collapse Methods(Actions)
collapse Known Issues