Skip to main content
A newer version of this page is available. .

SearchBoundingBox.EastLongitude Property

Returns the value of the east longitude of the SearchBoundingBox.

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v18.2.dll

Declaration

public double EastLongitude { get; set; }

Property Value

Type Description
Double

A Double value specifying the east longitude expressed in degrees.

Remarks

This value can be specified in the range from -180 to 180 degrees.

Example

To send a route request, use the BingRouteDataProvider.CalculateRoute method. This method receives a list of RouteWaypoint objects as a parameter. Note that RouteWaypoint objects are created using the constructor that receives the waypoint description and a keyword that is used to search for a location on a map.

<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:sys="clr-namespace:System;assembly=mscorlib"
        xmlns:local="clr-namespace:CalculateRoutesByAddresses"
        xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
        xmlns:dxm="http://schemas.devexpress.com/winfx/2008/xaml/map" 
        x:Class="CalculateRoutesByAddresses.MainWindow"
        Title="MainWindow" Height="360" Width="640"
        dx:ThemeManager.ThemeName="Office2016White"
        Loaded="OnLoaded">
    <Window.Resources>
        <sys:String x:Key="bingKey">Your Bing Key</sys:String>
    </Window.Resources>
    <Grid>
        <dxm:MapControl x:Name="mapControl">
            <dxm:ImageLayer>
                <dxm:BingMapDataProvider BingKey="{Binding Source={StaticResource bingKey}}"/>
            </dxm:ImageLayer>
            <dxm:InformationLayer>
                <dxm:BingRouteDataProvider x:Name="routeProvider"
                                           RouteCalculated="OnRouteCalculated"
                                           BingKey="{Binding Source={StaticResource bingKey}}"/>
            </dxm:InformationLayer>
        </dxm:MapControl>
        <dx:WaitIndicator x:Name="waitIndicator"
                          DeferedVisibility="True" 
                          Content="Calculating route...">
        </dx:WaitIndicator>
    </Grid>
</Window>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the EastLongitude property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also