您的位置:首页 > 理论基础 > 计算机网络

ArcGIS for Windows Phone调用网络分析

2010-09-15 11:41 375 查看
<phone:PhoneApplicationPage
x:Class="WindowsPhoneApplication1.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:esri="clr-namespace:ESRI.ArcGIS.Client;assembly=ESRI.ArcGIS.Client"
xmlns:esrisymbols="clr-namespace:ESRI.ArcGIS.Client.Symbols;assembly=ESRI.ArcGIS.Client"
xmlns:esritasks="clr-namespace:ESRI.ArcGIS.Client.Tasks;assembly=ESRI.ArcGIS.Client"
SupportedOrientations="PortraitOrLandscape"
mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768">
<!--LayoutRoot contains the root grid where all other page content is placed-->
<Grid x:Name="LayoutRoot" Background="{StaticResource PhoneBackgroundBrush}">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="64"/>
</Grid.RowDefinitions>

<Grid.Resources>
<esrisymbols:SimpleMarkerSymbol x:Key="stopSymbol" Size="30" Style="Circle" mce_Style="Circle" Color="Blue"/>
<esrisymbols:SimpleLineSymbol x:Key="routeSymbol" Color="Red" Width="6"/>
<esritasks:RouteTask x:Name="phoneRouteTask"
Failed="phoneRouteTask_Failed"
SolveCompleted="phoneRouteTask_SolveCompleted"
Url="http://heyb/ArcGIS/rest/services/ESRISH/SanFrancisco/NAServer/Route"/>
</Grid.Resources>

<!--ContentPanel - place additional content here-->
<Grid Grid.Row="0" x:Name="ContentGrid">
<esri:Map x:Name="phoneMap" Extent="-122.500366,37.711534,-122.398753,37.785022"
IsLogoVisible="False" MouseClick="phoneMap_MouseClick"
ExtentChanging="phoneMap_ExtentChanging">
<esri:ArcGISDynamicMapServiceLayer Url="http://heyb/ArcGIS/rest/services/ESRISH/SanFrancisco/MapServer"/>
<esri:GraphicsLayer ID="stopsGraphicsLayer"/>
<esri:GraphicsLayer ID="routeGraphicsLayer"/>
</esri:Map>
<esri:ScaleBar x:Name="phoneScaleBar" MapUnit="DecimalDegrees" TextColor="Black"
HorizontalAlignment="Right" VerticalAlignment="Bottom"
DisplayUnit="Miles" Map="{Binding ElementName=phoneMap}"/>
</Grid>

<Grid Grid.Row="1">
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" x:Name="phoneMapExtentText"/>
</Grid>
</Grid>
</phone:PhoneApplicationPage>


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: